Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #876289
    belayachimarouane
    Participant

    Hello,

    I have added a php code I found on the forum to add an extra button to every single product on woocommercerce.

    However I want to put it before the add to cart button (Ajouter au panier) and keep it inline.

    Every css code I add doesn’t work.

    Thank you

    Link : http://archibonmarche.com/boutique/pack-premium/

    #876651
    Rupok
    Member

    Hi there,

    Thanks for writing in! All of your links including your given link redirect to home so I can’t check anything. Would you share the code you are using and point us how can we go to the page to check this?

    Cheers!

    #877213
    belayachimarouane
    Participant

    Hello, I have solved the problem of redirection.

    I used the code :

    add_action('woocommerce_after_add_to_cart_button','cmk_additional_button');
    function cmk_additional_button() {
    	echo '<button type="reset" class="button alt">Calculer</button>';
    }
    

    Thanks a lot

    #877892
    Thai
    Moderator

    Glad you’ve sorted it out.

    If you need anything else, please let us know 🙂

    #877969
    belayachimarouane
    Participant

    I still can’t figure out how to inverse the buttons on the page 🙁

    I added the extra button with code shown in my previous post.

    Thanks

    #878019
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #878548
    belayachimarouane
    Participant

    Hello, I have solved it !Thank you.
    However, I would like to change the “Descirption” under each product to “Exemple”

    URL : http://archibonmarche.com/boutique/pack-basic/

    Thank you

    #879359
    Christian
    Moderator

    Regretfully this isn’t a feature offered by X. This article might help https://gerhardpotgieter.com/2013/09/04/woocommerce-change-description-tab-title-heading-product-name/

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-876289 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>