Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
Hi, I am using the couch cart and for each cloned product page I want to be able to show the original price with a line through( use css to create the line) and then show the price after discount has been taken out side by side. How do I go about this? I want to be able to do same under each of the product I list on the home page. Have searched through the forum but not getting answers
Sample shown below:
Screenshot 2019-02-20 at 9.31.38 AM.png
Screenshot 2019-02-20 at 9.31.38 AM.png (152.58 KiB) Viewed 4140 times

Screenshot 2019-02-20 at 9.32.00 AM.png
Screenshot 2019-02-20 at 9.32.00 AM.png (164.93 KiB) Viewed 4140 times

Screenshot 2019-02-20 at 9.30.33 AM.png
Screenshot 2019-02-20 at 9.30.33 AM.png (46.01 KiB) Viewed 4140 times
Old price can be just calculated.. You don't need to "know" it. If your after-discount (20%) price is 120, then old price would be = 120 / ((100-20)/100) = 150.
@trendoman, the original price is stored in the editable region named 'pp_price' - I think it shouldn't be difficult to fetch it from that.

In product listings, each product is already in context and this variable should be directly available. In cart, each item makes available its page ID which can be used with <cms:pages> to bring that item's page in context and get the price.
I honestly don't know how how to go about this. I use this to list all the products and show the original price but u don't know how to get the new price and the discount applied:
Code: Select all
<cms:pages masterpage="product-detail.php">
<cms:show k_page_title />
Old price: <cms:number_format pp_price />
New and discounted price: ???
Discount value: ??
<cms:pages>
I forgot to mention that the discount is an item level discount so the products I want to apply the discount will have varying discounts
Hi KK,
Any news on the information requested above?
Solved?
Trendoman,
No please.
I can see what it takes to fix that if you PM me ftp creds.
Ok trendoman. Thank you
11 posts Page 1 of 2
cron