User Tools

Site Tools


ugiftcert:troubleshooting:product-page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ugiftcert:troubleshooting:product-page [2012/08/28 13:29]
jamby77 [Product page form missing]
ugiftcert:troubleshooting:product-page [2016/04/29 18:52] (current)
jamby77
Line 1: Line 1:
 +====== Product page form missing ======
  
 +==== Incompatible theme ====
 +
 +If after installing Gift certificate module, you are missing gift certificate form on product page, there is grat chance that your theme has been modified in such a way that it is missing some important calls.
 +
 +File to look at is ''**app/design/frontend/<packacge>/<theme>/template/catalog/product/view.phtml**'', in that template you should have a call like: 
 +<code php><?php echo $this->getChildHtml('product_type_data');?></code>
 +
 +That call is responsible for rendering product type specific details.
 +__That call **MUST** be placed within add to cart form on product page, otherwise Giftcert details will not be submitted and you will still get error messages.__
 +
 +If you don't want to have this call for all product types, you can surround it in conditional block like:
 +
 +<code php>
 +<?php if($_product->getTypeId() == 'ugiftcert'): ?>
 +   <?php echo $this->getChildHtml('product_type_data');?>
 +<?php endif;?>
 +</code>
 +
 +==== If using Magento 1.3.x ====
 +
 +If using Magento versions less than 1.4, the solution above will not be enough.
 +Reason is that current version of Giftcert has its template files in base/default theme, which is available since 1.4. To enable certificate to function properly, you will need to copy **frontend/base/default/layout/giftcet.xml** to your theme **layout** folder and **frontend/base/default/template/unirgy** folder to your theme **template** folder.
 +
 +==== If you have used uGiftCert 0.x.x version ====
 +
 +If you have previously used older version of the plugin like 0.9.x or have made template/layout modifications while using 1.x version of the plugin, then templates and layout of current branch 2.x.x is not compatible with older versions. 
 +
 +Therefore for old version of the plugin - check all themes BESIDES base/default and make sure to remove any unirgy/giftcert template folder and ugiftcert.xml layout file.
 +The only templates should be in frontend/base/default/template/unirgy/giftcert and only layout in frontend/base/default/layout/ugiftcert.xml
 +
 +Remove any other copies of these files and then test adding Gift Certificate product to cart. 
 +If that works, then you can look into customization of the templates if you need that.
ugiftcert/troubleshooting/product-page.1346160558.txt.bz2 · by jamby77