title: Magento - Display product and category body page for each design in admin
body: <p>I need to identify the add to cart button and disabled it (js and php) based on product id(this is not the real aim of the question, the bold is the real one)<br/>
  Since I haven't found any solution I have thought to let the admin press the button in the admin section dedicated tomy extension and capture the button information with js and then save them later.<br/>
  <strong>To do so I would like to display the main body of the product page and the one of a category for each theme in the design section.</strong><br/>
  This is how I retrieve the themes and packages:</p>
  <pre><code>//Main package/theme
  Mage::getStoreConfig('design/package/name')
  //Reegex theme
  $ob=unserialize(Mage::getStoreConfig('design/package/ua_regexp'));
  foreach($ob as $key)
      echo $key['value'];
  </code></pre>
  <p><br/>My main concern is about the bold part, is if it is possible? How do I do it? <br/>
  Just to be clear: I need only the red rectangle:
  <img src="https://i.stack.imgur.com/Vsjxw.png" alt="enter image description here" />
  <br/>Above it there is the breadcrumbs and on the right the sidebar</p>
  <p><br/><br/>
  <strong>MORE DETAILS</strong><br/>
  When the admin creates/edit a product, it can select or not the countries where the item can be selled.<br/>
  What happens: when a page load the system check if the item is merchantable in the costumers country otherwise it removes the button.<br/>
  Now this bring some problems:</p>
  <ul>
  <li><p>Wide theme support: I'm not sure the button html is the same of the default one</p>
  </li>
  <li><p>In the same page can exist merchantable and not-merchantable products: identify the button of the correct item in the category page where there are multiple of them, to do so I check the button behaviour: usually it contains: <code>/checkout/cart/</code> plus the <code>product id</code> in the <code>onlick</code> attribute or the button submits a form, I think that if the admin &quot;shows&quot; me what happens and, after an analysis, I will be able to identify the button and replace it using the <code>id</code> (secure) or <code>class</code> ( not so certain), since not all the stores use the default <code>btn-cart</code> class</p>
  </li>
  <li><p>Cache/FPC system that fetch the page: I don't know if they will catch the js that disable the button or if the customer has disbaled any script (probably it can't even use the site), however usualy the add to cart block is not cached by those programs (sometimes if the item is not available the button is hidden)</p>
  </li>
  <li><p>SEO problem: guest aren't forced to select a country, but I try to identify it with some external service using the ip, so probably it will also detect the bots as users, I don't know if it will be a problem (I don't think so), otherwise I have to use JS to do an AJAX call and then hide the button</p>
  </li>
  </ul>
  <p>I would like to avoid any edit to any template file and create a very simple way for the user to set up the module( click a button is less complicated than the whole procedure to create an attribute, the relatives options and associate it to the sets)
  <br/><br/>
  <strong>Basically: How can I display the product and category page in the backend?</strong></p>