Remove Woocommerce message from Woocommerce Cart page - wordpress

I'm using the Woocommerce Preorders plugin and on my cart page, it displays a message, "Your previous cart was emptied because pre-orders must be purchased separately." if a user adds the same item to their cart twice. (My site is getshru.com, and the cart page is getshru.com/preorder).
I've used the php answer (first answer) from this question to remove another unwanted woocommerce-message on the Cart page. However, I don't fully understand how it works so I can't quite get a version of this to work to remove this other unwanted message.
Wordpress - Woocommerece remove "Added to Cart" message
Any recommendations? Thanks for any/all advice, I'm new to this.

Related

Remove Woocommerce add to cart message but keep updating cart amount

I'm using quick view pro by Barn2 for woocommerce and using this code to hide the add to cart message Hide Added to Cart message in Woocommerce which works fine, but in my case the cart amount is not updated until page refresh. So my question is how to modify the code so I be able to hide the message but allow the cart to be updated in the background without need of refresh? Thanks!

Woocommerce add to cart and redirect to Custom URL - Different for each link

So I am using a link on this page: https://www.revealio.com/make-brand-come-alive/ (yellow button).
The link is supposed to add the product to the cart and then send them to the next step in the sales funnel.
For the link URL I used:
https://www.revealio.com/help-creating-video?add-to-cart=4951
and
https://www.revealio.com/help-creating-video?add-to-cart=4951&quantity=1
Full link code is:
YES! MAKE MY BRAND COME ALIVE!
I found this code here: https://businessbloomer.com/woocommerce-custom-add-cart-urls-ultimate-guide/
If you need to see the cart (we are still redesigning these pages) you can go here in a seperate browser tab to see how it updates: https://www.revealio.com/cart/
The problem is that it is adding 2 products to my cart instead of 1.
How can I get this to just add one of my products to the cart and move on?
Here is something new I found out. If I just go directly to the link it only adds one product. If I click on the link in the page (https://www.revealio.com/make-brand-come-alive/) it adds 2 products. It does the same for a button or a text link.
Use the shortcodes provided by WooCommerce to render the add to cart links. https://docs.woocommerce.com/document/woocommerce-shortcodes/
[add_to_cart_url id="99"]
I found it!
It needs a / before the ?
https://www.revealio.com/help-creating-video/?add-to-cart=4951
I was using: https://www.revealio.com/help-creating-video?add-to-cart=4951 which gave two item in the cart.

WordPress CMS Woocommerce plugin cart page

I am new to WordPress and since I created one e-commerce store using woocommerce plugin.
There is some page created by woocommerce plugin called cart, account, checkout, etc.
I already created store and its working fine when I place order for any product with some quantity suppose it is 5 each of $5 and I am going to cart page it is showing total ammount of $25.
but in cart page when I change the quantity of product the total amount is not changing.
So, please somebody help me how I can solve this, I want that instant change in total amount on quantity changing in cart page.
It should be a bug,don't try to write custome code on the plugin here are steps that you can follow :
try to deactivate all plugins.
If not fixed , try to change your current theme.
The last solution is to try new installation of WP And WooCommerce.

Woocommerce redirect loop error when deleting product

I have set a custom template for the woocommerce cart page. Every thing works fine like updating product etc.
But when i remove any product from the cart the blank page appears. Hold for sometimes and then an error occurs that says 'This page has a redirect loop'.
When i manually go to the cart page again there are so many notifications of 'Cart Updated' Seems that it runs multiple time. However that product deleted successfully without effecting any other thing in the cart page.
Below is the link for the delete product.
×
Thanks
Try: global $woocommerce; $removeUrl = $woocommerce->cart->get_remove_url(); and echo the link in your anchor tag.

Drupal Commerce Ajax cart with added fields

Sorry for the really bad title but wasn't sure how to describe my problem in 10 words.
I have drupal commerce and have made a view that displays the cart contents on top of the checkout page.
Quantity is a text field so it is editable and I have an update button. Unfortunately when I press the update button, naturally the whole checkout page tries to submit. Is there a way to intercept the update button and just refresh the cart with ajax?
Moreover, if I can do that, I want a number of text fields (as many as the quantity number entered) to appear underneath the cart so the user can enter different values on each of them (each referring to the products about to be bought).
Drupal Commerce Cart does this - sort of.. http://drupal.org/project/dc_cart_ajax
It works fine on the cart page, though I too am trying to combine these pages to cut down on the 'checkout steps'. Though it is the same view as the /cart page and I get an ajax refresh indicator it doesn't actually update the cart on the checkout page.
There is a issue related to that, you can subscribe: http://drupal.org/node/1443470
You can disable the Shopping cart contents using the checkout settings. Modify the Shopping Cart View to add a block display and add modify the contextual filter by providing default value using PHP:
if (arg(0) == 'checkout') return arg(1);
else return null;
Add the new Shopping cart block dispplay only on the checkout page and here you go.

Resources