- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 09.07.21, 07:34
- Opened by: Nicolas
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #21897 - Label out of stock
Hello,
All seems well configure (new installation), but I have no labels on miniatures and in the catalog.
Comments
Hi, Nicolas.
Could you please give me a link to a page where the labels should appear?
Hi Fred,
On the homepage:
https://lefranccurieux.fr/ TRIMERESURUS ALBOLABRIS, SQUELETTE EN ROND (L) is out of stock
And on this page :
https://lefranccurieux.fr/78-mygales-et-araignees Eurypelma spinicrus (ID 1807) is out of stock too.
Same troubles with the AMP version.
Spent much time on that with no success. I assume that’s a configuration problem.
Do you have an option to switch the theme to Classic prestashop one and check out labels there?
I switch, and same trouble, no “out of stock” labels.
This is just insane as it is a clean and recent installation :/
Attachments:
Classic.jpg(135.6 KiB)Looks like a bug or a configuration question.
I have tried to find an answer on the internet but with no success yet
I fix the problem in the category pages adding a code that was missing in the templates/catalog/_partials/miniatures/product.tpl
{if ($product.quantity == 0)}
<li class=”pack”>Vendu</li>
(I create a child theme by the way)
The label is ok (example : https://lefranccurieux.fr/97-papillons)
But not on the widgets on the homepage and not for AMP
Ok,
Added following code
In the file
Everything works it’s perfect, thank you
You are welcome!
Ok so
When I check here :
https://lefranccurieux.fr/77-scorpions
The out of stock have no labels and the In stock have a out of stock label
Annoying trouble!
Sorry, but you added that “fix”.
You can try to change the “$product.quantity” to “$product.quantity_all_versions” maybe that is a solution
Hi Fred,
Sorry wrong URL !
https://lefranccurieux.fr/77-scorpions is ok
https://lefranccurieux.fr/mobile/category/77-scorpions is not, the out of stock have no labels and the In stock have a out of stock labels
Attachments:
AMP.jpg(39 KiB)desktop.jpg(84.7 KiB)I need access to your FTP Currently I’m not able to connect
i have updated the password in my profile, connection on ionos is by SFTP
Please check it out now, it should be correct.
Updated file is
/themes/alysum/templates/mobile/catalog/_partials/miniatures/product-miniature.tpl