| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Showing discounted price | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() So,
I've searched here and not found anything that addresses this issue: My client wants to have a sale to clear stock. 30% discount on selected items type thing. I can see the 'discount_avail' flag for a product, but I want to know how I can a) get the discount value (i.e. 30%) b) show the modified price when the user is browsing the products not just at the checkout ? I'm figuring these must be something easy I'm missing here...?
__________________
Version 4.1.3 pro |
|||||||
#2
|
|||||||
|
|||||||
![]() it should show the discount by default on the category pages, and in the discount "graphic" on the detail pages. Did you perhaps modify the templates and delete that info?
Moving to template editing.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() balinor, i think he means that he want's to show the value (amount they're saving) Like 30% Off, You Save x-amount.
right now the discount will strike through in products.tpl and products_t.tpl but on the details page, it just has the discount graphic and displays the modified price (no strike through or difference in savings)
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#4
|
|||||||
|
|||||||
![]() Ah so!
So you mean it DOES displays the modified price on the details page? I've mod'ed the template so heavily that I must have lost it. Whats the 'products_t.tpl' template for?
__________________
Version 4.1.3 pro |
|||||||
#5
|
|||||||||
|
|||||||||
![]() products_t.tpl is the multi-column display for products within a category (before you click on a product and get to the details page).
on the product details page, there should be a starburst on the upper right-hand side and within that starburst, it will say Save x%. but if you're looking to have the change in price denoted on product.tpl, it does not currently do that. it only does it within products.tpl and products_t.tpl would be a good option so if you figure it out, let me know.
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#6
|
|||||||
|
|||||||
![]() So you don't know
![]() If its done on the products.tpl then it must be possible ont he details page... unless its calculated outside the Smarty template...?
__________________
Version 4.1.3 pro |
|||||||
#7
|
|||||||||
|
|||||||||
![]() i think you can pull the code from products.tpl. you just have to find where it's calculating the price. and then just replace the corresponding code in product.tpl.
i'm going to try it but i'm no balinor ![]()
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() ok, i tried it. didn't work. there's an issue with the table tag. i think if you can resolve the issues with the table tag, it's doable.
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#9
|
|||||||
|
|||||||
![]() But you got the price to come out correctly? Could you paste your template code here. Perhaps i can fix it
__________________
Version 4.1.3 pro |
|||||||
#10
|
|||||||||
|
|||||||||
![]() nah nah nah....i didnt get it to come out correctly b/c the tables are nested.
the code from products.tpl should be somewhere here... Code:
the code from product.tpl should be somewhere here... Code:
this will display incorrectly but i THINK if you can resolve the table issue, it'll work out fine.
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|