- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 25.01.22, 12:58
- Opened by: Simon Smyslov
- Closed by: Fred
- Closed on: 28.01.22, 15:06
- Reason: Closed
- Comment: Glad to help!
Ticket #22929 - AMP out of stock
Hi. After moving the website from test domain to active the label OUT OF STOCK in AMP version is not showing in the Category page (But its ON in the AMP settings). Can you help me with that please?
Comments
I found out that in AMP html there are no Out of stock label.
<ul class=”product-labels”>
<li class=”new”>Nuevo</li>
<li class=”sale” wfd-invisible=”true”></li>
</ul>
I´ve searched in the /themes/alysum/templates/mobile/catalog and did not found the Out of stock label except the product.tpl
Other question.
For some reasons in desktop version there are extra black label http://prntscr.com/26j3ub2 . As I understand there are two “Out of stock " labels. How to fix it? If I will add “Agotado” in the Shop settings → product config →product stock in the line “Label for out-of-stock products that are not allowed to be purchased”, I will recieve this one http://prntscr.com/26j3wme .
But ok, I can hide it with CSS, but it not solve the issue with AMP http://prntscr.com/26j3y2z (this product is out of stock)
Also I found that there are 2 Sale badges. http://prntscr.com/26j6da5 it happens if Im choosing the product-page as layout in theme settings. But in category page it stay “Native theme layout”, but if I will change to product-category - the issue is solving…but th filters are not showing in that case(((((((
Hi, Simon.
Are the credentials in your profile correct?
I have fixed the file /www/themes/alysum/templates/catalog/product.tpl but no changes in the product page. Could you please check out your credentials?
Hi. Yes, they are correct except of the main webpage its the same as for admin. “Out of stock” badge is fixed now for the desktop version, but for AMP there are no “out of stock” badge - http://prntscr.com/26jknh2 (the product is not in stock which we can see in the desktop, but in AMP it shows only “sale” badge.
But there another problem with Discount badge (http://prntscr.com/26jklqb) and there are button “Leave a review”.
Please give me a link where I could see duplicated comments button
https://bloomy-shop.com/cuidado-facial/secret-nature-from-jeju-cream.html
I don’t see duplicated button there https://take.ms/NneVy
Ah, because you should log in in as a client.
Use this credentials:
Login test@test.com
Password test@test.com
Duplicated label is fixed
Updated file is
/www/modules/pkelements/views/templates/productimage.tpl
Ok, I see.
Try to unhook the module Product Comments from “displayMoreButtons” hook
There are no Product Comments http://prntscr.com/26jl0ex
ok, I just removed it
Another thing. I left a comment and now its just infinite loading for a comment http://prntscr.com/26jl6k5 and http://prntscr.com/26jl76i
Here https://bloomy-shop.com/cuidado-facial/secret-nature-from-jeju-serum.html
And there two buttons for the comments(((((
For some reason jQuery script is missing on that page. Weird issue, because it appears for that product only. Other products works fine. Maybe you are using some specific product module that causes the issue?
Im using extra - Seo module and Stripe payment. And thats it. I will try to recreate that product and see if it helps.
Another question about the AMP out of stock badge problem. Did you find a solution how to fix it in the categories Page?
And is it possible to change the image sizes in some brands pages and is it possible to make GRID 1 column for a brand page in AMP?
1. Could you please give me a link to AMP product which has missed label?
2. You can do that using custom CSS that you can add to AMP Settings → Customer CSS
Hi Fred. For example here https://bloomy-shop.com/module/pkamp/manufacturer?id_manufacturer=3&link_rewrite=aromatica The second product in that list is “Out of stock”. On the page of that product it shows that is Out of stock https://bloomy-shop.com/mobile/product/2-aromatica-orange-cleansing-sherbet And its happening with all products on categories pages.
Did you disable AMP? because the link is not available for me now
Try this one https://bloomy-shop.com/manufacturer/aromatica.html .
Out of stock label is fixed
THANK YOU A LOT!!! We can close the ticket)))