Yep sir...
One thing with Zen-cart, it is so easy to find out how to change things... Remember with code.. when ever you want to change something that says "change me" There is "change me" somewhere in the code somewhere.. so easy its not even funny![]()
Yep sir...
One thing with Zen-cart, it is so easy to find out how to change things... Remember with code.. when ever you want to change something that says "change me" There is "change me" somewhere in the code somewhere.. so easy its not even funny![]()
Just a newcomer, and I know nothing, but wouldn't that just change the plain-text "Units in stock" message and not effect the amount displayed? So if he were to change it from "Units in stock" to "In Stock," it would then read:
1000 In Stock
When (I believe) he just wants it to say:
In Stock
Just curious...
You are correct Cfe, that is not what i'm looking for. I want to remove the number that shows the quantity on stock. Any other ideas?
I think cfe is right.
Thus, it requires two steps:
1. clydejones suggestion above
2. change the code to this:PHP Code:<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
.
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.
Thank you, that removed the quantity. But here comes the tricky part: I want the In stock text to change to not in stock when stock is 0. How would i do this?Originally Posted by DrByte
Thanks for helping out!
/Gustaf
Look in admin -> configuration -> stock -> Mark product out of stock
replace *** with Not in Stock
Use this instead:Originally Posted by gustafr
PHP Code:<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '</li>' : '') . "\n"; ?>
Then use a variation on clydejones earlier post, like this:
includes -> languages -> english -> product_info.php
find this line of code
and add these below it:PHP Code:define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
PHP Code:define('TEXT_PRODUCT_IN_STOCK', 'In Stock');
define('TEXT_PRODUCT_NOT_IN_STOCK', 'Out of Stock');
.
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.
This worked perfectly, thank you for all your help.
Thanks a lot...I found it profoundly helpful when a PHP expert write the code for someone who's not so familiar with PHP to follow. I saved a lot of time trying and testing on something I just couldn't code properly.
Sc0rpionGirL
www.scarlettshop.com
www.kaccidesign.com
[FONT=Arial]"Our greatest glory is not in never falling, but in rising every time we fall." - Confucius (551-479 BCE), Chinese philosopher and educator[/FONT]
How do you alter this so that instead of displaying words it shows an image instead?