$w("Button") don't get reference to "Add to Cart" button

The $w("Button") function don’t return a reference to buttons on the standard Store pages. For example, on the standard Product Page, running $w("Button") don’t return a reference to the “Add to Cart” button.

How to get a reference to this button?

Hi,
It’s not possible to reference a standard add to cart button on the product page.

If you wish to add custom functionality to the add to cart button, you will need to build your own products page.

You can find the following articles useful:

  • CartIcon reference.

  • An example tutorial for adding multiple items to cart with a custom product page and add to cart button. Link.

Hi @aleksf ,

That’s what I found out. Still, I would rather change the standard Product Page behavior since I want to keep using all the other widgets available that all point to the standard Product Page.

Is there a way to redirect calls from the standard Product Page to my custom Product Page?