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

Implementation of a Editor into Woocommerce/Woodmart

Viewing 2 posts - 1 through 2 (of 2 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

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