| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Visual stock amount | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is there a mod to show the stock amount on product pages?
Example: stock = 0 -> an icon with no stock message is shown stock = 1-5 -> a red icon with low stock message is shown stock = 6-10 -> an orange icon with limited stock message is shown stock = 11-100 -> a green icon with in stock message is shown Does this make sense?
__________________
X-Cart 4.1.x, 4.2.x, 4.3.x en 4.4.x ![]() ![]() Nederlandse X-Cart services, vertalingen, uitbreidingen en meer: http://www.scanographics.com |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Use an if statement to show what you want
{if $product.avail eq 0} show image/message for no stock {elseif $product.avail gte 1 && $product.avail lte 5} 1-5 image/message {elseif $product.avail gte 6 && $product.avail lte 10} 6-10 image/message {elseif $product.avail gte 11} 11-.... image/message {/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks Steve, I will try that!
__________________
X-Cart 4.1.x, 4.2.x, 4.3.x en 4.4.x ![]() ![]() Nederlandse X-Cart services, vertalingen, uitbreidingen en meer: http://www.scanographics.com |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|