Old price and new price in categories and product details

GK User
Tue Jul 02, 2013 9:58 am
Hi
My site: http://demos.webexpertia.eu/boutique_es/

I would like to have in my category page, old price and new price when discount is applied, and old price in red with line-through, but the problem is I'm not able to found the method to show the old price onlye when discount is applied...

Could you help me please?

Thanks in advance!
User avatar
Expert Boarder

teitbite
Tue Jul 02, 2013 11:52 am
Hi

This may require making some changes to the code. Please tell me an exact page with a product where discount is set and send me an access to ftp.
User avatar
Moderator

teitbite
Wed Jul 03, 2013 1:54 pm
Hi

I'm afraid You need to show this to VM support, because when I'm making a dump of prices than everything is ok, except for the one value: 'sales prace with discount', it's always showing 0. This part is handled by VM code, so let them fix it first, so I'll be able to add a code which would display 2 prices: old and new if discount is applied.

Here is a dump of prices for example product with discount:

Code: Select all
  ["costPrice"]=>
  string(8) "23.00000"
  ["basePrice"]=>
  float(23)
  ["basePriceVariant"]=>
  float(23)
  ["basePriceWithTax"]=>
  float(27.83)
  ["discountedPriceWithoutTax"]=>
  string(8) "15.00000"
  ["priceBeforeTax"]=>
  string(8) "15.00000"
  ["salesPrice"]=>
  float(18.15)
  ["taxAmount"]=>
  float(3.15)
  ["salesPriceWithDiscount"]=>
  float(0)
  ["salesPriceTemp"]=>
  float(18.15)
  ["unitPrice"]=>
  float(0)
  ["discountAmount"]=>
  float(9.68)
User avatar
Moderator

GK User
Mon Jul 08, 2013 10:59 am
Thanks teitbite!!

I will contact with VM forum to fix it ;)
User avatar
Expert Boarder

teitbite
Tue Jul 09, 2013 12:13 am
Hi

Sorry I cannot help more. I'm not a VM expert, but I will gladly learn if You will be able to share with the answer here.
User avatar
Moderator