This topic has 49 replies, 7 voices, and was last updated 10 years ago ago by Stan Russell
When upgraded to version 4 theme stopped to add products to cart if user is not logged in, any idea what could be the issue?
check out on http://highpassion.ch/
Hello,
I’ve added a product to the cart as a guest and it was added successfully.
Have you tried to check it with some other browser?
Regards,
Eva Kemp.
well there is a issue for sure, here is what to do to redo the issue, open firefox in my case, navigate to highpassion.ch and try to add into cart any 2 products, make a screenshoot and show me the two products, I am able to add one, but after first one none of the following products I select to buy are not updated into the cart. To mention i use theme 2.2 not 2.3 because of the complicated upgrade and issues that could be durring upgrade since its a production site.
Then again when I go to the cart and I have a product in it, it tells me that my cart is empty, basicly the site is useless…
Solved by upgrading theme to 2.3
This is very weird, problem is not solved, please ignore what I said that is solved, it goes like this, go to http://highpassion.com default language should be in german of the site. You have up WARRENKORB = CART now when scroll down and select a product, the product will be added one to the card, and the rest not, this is in case youre not logged in, while this happends we have also the issue that when we click on CHECKOUT and in the CART the language of the cart changes into english. Any help would be welcomed.
Hello,
Do you mean this website http://highpassion.com and not http://highpassion.ch/ ?
We’re unable to access http://highpassion.com as it’s suspended and http://highpassion.ch/ is under maintenance. Please provide us with access to the site.
Thank you.
Regards,
Eva Kemp.
Provided details for login, site will be back offline soon.
To mention that this works fine when I am logged in, but it does not when not logged in, that is why I let the site without any mods, so you can see how it behaves for a guest user, one product is added into cart, but not more than 1, and when go to cart is empty. This is what we are dealing with. All this works fine when logged in as I said. You can use credentials provided for login in case is required.
Hello,
We’re very sorry.
There is a bug with new Woocommerce version and our theme. We’re working on the solution currently. The issue will be fixed as soon as possible.
Please take our apologies for inconveniences and all troubles you had to experience.
Regards,
Eva Kemp.
This is affecting one of my websites too, http://www.metalassured.com. Can you provide an eta please on when this will be resolved, as it is costing my client money on lost sales.
Hello @csmwebdesign,
Please provide us with wp-admin panel credentials and FTP access in Private Content.
Thank you.
Regards,
Eva Kemp.
So whats the status of the BUG? I would like to know if this issue is fixed or not, since we still cannot add more than one product in cart as a Guest.
Is there any news about this issue? I was downgrading WPML and issue persist should I try to downgrade woocommerce? Or is this a BUG and I should also downgrade the theme? My customer is anoyed by this issue.
I am also disappointed with the lack of updates on this issue. It hardly instils confidence in using this theme for business critical applications. Can we have an update as soon as possible.
This leave us without an option and is not the best resolution, I am thinking how come there was not temporary patch already in place…
I hope this is not a joke, how come no one answers anymore this thread? My client is very unsatisfied with this, since no one can add to cart more than one product. And we even downgraded to woocommerce and wpml plugins.
Plus that we bought this theme exactly for this 2 functions. Please give us a patch or a fix untill a new release it is there.
Regards,
Cosmin – Uhl Hosting
Hello,
Please provide us with wp-admin panel credentials and we’ll fix the issue.
Thank you.
Regards,
Eva Kemp.
Please note that this is using now Woocommerce 2.2.3 since I downgraded, I would kindly ask to have it fixed for all versions and to be able to upgrade, If this is safe, you have permissions to run the woocommerce to latest version and to make it work like this. Details provided bellow.
Hello,
I’ve updated the code in woo.php file.
Please check your site now and clear browser cache before.
Thank you.
Regards,
Eva Kemp.
somehow is working, but I need to manually refresh the page, this was not so when was working, I believe something is missing. I can see products in Ajax cart when I F5 only!, This would had been updating on the way as I add products. Can you check please.
Hello,
We’ve fixed the issue.
Please check.
Regards,
Eva Kemp.
Yes the issue is fixed, can you please point out what was modified files / anything else. So that I can make a safe backup of them, while we also have others issues to rezolve. So not to overwrite the changes done. And indeed it works now! Thanks a lot!
Hello @HighPassion,
You’re welcome.
We’ve edited woo.php file. Find the section “New AJAX add to cart action”, we’ve replaced the code from the lines 1015 to 1058.
Regards,
Eva Kemp.
Good job Eva! Thanks a lot, now we move forward finally after almost 1 week or so. 🙂 Problem solved!
Can we please have a fix that we can apply ourselves without having to disclose login details?
Hello,
You need edit the file woo.php which is available in wp-admin panel > Appearance > Editor. Find the section “New AJAX add to cart action”, replace the code with the one below from the lines 1015 to 1058.
// **********************************************************************//
// ! New AJAX add to cart action
// **********************************************************************//
add_action('wp_ajax_et_woocommerce_add_to_cart', 'et_woocommerce_add_to_cart');
add_action('wp_ajax_nopriv_et_woocommerce_add_to_cart', 'et_woocommerce_add_to_cart');
if(!function_exists('et_woocommerce_add_to_cart')) {
function et_woocommerce_add_to_cart() {
ob_start();
$product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
$quantity = empty( $_POST['quantity'] ) ? 1 : apply_filters( 'woocommerce_stock_amount', $_POST['quantity'] );
$passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity );
if ( $passed_validation && WC()->cart->add_to_cart( $product_id, $quantity ) ) {
do_action( 'woocommerce_ajax_added_to_cart', $product_id );
if ( get_option( 'woocommerce_cart_redirect_after_add' ) == 'yes' ) {
woocommerce_add_to_cart_message( $product_id );
$woocommerce->set_messages();
}
// Return fragments
et_woocommerce_get_refreshed_fragments();
} else {
header( 'Content-Type: application/json; charset=utf-8' );
// If there was an error adding to the cart, redirect to the product page to show any errors
$data = array(
'error' => true,
'product_url' => apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id )
);
$woocommerce->set_messages();
echo json_encode( $data );
}
die();
}
}
Regards,
Eva Kemp.
Hi, this does not appear to update the cart until the cart is clicked onto, which then triggers a refresh. Let me know if I can message you login details so that this can be looked into properly. Thanks.
Hello @csmwebdesign,
Please provide us with the login details to wp-admin panel in Private Content. Don’t worry it’s visible only for administrators.
Regards,
Eva Kemp.
Tagged: cart, not responding, responsive, theme, themes, woocommerce, wordpress
The issue related to '‘Theme is not responding to cart’' has been successfully resolved, and the topic is now closed for further responses