Theme is not responding to cart - by HighPassion

This topic has 49 replies, 7 voices, and was last updated 10 years, 1 months ago ago by Stan Russell

  • Avatar: HighPassion
    HighPassion
    Participant
    September 12, 2014 at 19:30

    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?

    48 Answers
    Avatar: HighPassion
    HighPassion
    Participant
    September 12, 2014 at 19:36

    check out on http://highpassion.ch/

    Avatar: Eva
    Eva Kemp
    Support staff
    September 12, 2014 at 20:01

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 13, 2014 at 22:16

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 13, 2014 at 22:19

    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…

    Avatar: HighPassion
    HighPassion
    Participant
    September 13, 2014 at 22:56

    Solved by upgrading theme to 2.3

    Avatar: HighPassion
    HighPassion
    Participant
    September 14, 2014 at 08:40

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 14, 2014 at 15:27

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 17, 2014 at 18:04

    Provided details for login, site will be back offline soon.

    Please, contact administrator
    for this information.
    Avatar: HighPassion
    HighPassion
    Participant
    September 17, 2014 at 18:06

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 17, 2014 at 19:12

    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.

    Avatar: csmwebdesign
    csmwebdesign
    Participant
    September 17, 2014 at 19:36

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 18, 2014 at 12:08

    Hello @csmwebdesign,

    Please provide us with wp-admin panel credentials and FTP access in Private Content.
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: HighPassion
    HighPassion
    Participant
    September 24, 2014 at 16:56

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 24, 2014 at 20:40

    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.

    Avatar: csmwebdesign
    csmwebdesign
    Participant
    September 24, 2014 at 20:46

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 24, 2014 at 20:47

    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…

    Avatar: HighPassion
    HighPassion
    Participant
    September 25, 2014 at 17:00

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2014 at 10:35

    Hello,

    Please provide us with wp-admin panel credentials and we’ll fix the issue.
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: HighPassion
    HighPassion
    Participant
    September 26, 2014 at 10:41

    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.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2014 at 11:32

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 26, 2014 at 11:38

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2014 at 13:38

    Hello,

    We’ve fixed the issue.

    Please check.

    Regards,
    Eva Kemp.

    Avatar: HighPassion
    HighPassion
    Participant
    September 26, 2014 at 14:33

    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!

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2014 at 18:24

    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.

    Avatar: HighPassion
    HighPassion
    Participant
    September 26, 2014 at 18:37

    Good job Eva! Thanks a lot, now we move forward finally after almost 1 week or so. 🙂 Problem solved!

    Avatar: csmwebdesign
    csmwebdesign
    Participant
    September 26, 2014 at 18:41

    Can we please have a fix that we can apply ourselves without having to disclose login details?

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2014 at 19:23

    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.

    Avatar: csmwebdesign
    csmwebdesign
    Participant
    September 26, 2014 at 22:51

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 27, 2014 at 00:48

    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.

  • 1 2
    Viewing 30 results - 1 through 30 (of 49 total)

The issue related to '‘Theme is not responding to cart’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.