| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Modified product.tpl shows qty in stock with options | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Strange one this...
I have made modifications to product.tpl in order to show an 'in stock' icon if qty greater than 10 and a 'special order item' if below this. It works great and primarily was developed to reduce the number of potential missed updates as stock comes in and out, therefore less p***ed off clients. The mods themselves are seperate templates with a simple {if} {else} setup to control their display. Problem is, if i try to apply options to the product, the modification disappears and is replaced by the quantity in stock in unformatted text! Any idea what this might be?
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#2
|
|||||||
|
|||||||
![]() Are your if statements inside any of the if statements related to product options?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() PM sent containing product.tpl
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#4
|
|||||||
|
|||||||
![]() Please keep the discussion to the thread itself. Thanks
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Did you get anywhere with this mod??
Im wanting something like this that rather than actually showing stock levels to customers shows "In Stock" or "Back Order" if its not in stock.
__________________
X-Cart Version 4.0.3 |
|||||||
#6
|
|||||||
|
|||||||
![]() that's what i've done, just doesn't work if product has options
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#7
|
|||||||
|
|||||||
![]() So it only works if it has variants??
could you send me the product.tpl for me to have a gander at?
__________________
X-Cart Version 4.0.3 |
|||||||
#8
|
|||||||
|
|||||||
![]() no, it only works if product has NO variants.
Simply add this code: Code:
This is a simplified version of what I have in place[/code]
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#9
|
|||||||
|
|||||||
![]() Thanks for that, but hey guess what I do have variants and just cant seem to get anywhere with it.
Thought it would be simple to do seen as if you have more than one then display IN STOCK and if you have less than 1 OUT OF STOCK but whatever i try i just cant seem to get anywhere with it.
__________________
X-Cart Version 4.0.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|