How to Merge Woocommerce Cart and Checkout Page?

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2024
  • In this video I’m going to show you how to merge Woocommerce cart and checkout page in a way that they work on a one page. It’ll take only couple of minutes to accomplis that.
    All the snippets shown in the video are here: wpsimplehacks.com/merge-wooco...
    Blocksy and Kadence are currently two of the best WordPress themes. So, if you’re interested, then you can grab:
    🅱️ Blocksy theme wpsimplehacks.com/blocksy (SAVE 10% Coupon WPSH10)
    🔵 Kadence theme here: wpsimplehacks.com/kadence (SAVE 10% Coupon SIMPLEHACKS)
    ✅ If you want to be the first to be notified about the new tutorials then please subscribe to this channel. / @wpsimplehacks
    ✅ BEST WORDPRESS THEMES:
    Blocksy theme: wpsimplehacks.com/blocksy (SAVE 10% Coupon WPSH10)
    Kadence Theme: wpsimplehacks.com/kadence (SAVE 10% Coupon SIMPLEHACKS)
    Astra Theme: wpsimplehacks.com/astra
    GeneratePress: wpsimplehacks.com/generatepress
    OceanWP: wpsimplehacks.com/oceanwp (SAVE 10% Coupon WPSH10)
    ✅ MY FAVOURITE WEBHOSTING PROVIDERS:
    Verpex Hosting wpsimplehacks.com/verpex
    A2 hosting wpsimplehacks.com/a2-hosting
    Cloudways wpsimplehacks.com/cloudways
    ✅ AWESOME WORDPRESS PLUGINS:
    WPCodeBox wpsimplehacks.com/wpcodebox (SAVE 20% Coupon WPSH20)
    WooLentor Elementor/Gutenberg add-on wpsimplehacks.com/woolentor (SAVE 20% Coupon WPSH20)
    Best Wordpress Backup, Migration and Staging plugin - WpVivid Pro wpsimplehacks.com/wpvidid (SAVE 20% Coupon WPSH20)
    Best Gutenberg Blocks addon - Kadence Blocks wpsimplehacks.com/kadenceblocks (SAVE 10% Coupon SIMPLEHACKS)
    Best forms plugin - Fluent Forms: wpsimplehacks.com/fluentforms (SAVE 20% Coupon: WPSH20)
    Best for email marketing - Fluent CRM: wpsimplehacks.com/fluentcrm (SAVE 20% Coupon: WPSH20)
    Best events calendar and ticket selling plugin - WP Eventin wpsimplehacks.com/wp-eventin (SAVE 20% Coupon: WPSH20)
    Best for creating tables - Ninja Tables wpsimplehacks.com/ninjatables (SAVE 20% Coupon: WPSH20)
    Best Wordpress LMS - Tutor LMS wpsimplehacks.com/tutorlms (SAVE 20% Coupon thmwelcome20)
    ✅ AWESOME WOOOCOMMERCE EXTENSIONS:
    Best Woocommerce Swiss Knife tool - Kadence WooExtras wpsimplehacks.com/wooextras (SAVE 10% Coupon SIMPLEHACKS)
    Advanced Dynamic Pricing Pro wpsimplehacks.com/dynamic-pri... (SAVE 20% Coupon: WPSH20)
    Phone orders For Woocommerce Pro wpsimplehacks.com/phone-order... (SAVE 20% coupon: WPSH20)
    Advanced Orders Export Pro wpsimplehacks.com/export-orde... (SAVE 20% coupon: WPSH20)
    Best Woocommerce sidecart plugin - Woocommerce Cart in One wpsimplehacks.com/cartinone
    TIMESTAMPS
    00:00 How to Merge Woocommerce Cart and Checkout Page?
    00:35 Install Code Snippets plugin
    01:32 Merge Woocommerce cart and checkout page
    02:29 Redirect Woocommerce cart page to checkout page
    03:18 Redirect empty cart and checkut page to shop page
    04:30 Customize Woocommerce checkout page
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 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

  • @varunkumars7441
    @varunkumars7441 2 ปีที่แล้ว

    Great Piece of Content very well explained! Thank you

  • @SeanClarke
    @SeanClarke 3 ปีที่แล้ว

    Another excellent video. Thank you.

  • @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

  • @fricartm
    @fricartm ปีที่แล้ว

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

  • @kashfulbangladesh
    @kashfulbangladesh 3 ปีที่แล้ว

    thank you so much sir!

  • @silentphil77
    @silentphil77 3 ปีที่แล้ว

    Total gold once again!

  • @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.

  • @tommasodapice345
    @tommasodapice345 2 ปีที่แล้ว

    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

  • @Peebals
    @Peebals 2 ปีที่แล้ว

    super totally amazing keep it sir

  • @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  ปีที่แล้ว

      ☺️

  • @sunshine1_1_1
    @sunshine1_1_1 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

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

  • @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.

  • @TheSparkratos
    @TheSparkratos 2 ปีที่แล้ว

    Nice 👍🏽 Also show the responsive view.

  • @TomRobakCom
    @TomRobakCom ปีที่แล้ว

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

    • @wpsimplehacks
      @wpsimplehacks  ปีที่แล้ว

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

  •  2 ปีที่แล้ว

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

    • @wpsimplehacks
      @wpsimplehacks  2 ปีที่แล้ว

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

  • @legendsecomdeals3702
    @legendsecomdeals3702 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      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

  • @lihuaizhi
    @lihuaizhi 3 ปีที่แล้ว

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

  • @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)

  • @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!

  • @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) th-cam.com/video/Q14xDtH-AcE/w-d-xo.html

  • @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
      }

  • @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 2 ปีที่แล้ว

      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 2 ปีที่แล้ว

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