Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ggtech

    (@ggtech)

    Thanks! I got it to work now, you are amazing 😀

    Thread Starter ggtech

    (@ggtech)

    Thanks for your amazing support, just to get you right with the code

    Im able to add “[woocommerce-my-downloads-button id=PRODUCT_ID]” shorcode at the product page, theres no problem with that with 2 different ways:

    1.- Add it at the single page with elementor pro
    2.- Add it at the product description / excript

    So no matter what, im able to place the shortcode. Which way do you recommend me to do it?

    Now having the shortcode there, all i need is to edit the plugin and replace “$id = (int) $atts[‘id’];”

    with this:

    global $product;
    $id = $product->get_id();

    Here comes an extra question, if i do this change to the code, the shortcode im adding at the product page (with elementor or at the product description) will remain the same? Or do i need to add a different shortcode?

Viewing 2 replies - 1 through 2 (of 2 total)