![]() |
inventory images
hey guy i dont want to show the QTY of my inventory.can i do a mod that shows a check when in stock or x when out of stock?
|
Re: inventory images
just replace the quantity in product.tpl, products_xxx.tpl with an if statement to get what you want to show
|
Re: inventory images
before i play arround with the code would this be good?only thing i can think of..
echo (empty($row[avail].Visible = 0)? "<img src="../x.jpg" />": "<img src="/check.jpg" />"); or { if (row[0] ==0 "") { <img src="../x.jpg" />; } else { <img src="../check.jpg" /> } } by the way where are these files?i think i found one in skin1_original/main/products.tpl |
Re: inventory images
{if $product.avail gt 0}
<img src="image for IN stock" width="xx' height="xx" alt="xx" /> {else} <img src="image for OUT of stock" width="xx' height="xx" alt="xx" /> {/if} This goes in template files not php files |
Re: inventory images
cool thx.thats in products.tpl?
|
Re: inventory images
..and product.tpl
|
Re: inventory images
i editied both product and products.tpl and nothing changed?do i need to modify the php file?
|
Re: inventory images
No, you don't need to modify php files. You may need to clear xcart cache. Execute in your browser - www.yourdomain.com/cleanup.php
|
Re: inventory images
could the files be
skin1/main/ or skin1/customers |
Re: inventory images
skin1/customer/main/product.tpl
skin1/customer/main/products_t.tpl OR skin1/customer/main/products_list.tpl |
All times are GMT -8. The time now is 06:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.