define('WP_HOME','https://staging.example.co.uk');
define('WP_SITEURL','https://staging.example.co.uk');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| @Orginal Author: Ravi Panghat | |
| @Orginal Update Date: 12/01/2014 | |
| @Orginal Description: Setup the Product Page, layout, Product Image, Tabs | |
| @Last Author: Ravi Panghat | |
| @Last Update Date: 20/03/2016 | |
| @Last Update Description: The client Richard requests to add the product's brand logo image. Implemented the brand logos. | |
| */ ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php $_item = $this->getItem() ?> | |
| <?php $_order = $this->getItem()->getOrder() ?> | |
| <?php if ($_item->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) { | |
| $parentId = Mage::getModel('catalog/product_type_configurable') | |
| ->getParentIdsByChild($_item->getProductId()); | |
| $_product = Mage::getModel('catalog/product') | |
| ->setStoreId($_item->getOrder()->getStoreId()) | |
| ->load($parentId); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php $head_noscript = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $head_text); ?> | |
| <?php echo $head_noscript; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php $product_description = $_helper->productAttribute($_product, $_product->getDescription(), 'description'); ?> | |
| <?php if( strstr($product_description, '<h1') ) : // Check if H1 tag exists on the description ?> | |
| <div class="page-title"> | |
| <h2 class="h1-page-title h1-title-exists-on-description"> | |
| <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> | |
| </h2> | |
| </div><!--/.page-title --> | |
| <?php else: // Check if H1 tag exists on the description ?> | |
| <div class="page-title"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $headerCustomLinks = $this->getLayout()->createBlock('cms/block')->setBlockId("header-links")->toHtml(); | |
| if(substr($headerCustomLinks, 0, 4)=="<ul>"){ | |
| $headerCustomLinks = substr($headerCustomLinks, 4); | |
| } | |
| if(substr($headerCustomLinks, -5)=="</ul>"){ | |
| $headerCustomLinks = substr($headerCustomLinks, 0, -5); | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <reference name="content"> | |
| <block type="core/template" template="foldername/templatename.phtml" /> | |
| </reference> |
NewerOlder