Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Variable product , Not is removed from cart
New Landing › How can we help? › Atelier › Variable product , Not is removed from cart
- This topic has 16 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Atelier
-
May 30, 2015 at 11:57 am #179893
Hi!
Not deleted variable product from the Cart.And when you choose a variable product,the function of the ajax cart doesn’t work, page is completely reloaded.
I tested with the settings from the demo content was the same.
Look here
May 30, 2015 at 11:58 am #179894This reply has been marked as private.May 31, 2015 at 9:47 pm #180017Hi,
It seems a plugin conflict. Can you try to deactivate all plugins except Woocommerce?
Clear the browser cache and repeat the test.If it works you should activate the plugins one by one to figure out what plugin is causing it.
-Rui
June 1, 2015 at 9:45 am #180172Hi!
I did as you suggest but doesn’t work.
I try not to ask for your help on the little things, but this is a serious bug , and plug-ins are not to blame 100%.
And I found another problem,my Global Header Banner breaks the entire site and doesn’t work.June 1, 2015 at 9:49 am #180174June 1, 2015 at 10:18 am #180182That would not waste your and my time .
You make a Variable product on your demo web site.
And you will understand,what I mean.
Not deleted variable product from the Cart.
And when you choose a variable product,the function of the ajax cart doesn’t work, page is completely reloaded.
I tested with the settings from the demo content was the same.June 1, 2015 at 11:41 am #180233I manage to replicate it in our demo site. Will have to check this with the development team.
Thanks for the heads up.
-Rui
June 1, 2015 at 12:06 pm #180239This reply has been marked as private.June 1, 2015 at 4:36 pm #180340Hi,
Didn’t understand the observation about the team. Can I enable the Global banner in your site to see what is going on?
We already fixed the remove of variable products.
Can you add the code below to your functions.php of the child theme/* WOO REMOVE PRODUCT FROM CART ================================================== */ if ( ! function_exists('sf_cart_product_remove')){ function sf_cart_product_remove() { global $wpdb, $woocommerce; $id = 0; if ( ! empty( $_REQUEST['product_id'] ) ) { $id = $_REQUEST['product_id']; } $cart = WC()->instance()->cart; $cart = $woocommerce->cart; $id = $_POST['product_id']; foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { if ( $cart_item['product_id'] == $id ){ $cart->set_quantity($cart_item_key,0); } } $totalamount = $woocommerce->cart->get_cart_total(); echo $totalamount; die(); } add_action( 'wp_ajax_sf_cart_product_remove', 'sf_cart_product_remove' ); add_action( 'wp_ajax_nopriv_sf_cart_product_remove', 'sf_cart_product_remove' ); }
-Rui
June 1, 2015 at 4:49 pm #180344Thank you , very quickly !!
Variable product ,now is removed normally.
That’s just not working,function of the ajax cart . Page is completely reloaded.
June 1, 2015 at 4:50 pm #180345This reply has been marked as private.June 1, 2015 at 4:58 pm #180348Hi,
can you check again your global banner? It was missing the closing tag of the icon in the 3 text widgets.
That’s how it works the cart page, it’s reloaded.
-Rui
June 1, 2015 at 5:08 pm #180352Cool , so quickly!!
The background color should be changed also through the widget?—————
Sorry I’m a little do not understand the translation of your words.
That’s how it works the cart page, it’s reloaded.
-Rui
You mean nothing to do with this problem?
Then why single product, it works and does not reloaded ?June 1, 2015 at 5:32 pm #180359I found where to change the background of the Global Header Banner.
Template”Atelier” super ,everything made logical and intuitive!!!
You tried very hard guys, it’s cool.I can safely say that your work is good , more flexible than Template “Lobo”
June 2, 2015 at 8:25 pm #180886Thanks. Appreciated your kind words.
-Rui -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.