Shop -> product.tpl. How to change the way the price is print ?

Author Message

laurent le cadet

Thursday 29 April 2004 7:15:53 am

Hi,

In product.tpl, there is a line to print the price :

{attribute_view_gui attribute=$map.price}

I understand it's the identifier (price) of the classe "product" but the template print it like this :

"price" + price include VAT + currency

How does it work ?

I want to print the price <b>exclude</b> VAT but I can't find the file. In kernel ?

Thanks.

Laurent.

Bjørn Kaarstein

Friday 30 April 2004 12:49:32 am

Hi Laurent.

I think you'll find what you're looking for in standard/templates/content/datatype/view/ezprice.tpl

Regards Bjørn

laurent le cadet

Friday 30 April 2004 4:36:14 am

Hi,

Thanks Bjørn.
It does the job.

If I can try another question :
How can I add more fields in the register.tpl ?

Regards Laurent.

Bjørn Kaarstein

Friday 30 April 2004 7:53:15 am

I'm not quite sure I follow your question here. If you want to add fields to register.tpl, you'll need an expanded class aswell. If you expand your class, I suppose it would be copy and paste in the template...

Regards Bjørn

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.