• Resolved Apfelbiss

    (@apfelbiss)


    Hello,

    we want to make it as easy as possible for the user to select the gift. Therefor we are a little bit irritated, that there is no “Add to cart” button on the single product page for gifts.

    We want to show the button “Add to cart” and/or at least “Back to cart” on the single product pages for gifts, where the “Add to cart” button normally is shown.

    We are missing an easy editable template file for this. How can we implement one or both buttons?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author DecomTeam

    (@decomteam)

    You can easy add extra button “Back to cart” with hooks:
    WooCommerce Hook Reference

    
    add_action( 'woocommerce_single_product_summary', 'my_funtion_sample', 30 );
    function my_funtion_sample() {
      global $product;
      echo '<a href="URL">Back to cart</a>';
    }
    

    [ Signature deleted ]

    • This reply was modified 8 years ago by DecomTeam.
    • This reply was modified 7 years, 3 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • The topic ‘Add buttons at single product page?’ is closed to new replies.