It is currently Thu Jan 21, 2021 4:10 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Nov 26, 2015 9:00 pm 

Joined :
Thu Nov 26, 2015 8:55 pm

Posts : 1
Hello,
i want to ask how i can move the price countdown from the default position on product page (after whishlist/compare buttons) to another position like after SKU or after the special price.
Thank you.


Report this post
Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 11:57 am 

Joined :
Thu Dec 17, 2015 11:45 am

Posts : 0
Hi,

You can move price count down from default position,

Solution: Please find the below steps to display timer before special price.

Step 1:

Go to the following file path,
app/design/frontend/base/default/layout/timer.xml

Replace the following code,

<catalog_product_view>
<reference name="head">
<action method="addJs"><script>timer.js</script></action>
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
</reference>
<reference name="product.info.extrahint">
<block type="catalog/product_view" name="timer" before="-" template="timer/product/view.phtml"/>
</reference>
</catalog_product_view>

Instead of this,

<catalog_product_view>
<reference name="head">
<action method="addJs"><script>timer.js</script></action>
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
</reference>
<reference name="product.info.addto">
<action method="setTemplate" ifconfig="timer/general/enabled">
<template>timer/product/view.phtml</template>
</action>
</reference>
</catalog_product_view>

Step 2:

Go to the following file path,
app/design/frontend/base/default/template/timer/product/view.phtml

Remove the below code,

<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php
$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
?>
<?php if ($_compareUrl) : ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>

After changed the code clear the cache and indexing in the back end.
Here is the steps:
Go to admin->system->cache management->clear cache
Go to admin->system->Index management->Re index.

Note : Kindly take back up the files before make changes.

Thanks,
Thirunisha


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: