- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 09.09.19, 13:44
- Opened by: Bruno Barradas
- Closed by: Marek
- Closed on: 01.10.19, 15:44
- Reason: Closed
- Comment: Glad to help!
Ticket #15518 - [AMP] - Show custom module on Product Page + Show another modules on amp builder
Hello Marek,
1. I’ve created a module to show product availability of our physical stores in the product page, it is working on desktop version with no problems, but in amp version it doesn’t show up, is it something possible to do? If it is possible, how can I do it without breaking theme updates. The custom module is hooked in “displayReassurance” hook and it’s called “Stock Lojas”, it’s only working with this product: https://www.science4you.pt/quimica/20-fabrica-de-slime-brilha-no-escuro/
2. Another question is, in the amp version I would like to display some category titles and a product list of 4×2 products in the homepage (something like isotope module), is it possible? I see that many of the modules in page builder aren’t present in amp version, is it on pourpose?
Thank you for your attention.
Kind Regards,
Bruno
Comments
Hi, Bruno.
I hope you know the AMP has a lot of restrictions regarding the source code. That’s why we have developed AMP theme from scratch and it’s absolutely independent from the main theme.
1. We recommend using a child theme in case you are going to edit theme files, read more here http://alysum5.promokit.eu/promokit/documentation/#child-theme
2. I suppose you can do that but with some code modification. As for me it’s not user friendly to have 4 columns of products per row on mobile devices
Hi Marek,
Yes I understand!
Thank you for your attention.
KR,
Bruno
you are welcome
Hello Marek,
Sorry to bother you again.
I’ve created the child theme (everything working as expected) and edited the .yml files but I can’t figure it out where do you enable/disable the “mobile/amp” modules.
Thank you for your attention.
KR.
Bruno
Hi Marek,
Nevermind… I’ve restarted the module and called the hook in mobile/catalog/product.tpl
Working as expected.
Thank you
Ok, great!