How to Merge Woocommerce Cart and Checkout Page?

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 68

  • @wpsimplehacks
    @wpsimplehacks  3 года назад

    What kind of scenarios in your shop are those that need a cart and checkout page to be merged? Let me know in the comments.

    • @hiwahassan4613
      @hiwahassan4613 2 года назад

      I can't remove an item, i get this Sorry there was a problem removing

  • @aliceman5967
    @aliceman5967 3 года назад +1

    best teacher on YT, no BS, simple, fast, efficient!

  • @fred4838
    @fred4838 Год назад

    You my man, are a hero! I used the 'Alternative option' as I don't have a shop page allocated. Thanks alot

  • @BarisPalabiyik
    @BarisPalabiyik 3 года назад

    Your videos are not only very well explained they are also very very practical. Thanks my Suomalainen friend :)

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      Thanks 😊
      PS! No Suomalainen. I'm Estonian 😏

    • @BarisPalabiyik
      @BarisPalabiyik 3 года назад

      @@wpsimplehacks You're welcome, ahah the accents are similar I guess :)

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      Estonia and Finland are neighbours and our languages are a bit similar, hence the similarities

  • @tvattis7364
    @tvattis7364 Год назад

    Thank you so much for this tutorial, it was very easy to follow! However, I have currently come into a problem where I only get a faulty message in the checkout when one of the items in cart is out of stock. The fault is something like this: "there are some problems with the articles in your cart, go back and fix it", and then a button to return to cart. Unfortunately, this button does nothing as the cart is redirected. Do you know of any way of making the checkout able to deal with this issue without refering back to the cart?

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      See this wpsimplehacks.com/merge-woocommerce-cart-and-checkout/#step-4-automatically-remove-out-of-stock-products-from-cart
      This code checks each item in the cart and automatically removes it if it's out of stock. It also displays an error notice to the user to let them know that one or more items have been removed.

  • @centilmenkulübü
    @centilmenkulübü 3 года назад

    Thanks but when i try to remove item on basket. İt say "Sorry there was a problem removing" :( Can you help ?

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      It's hard to tell what's up with that. Maybe som incompatibility with a plugin or theme.

  • @sunshine1_1_1
    @sunshine1_1_1 Год назад

    Firstly, thank you for your hard work. Secondly, I would like to ask you about something. When the cart is empty, a message appears, “There are no products in the cart,” and at the bottom is a “Continue Shopping” button. I would like to change these texts to my native language, but I do not know how. I tried customization. Editing using Elementor but it does not work. I cannot edit these texts

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Loco Translate plugin allows you to translate everything coming from the plugins and themes. See here wordpress.org/plugins/loco-translate/

  • @sophiemulders
    @sophiemulders Год назад

    if i want to redirect an emty checkout page to another page? Not to shop but to home per example ( or the learndash course overview page)

    • @sophiemulders
      @sophiemulders Год назад

      already found my own answer. you can just put the slug of the page in the safe redirect function

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      ☺️

  • @tommasodapice345
    @tommasodapice345 3 года назад

    Hi, first thanks a lot for your videos. I have a custom thank you page, (redirect to custom page), how do I display order details in the custom thank you page? Thanks a lot for your time

  • @fricartm
    @fricartm Год назад

    Thanks! you saved my day. Just made a donation 😍

  • @varunkumars7441
    @varunkumars7441 3 года назад

    Great Piece of Content very well explained! Thank you

  • @bas-driesse
    @bas-driesse 3 года назад

    I used your code, but I have problem. With you when you delete something out of the cart its super fast. But with me it takes 4 seconds instead of 2. because it gives an extra redirect on the removal. Probably cause when the cart gets changed it needs to add an extra redirect to make the checkout part up to date. So how did you make removing products so fast? Thank you

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      Hi,
      I haven’t modified or tweaked anything on my site and everything works well and fast out of the box. Therefore, unfortunately I am unable to hepl you with it.

  • @SeanClarke
    @SeanClarke 3 года назад

    Another excellent video. Thank you.

  • @howed
    @howed 2 года назад

    What theme are you using Sire :)

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      It is Blocksy theme (Pro version). It also has a free version you can test before buying Pro.
      If you need a Pro version, then here you can get it with the 10% discount wpsimplehacks.com/blocksy (SAVE 10% Coupon WPSH10)

  • @silentphil77
    @silentphil77 3 года назад

    Total gold once again!

  • @TheSparkratos
    @TheSparkratos 3 года назад

    Nice 👍🏽 Also show the responsive view.

  • @TomRobakCom
    @TomRobakCom 2 года назад

    Awesome tutorial, however cross selling products that are normally in the cart gone after this merge ;)

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Yeah, unfortunately this hack is not bulletproof for every case.

  • @kashfulbangladesh
    @kashfulbangladesh 3 года назад

    thank you so much sir!

  • @legendsecomdeals3702
    @legendsecomdeals3702 3 года назад

    Thank you for this great Video. I would like to redirect to the home page what I have to change in this part: wp_safe_redirect( get_permalink( wc_get_page_id( 'shop' ) ) );
    changing shop with home did not work.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      See whether this helps you out wpsimplehacks.com/how-to-merge-learndash-and-woocommerce/#step-4-redirect-user-to-the-learndash-courses-tab-after-login
      You would need to remove role based conditions though

  • @JoyHints
    @JoyHints 3 года назад +1

    For some reason the redirect isn’t working for me. My slug for the shop page is ‘buy-crypto’ I have updated it in the code snippet but I get a blank page whenever I remove an item from the checkout page. Am I missing something? Thanks for these useful tips btw.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад +2

      Somehow it seems that it works only with "shop" slug and not others. Maybe it is because of the Woo updates, I really don’t know.
      Here is the alternative for you:
      1) Delete the snippet that should redirect the user to the shop page.
      2) Use this snippet here below. It will add "Return to shop" button to the empty checkout page.
      add_filter( 'woocommerce_checkout_redirect_empty_cart', '__return_false' );
      add_filter( 'woocommerce_checkout_update_order_review_expired', '__return_false' );

    • @sophiemulders
      @sophiemulders 3 года назад

      I have the same issue. But i have the dutch alternative to “shop” slug. He does not like that either. The return to shop button is perfect solution.

    • @iahawk15
      @iahawk15 3 года назад

      ​@@wpsimplehacks This works very well. Thank you!

  • @SuperMadmax4
    @SuperMadmax4 3 года назад

    Please Create a Video using Snippets on woocommerce Product Image Flip on Hover or Zoom on HOver .

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      Flip cannot be solved with the simple snippet. Hover effect is shown in this video here (see at 27.41 mark) ruclips.net/video/Q14xDtH-AcE/видео.html

  • @Daniel-up5xn
    @Daniel-up5xn 3 года назад

    Would love if you do a video on removing Woo scripts from non product/category pages.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад +1

      See whether this post helps you out wpbeaches.com/override-woocommerce-css-styles-conditionally/

    • @Daniel-up5xn
      @Daniel-up5xn 3 года назад

      WP Simple Hacks - Wordpress tips and tricks nice I’ll give that a try. Thanks!

  • @aaa1538
    @aaa1538 3 года назад

    Good hack 👍. i want to see a hack to disable "view your cart" message please.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      Try with this one here:
      a.added_to_cart.wc-forward {display:none}
      Goes to Customizer >> Additional CSS

    • @aaa1538
      @aaa1538 3 года назад

      @@wpsimplehacks
      Thank you🙏. The CSS works but the add to cart button disables when i click on it.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      On my theme it works well which means you would need to inspect the Css of your theme's View cart button and change the CSS accordingly.

    • @aaa1538
      @aaa1538 3 года назад

      @@wpsimplehacks
      I use the Kadence theme and product grid. But the add to cart button disables when i click add to cart. It was also before the CSS code.

    • @wpsimplehacks
      @wpsimplehacks  3 года назад

      @AA A
      In Kadence you have two options:
      1. Go to Customizer >> Woocommerce >> Add to cart behaviour and deactivate "Ajax add to cart". This disable the View cart which appears after adding product to the cart. Although, “Hoodie” has been added to your cart. >> View cart will appear on top of the product and this is default Woocommerce behaviour.
      2. If you don’t want to disable Ajax add to cart then use this CSS snippet here below. This disable View cart button on the single product page only BUT since no notification about products added ise shown the now your customer has to somehow figur eout whether the product was added to the cart. If you have a Kadence Pro then you should activate Popup cart for option for header cart element. At least it opens up after adding the product into cart.
      Although I don’t think that hidind View cart button is a good move.
      /* HIDES VIEW CART BUTTON ON SINGLE PRODUCT PAGE */
      .woocommerce div.product div.summary a.added_to_cart.wc-forward {
      display:none
      }

  • @Peebals
    @Peebals 3 года назад

    super totally amazing keep it sir

  • @lihuaizhi
    @lihuaizhi 3 года назад

    🌳🌳🌾🌾🍁🍁🌔🌔🌍🌍Good way, good tutorial