Home Forums WoodMart support forum Continue shopping on Shopping Cart

Continue shopping on Shopping Cart

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #43291

    leds-pros
    Participant

    Hello,
    Is there an option for customers to continue shopping on the shopping cart ?
    Best regards,
    Leds-Pros

    #43313

    Artem Temos
    Keymaster

    Hello,

    Sorry, what do you mean? Could you please post some example for better understanding?

    Regards

    #43327

    leds-pros
    Participant

    My poor english ๐Ÿ˜‰
    I let you an attachment.

    Attachments:
    You must be logged in to view attached files.
    #43332

    Artem Temos
    Keymaster

    There is no such button in the WooCommerce or our theme and it is possible to add it only by customizing the file woodmart/woocommerce/checkout/form-checkout.php.

    #43341

    leds-pros
    Participant

    Ah. I am not programer but several website have this option.
    I have found this code for function.php
    May you please help me to have the same width for the button and a space like in the first example ?

    Attachments:
    You must be logged in to view attached files.
    #43353

    Artem Temos
    Keymaster

    Try to add this CSS code to increase it

    .wpm-continue-shopping {
    	margin-top: 20px;
    }
    
    .wpm-continue-shopping a {
    	width: 100%;
    }
    #43896

    leds-pros
    Participant

    Hello,
    May our searches will serve other people.
    So, I let you the final code to have the same thing as the attachment. (Only color of typography is a little bit different / theme).
    Best Regards,
    Leds-Pros

    Attachments:
    You must be logged in to view attached files.
    #43902

    Artem Temos
    Keymaster

    Thank you for sharing your solution here ๐Ÿ™‚ If you want to make it visible for all visitors, you don’t need to put the code to the private content.

    #43903

    leds-pros
    Participant

    Ok, but not without your permission ๐Ÿ˜‰
    So,
    In functions.php :

    /* Ajouter un bouton “Continuer mes achats” sur la page panier */

    add_action( ‘woocommerce_after_cart_totals’, ‘wpm_continue_shopping_button’ );

    function wpm_continue_shopping_button() {

    // On rรฉcupรจre le lien de votre page boutique
    $shop_page_url = get_permalink( woocommerce_get_page_id( ‘shop’ ) );

    // On ajoute notre bouton
    echo ”;
    echo ‘ Continuer mes achats‘;
    echo ”;
    }

    In Custon.css :
    .wpm-continue-shopping {
    margin-top: 20px;
    }

    .wpm-continue-shopping a {
    width: 100%;
    }

    #43906

    Artem Temos
    Keymaster

    Great, thank you ๐Ÿ™‚

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