Hide estimated delivery date for out of stock products?

Learn how to schedule the estimated delivery date and why it is worth doing.

Hide estimated delivery date for out of stock products?

Postby miami_mage » Thu Oct 31, 2013 3:56 am

Will this extension hide estimated time of delivery if the product is out of stock?
miami_mage
 
Posts: 7
Joined: Tue Aug 27, 2013 7:05 am

Re: Hide estimated delivery date for out of stock products?

Postby handhub » Thu Oct 31, 2013 4:19 am

Hello miami_mage,

If you add code:
if (!$this->getProduct()->isSaleable()) {
return;
}

in file
app/design/frontend/YOUR_THEME/default/template/estimateddelivery/product.phtml

right before:
if ($this->hasDeliveryDate()) { ?>

The extension will NOT show Estimeted Delivery on "Out of Stock" product pages.

Regards, handhub
handhub
 
Posts: 4
Joined: Tue Jul 23, 2013 8:11 am


Return to Estimated Delivery Date

Who is online

Users browsing this forum: No registered users and 1 guest

cron