Ok, I was able to change the stock from Units in Stock to In Stock! But, It still show the quantity I don't want to show the quantity on that. Then when I have low stock I want it to say "5 left in Stock!"
Ok, I was able to change the stock from Units in Stock to In Stock! But, It still show the quantity I don't want to show the quantity on that. Then when I have low stock I want it to say "5 left in Stock!"
This should be what your looking for
Disable Show Quantity in Stock via Admin
Go to Admin > Catalog > Product Types > Layout Setting > Show Quantity in Stock -- set to false
includes\templates\yuor_template\templates\tpl_product_info_display.php
Add this where you want it to display on product page
Code:<?php if ($products_quantity >= 5) { echo '<p class="stock-message in-stock">In Stock</p>'; } elseif ($products_quantity > 0) { echo '<p class="stock-message low-stock">Only ' . (int)$products_quantity . ' left in stock!</p>'; } else { echo '<p class="stock-message out-of-stock">Out of Stock</p>'; } ?>
I see you got it to work
if you want to style the word "In stock" just add this to your stylesheet
Code:.stock-message { font-weight: bold; margin-top: 10px; font-size: 1.1em; } .stock-message.in-stock { color: green; } .stock-message.low-stock { color: orange; } .stock-message.out-of-stock { color: red;
Ok, I have another issue with the bullet in description. Some sentence will use the bullets and some other sentences doesn't. How can I fix that?
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
wmorris,
Might be tough because we are using css to force the bullets on any <p> tag within the description.
Show me an example and I might be able to help you out.
Last edited by chadlly2003; 25 Aug 2025 at 04:06 PM.
Ok, here is the company I get my products from. https://sigmaslc.com/collections/hom...-wolf-bookends
I am sorry not getting a clear picture here. On your site can you show me where the issue is happening. Its easier for me to see the actual issue.