Home Forums WoodMart support forum Move Content used in HTML Block of "Add to cart button"

Move Content used in HTML Block of "Add to cart button"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #267292

    pritammhatre
    Participant

    Dear Team,

    Currently content used in Product Page -> After “Add to cart button” text area is showing up just after the ADD to CART Button but i want it to be after the social share icons present on single product page

    I need to move the content after the share icons present on the single product page

    Can you help

    Regards,
    Pritam

    #267374

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please add this code to the functions.php of the child theme:

    add_action(
       'wp',
       function() {
          remove_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 31 );
          add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 61 );
       }
    );

    Best Regards

    #267532

    pritammhatre
    Participant

    Dear Team,

    Thanks a lot it is working as expected.

    Just small help in same way can we move the – Before “Add to cart button” text area after share icons in same manner which we did for After “Add to cart button” text area

    So later we can move any one section or both which suits good for us and use that edit code in functions.php

    Would really appreciate your help with sharing the related code to move

    Regards,
    Pritam

    #267685

    Hello,

    Please use the Extra content block with the option “After content” for this purpose. The content would be placed just after the share buttons.

    Best Regards

    #267942

    pritammhatre
    Participant

    Thank you Team for showing one more option which i can utilize but this option does not take place where i want the content to be present, as this takes up a new row after the entire product section and not on the right side just below the share icons

    What i need from you is similar code for functions.php of the child theme to move Block – Theme Options -> Product Page
    Before “Add to cart button” text area after share icons

    You have already shared this code to move – After “Add to cart button” text area after share icons

    I will move any one section not both based on which suits good to use so i can use one section as it is and one moved below the share icons

    Will really appreciate your help to share similar code to move Before “Add to cart button” text area after share icons

    Regards,
    Pritam Mhatre

    #268306

    Hello,

    Please add this code to the functions.php of the child theme:

    add_action(
       'wp',
       function() {
          remove_action( 'woocommerce_single_product_summary', 'woodmart_before_add_to_cart_area', 25 );
          add_action( 'woocommerce_single_product_summary', 'woodmart_before_add_to_cart_area', 62 );
       }
    );

    Best Regards

    #268470

    pritammhatre
    Participant

    Thank you Team for your support

    Code Working as expected

    #268517

    You are welcome! If you have any questions please feel free to contact us.

    We will appreciate highly if you spend a couple minutes and aswer the questions provided here: https://8uehqcg4tjy.typeform.com/to/IgyV2EiP

    Best Regards

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

The topic ‘Move Content used in HTML Block of "Add to cart button"’ is closed to new replies.