Thanks to all of you who did this made my site better
Thanks to all of you who did this made my site better
Hi,
I want to know is there any way in place of In Stock or Out of Stock, we can add image?
version 1.3.8a
thanking you in advance
~ Time
Wow, finally find this useful post, it's also what I need. Thank you.
Hi,
I'v found this thread very useful, but could I ask another question?
regarding the "new products" and "all products" lists, how do I remove the "In Stock: 5" from these lists?
I'v used the info in this thread to remove the stock information on the main product display, but I dont know how to remove it from the new and all products lists,
could any one point me in the right direction as to what files to alter and what code to change?
any help would be really appreciated
sorry, stupid question, my first post and I post a question I didnt need to ask,
I apologise
problem sorted
Hi,
Could anyone help me with this functionality in the all products and new products page? I don't want to get rid of the quantity, I just want the same exact functionality as here where it shows in stock or out of stock. I believe one of the file is tpl_modules_products_new_listing but I have no idea what I need to change to get this same functionality as on the products info page. Thank you in advance for any help.
How about a minor change to this by adding in a LOW stock warning. So in other words if inventory dropped below 10 units instead of saying instock it would say "Limited Availability"
Hopefully this is just a bit more code any direction would be fantastic as usual.
Can anyone verify if DrByte's mod in post #9 works on v1.38a As it was over 3 years ago LOL. I'm asking as I tried to apply it to my zen cart today but have so far failed Nothing seems to change at all?
Thanks.
Which files did you edit? Do you have any addons or override versions of those file in custom template folders which are maybe overruling your changes?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Heres what I've done:
In File (override): includes/templates/mytemplate/templates/tpl_product_info_display.php
Replaced
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
With
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '</li>' : '') . "\n"; ?>
In File (override): includes/languages/english/product_info.php
Added
define('TEXT_PRODUCT_IN_STOCK', 'In Stock');
define('TEXT_PRODUCT_NOT_IN_STOCK', 'Out of Stock');
Below
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
But still no change?
Bookmarks