| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show Market price (list price) on product detail page | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Show Market price (list price) on product detail page
Hello,
I've been trying to find a solution to this for years now, and have searched all over for it without much luck. In the category list, when an item is discounted, it shows the list price with a strikethrough above the actual price and then there is a percent off shown (save x%) next to the actual price. But in the product detail page it just shows the price. Yes, there is a % off label showing, but I want it to display exactly like it does on the category listing with the regular price just above the actual price with the percent off showing there. I've tried to move around some of the same code from products.tpl to product.tpl and it just won't show the actual price so I'm missing some kind of variable and am not sure what changes to make at this point. So does anyone have a mod to show the market price on the product detail page, or direct me to a solution? Thank you! Chris
__________________
Chris Wilson 4.7.10 (after 9 years with 4.1.12) CDSEO Pro |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Show Market price (list price) on product detail page
More recent versions show this by default. I don't have access to your version at the moment. Can you use webmaster mode to check if the market price is include in the $product array? Or you could temporarily add this to the template of your dev site {$product|@print_r} to print the entire contents of the array. http://www.smarty.net/forums/viewtopic.php?t=11435
If the value is included, just access it with {$product.NameofValue}. If it is not then you are likely to have to edit some php.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Show Market price (list price) on product detail page
Thank you for the reply. I'll look into it more to see if it is included in the product array.
If this is in 4.2, can anyone share their product.tpl file with me, so I can see how it is included? Thanks. Chris
__________________
Chris Wilson 4.7.10 (after 9 years with 4.1.12) CDSEO Pro |
|||||||
#4
|
|||||||
|
|||||||
Re: Show Market price (list price) on product detail page
I checked and yes, it pulls the[list_price] into the product array. Now I just need to figure out how to add it to the template
__________________
Chris Wilson 4.7.10 (after 9 years with 4.1.12) CDSEO Pro |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Show Market price (list price) on product detail page
Great! Try simply {$product.list_price} #guessing.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#6
|
|||||||
|
|||||||
Re: Show Market price (list price) on product detail page
Okay, this is what I did and it works just fine, so that when an item is on sale the list price will show up. I won't worry about the %off since that does already display on the page.
In skin1/customer/main/product.tpl Find: Code:
and BEFORE this I put: Code:
I don't use the strikethrough because it makes it hard to read the price. Hopefully this works okay, and I hope this is helpful for anyone else still searching for this.
__________________
Chris Wilson 4.7.10 (after 9 years with 4.1.12) CDSEO Pro |
|||||||
|
#7
|
|||||||||
|
|||||||||
Re: Show Market price (list price) on product detail page
Thanks Chris, it always helps when you share your final solution.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#8
|
|||||||
|
|||||||
Re: Show Market price (list price) on product detail page
Hi,
Please tell me how can I update list price field(MRP field)?My X-CART version is x-cart 4.6.2
__________________
X-cart Platinum 4.6.0 |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Show Market price (list price) on product detail page
That field should be located on the product page. Directly under the price field.
If the product has variants, then you may need to update prices on the variants page.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#10
|
|||||||
|
|||||||
Re: Show Market price (list price) on product detail page
Quote:
__________________
X-cart Platinum 4.6.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|