Home Forums WoodMart support forum Implementation of a Editor into Woocommerce/Woodmart

Implementation of a Editor into Woocommerce/Woodmart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #423398

    BPP
    Participant

    Hello

    We are trying to implement a editor to our shop so that our clients can customize our designs.
    The tool we want to use for this needs to replace or append the regular «add to cart» button on the product single template.

    To achieve this the tool expects the standard woocommerce hooks as shown in the code below . As it does not work right now i assume Woodmart does not use the standard implementation.

    registering AddToCart Button
    add_action( 'woocommerce_before_single_product', 'show_printess_view_if_printess_product' );

    if the hook is there show buttons, form

    add_action( 'woocommerce_after_add_to_cart_button', 'printess_add_cart_inputs' );
    add_action( 'woocommerce_after_add_to_cart_form', 'printess_register_customize_button' );
    add_action( 'woocommerce_before_single_product_summary', 'printess_embed_iframe', 40 );

    What hooks are used by Woodmart instead?

    Kind regards
    Christoph Hofstetter

    #423609

    Luke Nielsen
    Keymaster

    Hello,

    The below hook adds the “Add to cart” button to the single product page.

    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );

    Don’t hesitate to let me know if you need any further help or any other info.

    Kind Regards

    • This reply was modified 1 year, 5 months ago by Luke Nielsen.
    #463720

    BPP
    Participant

    The Developpers of the Editor made the integration work – case closed.

    #463773

    Luke Nielsen
    Keymaster

    Hello,

    Glad that the issue is sorted out.

    Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Implementation of a Editor into Woocommerce/Woodmart’ is closed to new replies.