$ git log$ git status| <FilesMatch "\.(php|php3|php4|php5|phtml)$"> | |
| SetHandler application/x-httpd-ea-php56 | |
| </FilesMatch> |
| /* Get MRSP price Magento 1 */ | |
| <?php $_msrpPrice = $this->helper('core')->currency($_product->getMsrp(),true,true) ?> | |
| <span class="price@> | |
| <span class="label"><?php echo $this->__('MSRP Price:') ?></span> | |
| <span class="price"><?php echo $_msrpPrice ?></span> | |
| </span> |
| <?php if($_finalPrice < $_price): ?> | |
| <?php | |
| $_discounted_percentage = 100 - round(($_finalPrice / $_price) * 100); | |
| $_saving_amount = number_format(($_price - $_finalPrice), 2); | |
| ?> | |
| <p class="saving-price"> | |
| <span class="price-label"><?php echo $this->__('Your Save: '); ?></span> | |
| <span class="price"> | |
| <span class="saving-amount"> |
| <!-- Date Short Type --> | |
| <?php | |
| // Short Type | |
| //Output will be: 18/3/17 | |
| ?> | |
| <?php | |
| $today = '2017-03-18'; | |
| $date = Mage::helper('core')->formatDate($today, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, false); | |
| echo $date; | |
| ?> |
| <!-- Category Layered Starts--> | |
| <catalog_category_layered> | |
| <reference name="catalog.leftnav"> | |
| <action method="unsetChild"><alias>category_filter</alias></action> | |
| </reference> | |
| </catalog_category_layered> | |
| <!-- Category Layered Ends--> |
| /* Start - Add these to index.php */ | |
| if (!empty($_SERVER['HTTP_CLIENT_IP'])) { | |
| $ip = $_SERVER['HTTP_CLIENT_IP']; | |
| } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
| $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
| } else { | |
| $ip = $_SERVER['REMOTE_ADDR']; | |
| } | |
| $allowed = array('188.39.236.202','127.0.0.1'); | |
| /* End - Add these to index.php */ |
| <?php /*############################################## #Customer Group logged ################################################### */ ?> | |
| <?php $login = Mage::getSingleton( 'customer/session' )->isLoggedIn(); //Check if User is Logged In ?> | |
| <?php $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId(); //Get Customers Group ID ?> | |
| <?php if( $login AND ($groupId == 4) ) : // Customer Group ID is 4. //LOGGED ?> | |
| <?php /*############################################## START #Customer Group logged ################################################### */ ?> | |
| <!-- Content for Customer Group ID 4 Logged --> | |
| <?php else: //NOT LOGGED ?> |
| /*======================================================== | |
| GRID SYSTEM - Simple and Basic | |
| =========================================================*/ | |
| *, | |
| *:before, | |
| *:after { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| margin: 0; |
| .clearfix:after { | |
| content: ""; | |
| display: table; | |
| clear: both; | |
| } |