- Issue created by @tonytheferg
- 🇫🇷France sébastien-fr Nantes - France
Hello,
I have a similar problem, the context is different but it seems to me to be related. When a client is not identified, the ajax modal works. When the client is identified, the modal does not work when the page loads. But if we choose a variation (change of variation in ajax), then the ajax modal works afterwards. I have no errors in the logs or in the js console. What I see is that add to cart button (
.button--add-to-cart
) is missingdata-once="drupal-ajax"
. If I add it like this it works :$('.button--add-to-cart').attr('data-once', 'drupal-ajax');
It works but it's not ideal. We should see why this attribute is not added.