New Landing How can we help? Atelier Changing order and removing items from product summary.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Posted in: Atelier
  • #269294
    keysilinares
    Member
    Post count: 165

    But if I update my theme automatically will the changes made to content-single-product.php in the parent theme be erased? I tried adding that php code to my child’s theme functions.php and it didn’t work.

    #269298
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Adding this to your child theme’s functions.php file should work, it’s worked for me

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

    – Kyle

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register