• 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

Simon Smyslov 25 Jan 2022, 13:06

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

Simon Smyslov 25 Jan 2022, 14:08

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)

Simon Smyslov 25 Jan 2022, 19:14

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(((((((

Fred 26 Jan 2022, 10:08

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?

Simon Smyslov 26 Jan 2022, 12:41

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”.

Fred 26 Jan 2022, 12:44

Please give me a link where I could see duplicated comments button

Fred 26 Jan 2022, 12:46

I don’t see duplicated button there https://take.ms/NneVy

Simon Smyslov 26 Jan 2022, 12:53

Ah, because you should log in in as a client.
Use this credentials:
Login test@test.com
Password test@test.com

Fred 26 Jan 2022, 12:53

Duplicated label is fixed
Updated file is
/www/modules/pkelements/views/templates/productimage.tpl

Fred 26 Jan 2022, 12:57

Ok, I see.
Try to unhook the module Product Comments from “displayMoreButtons” hook

Simon Smyslov 26 Jan 2022, 13:05

There are no Product Comments http://prntscr.com/26jl0ex

Fred 26 Jan 2022, 13:13

ok, I just removed it

Simon Smyslov 26 Jan 2022, 13:18

Another thing. I left a comment and now its just infinite loading for a comment http://prntscr.com/26jl6k5 and http://prntscr.com/26jl76i

Simon Smyslov 26 Jan 2022, 13:19

And there two buttons for the comments(((((

Fred 26 Jan 2022, 18:03

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?

Simon Smyslov 26 Jan 2022, 18:34

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?

Simon Smyslov 26 Jan 2022, 18:36

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?

Fred 27 Jan 2022, 11:25

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

Simon Smyslov 27 Jan 2022, 11:46

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.

Fred 28 Jan 2022, 12:13

Did you disable AMP? because the link is not available for me now

Fred 28 Jan 2022, 15:05

Out of stock label is fixed

Simon Smyslov 28 Jan 2022, 15:06

THANK YOU A LOT!!! We can close the ticket)))