Jump to content

Modify displayed price in template


chris134

Recommended Posts

Hi all,

The products in my shop are sold in boxes of 6x the item. In my template I also automaticly need to have the price displayed per item, AND for the whole box. So what I want to do is make an extra field in my template, where it takes the price and divides it by 6.

I looked in product.tpl and this is where the price comes from: {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)}

How do I modify this to divide the output of this by 6?

Link to comment
Share on other sites

Oh wow, I had not seen that option existed at all.... Thank you! What an oversight..

One more question and then it'll be perfect: Do you know of a way to advertise the product, but only sell the pack?
In the category overview, search, etc I want people to see the price per item, not the whole pack.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...