3

I need to remove home Page New product products price for store 1, not for store 2. if i remove

<!--   <?php echo $this->getPriceHtml($_product, true, '-new') ?> -->

Both stores do not display price of New Products, how to remove the price of new products in store 1 not store 2.

1

Don't comment the code just add it in condition

Something like below

$storeId = Mage::app()->getStore()->getStoreId();
 if($storeId!=1)
 {
   echo  $this->getPriceHtml($_product, true, '-new') ;
 }

 

Here I assumed store id 1 you need to check your store id.

  • Pls correct me, justpaste.it/1evqa – zus Dec 23 '17 at 12:07
  • a couple of times displaying price. – zus Dec 23 '17 at 12:08
  • replace <?php echo $this->getPriceHtml($_product, true, '-new') ?> with <?php $storeId = Mage::app()->getStore()->getStoreId(); if($storeId!=1) { echo $this->getPriceHtml($_product, true, '-new') ; } ?> – satya prakash patel Dec 23 '17 at 12:09
  • But in my main store displaying a couple of times, and my additional store displaying single time. – zus Dec 23 '17 at 12:13
  • you mean price block is displayed two times? – satya prakash patel Dec 23 '17 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.