This topic contains 0 replies, has 1 voice, and was last updated by Tim 9 years ago. This post has been viewed 1188 times
How to show "Customize It" button on category page?
You must be logged in to reply to this topic.
This topic contains 0 replies, has 1 voice, and was last updated by Tim 9 years ago. This post has been viewed 1188 times
By default, there is no “customize it” button on category page after PDC had installed. To show that button, you need to custom the list.phtml file of your theme. Please add follow snippet code to the foreach loop of product collection:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!--Customize button--> <div class="customize-btn-wrapper"> <?php $isPDCEnabled = Mage::helper('core')->isModuleEnabled('MST_Pdp'); ?> <?php if($isPDCEnabled) : ?> <?php $productStatus = Mage::getModel('pdp/productstatus')->getProductStatus($_product->getId()); ?> <?php if($productStatus == 1) : ?> <?php $customizeLabel = "Customize it!"; if(Mage::getStoreConfig("pdp/setting/design_button_label") != "") { $customizeLabel = Mage::getStoreConfig("pdp/setting/design_button_label"); } ?> <button onclick="setLocation('<?php echo $_product->getProductUrl() ?>?action=design')" class="button btn-cart design-btn" title="< ?php echo $customizeLabel ?>" type="button"><span><span>< ?php echo $this->__($customizeLabel) ?></span></span></button> <?php endif; ?> <?php endif; ?> </div> <!--End Customize button--> |
Make sure you add both GRID mode and LIST mode.
That’s all!
http://magebay.com
http://productsdesignercanvas.com/
http://www.menucreatorpro.com/
http://www.productsdesignerpro.com/
You must be logged in to reply to this topic.