-
I can see how to add a specific class to a button in the Advanced tab of the block. However, I am trying to understand how to implement the following. How do I provide the data-product-id?
<button
class=”pelcro-subscribe-button”
data-product-id=”123″
data-plan-id=”1234″
>
Subscribe to plan 1234
</button> -
Hi there,
What does the instruction say?
Is the product a Woocommerce product?
If so, you can find the product ID when you hover over the product name at dashboard > Products:
https://i.postimg.cc/ZYGjLGfk/2023-03-28-11-10-47.jpg -
Thanks, Ying. No, this is not a product on the WP platform. It is a button to open a modal that presents a membership offer. I am trying to understand whether it is possible to use the block element for a button to present the product-id.
- You must be logged in to reply to this topic.