product price and discount at category page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Oct 17, 2013 7:09 pm
Reply with quote
Report this post
hello i need to show the product price with red line and the sales price on category page is this possible?
i already done it at the product detail page but cant at category page
thx in advance
User avatar
Fresh Boarder

GK User
Fri Oct 18, 2013 7:10 am
Reply with quote
Report this post
Could You please post an url to your site?
Please post 2 links - to page where it already looks like you want, and to page where don't.
User avatar
Moderator

GK User
Fri Oct 18, 2013 5:39 pm
Reply with quote
Report this post
i pmed u details cause the site isnt up yet

Cyberek wrote:Could You please post an url to your site?
Please post 2 links - to page where it already looks like you want, and to page where don't.
User avatar
Fresh Boarder

GK User
Fri Oct 18, 2013 5:47 pm
Reply with quote
Report this post
Please send PM again, I haven't received it.
User avatar
Moderator

GK User
Fri Oct 18, 2013 9:57 pm
Reply with quote
Report this post
You would need to edit this file:
templates/gk_bikestore/html/com_virtuemart/category/default.php
it overrides standard VM category view.
Now find line:
Code: Select all
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);

and add another that shows correct "discounted" price.
Finally add some CSS'ing to category view.
User avatar
Moderator

GK User
Sat Oct 19, 2013 1:43 pm
Reply with quote
Report this post
thx for the answer
i knew the file i need to edit but there is need for a condition to say if the product have discount then show both prices (the original and the discounted one) else show only the original



Cyberek wrote:You would need to edit this file:
templates/gk_bikestore/html/com_virtuemart/category/default.php
it overrides standard VM category view.
Now find line:
Code: Select all
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);

and add another that shows correct "discounted" price.
Finally add some CSS'ing to category view.
User avatar
Fresh Boarder

GK User
Sat Oct 19, 2013 6:36 pm
Reply with quote
Report this post
And for that, You would need to ask on VirtueMart forum, as they are specialists on VM ;).
User avatar
Moderator


cron