| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to replace quantity in stock with stock indicator | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() How we can displays quantity of product in stock with stock indicator and not the exact number, something like the following link??
http://www.magentocommerce.com/magento-connect/product-stock-quantity-indicator-3259.html
__________________
X-Cart Gold Version 4.4.5 |
|||||||
#2
|
|||||||
|
|||||||
![]() You can do this with smarty
file: /skin/common_files/customer/main/product_details.tpl (or whatever template file you use for product_details.tpl for your skin) FIND this code: Code:
And replace: Code:
{if $product.avail gt 0 and $product.avail lt 4} <img src="RED_BAR.gif" /> {elseif $product.avail etc.... etc... {/if} use smarty to trap for number in stock and display the color bar. This shouldn't take you more than a few minutes to code it. Yes?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
![]() A simple version is this:
PHP Code:
__________________
Live with Gold 4.5.1 Dedicated Linux server MaxCDN 4 pull zones Dedicated SSL ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() I was thinking for something more complex combining the Low limit in stock and the Minimum order amount of every product.
From that numbers I would like to produce the tree or more steps limits and to be different for every product. Let say that we have some product counted in pieces and some others in meters, some other have minimum quantity to order 10 pieces and some other have 100 meter. I am trying to find a solution to combining all this data. Any ideas??
__________________
X-Cart Gold Version 4.4.5 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Make the list of variable you want to manipulate. Then identify them as XC variables. Use them according to your needs. It is a job done with Smarty if statement.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() there are a few solutions if you search the forum too.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#7
|
|||||||
|
|||||||
![]() I have try to search the forum and google as well but i have not find something.
Possibly i am searching wrong. Is it possible someone to help me complete this add on Personally believe that will be useful for many people. At the moment this "module is already created for zen car, magento, and others.
__________________
X-Cart Gold Version 4.4.5 |
|||||||
#8
|
|||||||
|
|||||||
![]() Quote:
Just use my previous post and add a couple of extra steps and instead of the wording add image refs instead for the steps of the indicator.
__________________
Live with Gold 4.5.1 Dedicated Linux server MaxCDN 4 pull zones Dedicated SSL ![]() |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|