• Priority: Medium
  • Status: Waiting on customer
  • Theme: Modules
  • Assigned To: Fred
  • Private: No
  • Open Date: 22.06.22, 09:23
  • Opened by: Benjamin WEPPE

Ticket #23460 - AMP MODULE add hook

Hi there,

I’d like to add a framing option (ENCADREMENT) on the mobile product page AMP version of my alysum theme.
It is a bit like an attribute.

Where should we add the hook ?

Please find enclosed

Comments

Fred 22 Jun 2022, 09:59

Hi, Benjamin.
1. Add attribute first - https://take.ms/gajPB

2. Go to a product and add new attribute - https://take.ms/piSrz

Benjamin WEPPE 22 Jun 2022, 10:02

Hi Fred,

It's not an attribute. It's actually a plugin that adds a product as an attribute.
The dev of the plugin needs to know where to add the hook of his module ;).

In the normal version (desktop) we had to put {hook h='displayFrameAttributes' product=$product} in themes/alysum/templates/catalog/_partials/product-variants.tpl and it works fine :)

Thanks

Benjamin WEPPE 22 Jun 2022, 10:06

All good found it ;) It was in templates/mobile/catalog/product.tpl

Fred 22 Jun 2022, 10:14

Yes, that's it