- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 13.12.17, 15:14
- Opened by: Nathalia
- Closed by: Marek
- Closed on: 29.12.17, 13:19
- Reason: Closed
- Comment: Glad to help!
Ticket #11270 - Out of stock text
Hi, i realized that my store isn’t showing the “not available” text when some product is out of stock.
As you can see on the image, that product has 0 units, but the store show “Avaliabity: In stock (0 Item)”.
I did delete this line in css:
/*.add .product-availability {display: none}*/
but nothing changes. That tag didnt exist on the code.
Comments
The issue has been fixed. Please check it out
Thanx!
Is There a way to hide the price in case the product is not available?
And is there a way to put the text “not available” on the product list?
The price is hidden now. As for “not available” text, I didn’t find such option for category page
Hi, i did some changes on the code, and i got.
First I created a new file, calls outofstock.tpl
Here is the code:
{if $product.show_price}
</div>
{/if}
The, in the file themes/alysum/templates/catalog/_partials/miniatures/product.tpl
I put an if to do not show the price, like this:
{if $product.quantity > 0}
In the end, i called the file that I created:
{if $product.quantity < 1}
Great. have I to do something?
No, i’m just sharing
Thank you very much for sharing