Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Button with criteria

  • 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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.