The other price use the method GetPrices($variant) .. I'm not sure I can use it here? It seems that the prices is connected with the currencies in Tea Commerce section..
then a have both the oldPrice when the product list is loaded and when I change the variant.. I had a problem when just make the test with oldPrice != ' ' around the span.. I had to use $variant/oldPrice .. otherwise it wasn't displayed the oldPrice when the product list was loaded.. first when I changed to a variant on e.g. " Ildslukker " here: http://sub.ak-security.dk/da/shop/brandmateriel.aspx
Offer prices
I am trying to make it possible the set an old price and then use the new price: http://sub.ak-security.dk/da/shop/radioer-plus-tilbehoer.aspx
oldPrice is the property I use.. but on variants I not use the first variant offer price: http://sub.ak-security.dk/da/shop/brandmateriel.aspx
The other price use the method GetPrices($variant) .. I'm not sure I can use it here? It seems that the prices is connected with the currencies in Tea Commerce section..
Bjarne
Hi Bjarne,
You can not use the GetPrices method for the old prices. Maybe you should get the old price with the GetProperty method on the $variant?
/Rune
Hi Rune..
Okay, I'll try that and see if I can solve this..
Bjarne
I'm not sure if it does any difference whether using $variant/oldPrice or teacommerce:GetProperty($variant, 'oldPrice') ?
But this seem to work:
then a have both the oldPrice when the product list is loaded and when I change the variant.. I had a problem when just make the test with oldPrice != ' ' around the span.. I had to use $variant/oldPrice .. otherwise it wasn't displayed the oldPrice when the product list was loaded.. first when I changed to a variant on e.g. " Ildslukker " here: http://sub.ak-security.dk/da/shop/brandmateriel.aspx
Bjarne
is working on a reply...