Issues on quantity and custom value after upgrading to V9.4

This topic has 20 replies, 4 voices, and was last updated 2 weeks, 4 days ago ago by Andrew Mitchell

  • Avatar: azicard
    azicard
    Participant
    November 4, 2024 at 22:52

    Hello,

    I just upgraded to the latest xstore version (9.4) and noticed a couple of issues:
    1) Some of the products are sold in packs of 100 and the quantity is set correctly on the product page. However, the quantity is showing 1 on the product category page.
    2) some of the products require the user to enter specific values, but none of these values are copied over to the cart page. As a result, these details are lost when the order confirmation email is sent.

    Please help.

    Thank you!

    Please, contact administrator
    for this information.
    19 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 5, 2024 at 14:11

    Dear @azicard,

    We hope this message finds you well.

    Could you kindly confirm whether the issues you are currently experiencing were not present before and only appeared after the recent update to version 9.4 of our theme? Additionally, we would like to request FTP access to your website so that we can investigate the possibility of adding compatibility between your plugin and the custom quantity feature for products.

    Please note that while our theme may not be compatible with all plugins available on the market, we are always willing to explore potential solutions to enhance compatibility.

    Thank you for your cooperation, and we look forward to your response.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: azicard
    azicard
    Participant
    November 5, 2024 at 17:52

    Hello Jack,

    I noticed the first issue after upgrading to V9.4 but the second issue started appearing once I upgraded to the previous version.

    Thank you!

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 6, 2024 at 10:24

    Hello @azicard
    Please, check your access provided because it is missing the host to connect but only other details.
    Kind regards, Jack Richardson

    Avatar: azicard
    azicard
    Participant
    November 6, 2024 at 13:22

    Hi Jack,

    Thanks.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 6, 2024 at 15:14

    Hello @azicard
    Please, check private content.
    Kind regards, Jack Richardson

    Please contact administrator
    for this information.
    Avatar: azicard
    azicard
    Participant
    November 7, 2024 at 20:34

    Hello,

    Please try again.

    Thank you.

    Regards,
    Helen

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 9, 2024 at 07:26

    Dear @azicard,

    We hope this message finds you well.

    Could you kindly provide further clarification regarding the first issue? We are still unclear on the specifics and would appreciate your detailed explanation.

    As for the second issue, we have identified that the Ajax “Add to Cart” functionality is not working properly with certain custom product fields. As a temporary solution, we have disabled the Ajax “Add to Cart” feature: [screenshot link](https://prnt.sc/SbPDKynHSpHm). Everything should now be functioning as expected.

    Could you please review and confirm that everything is working correctly on your end?

    Thank you for your attention to this matter.

    Best regards,
    8Theme Team

    Avatar: azicard
    azicard
    Participant
    November 9, 2024 at 14:16

    Good day,

    Thank you for resolving the second issue. Just to confirm that by disabling the Ajax “Add to Cart” feature, it won’t affect the rest of the functionalities?

    As for the first issue, the problem is that the default add to cart quantity on the category page doesn’t match with the actual product page if the default quantity isn’t 1.

    Some of the products are sold in a set (set of 10 or set of 100 for example), so the buyers are required to buy them at an increment of the set amount (10 or 100). However, all the default add to cart quantity on the category page is 1. Please see the first link.

    If you click on the first product on the category page from the link (SKU-1326LSSMV which is the second link), you will see the default quantity is set to 100 and the buyer can only increment in 100s.

    I hope this makes sense. Please let me know if you have any additional questions.

    Thank you!

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 11, 2024 at 13:42

    Dear @azicard,

    We hope this message finds you well.

    We would like to inform you that we have made some adjustments to your custom code, and the custom value for the quantity has now been corrected.

    Could you kindly review the changes at your convenience to ensure everything is functioning as expected?

    Thank you for your attention to this matter.

    Best regards,
    8Theme Team

    Avatar: azicard
    azicard
    Participant
    November 11, 2024 at 14:20

    Good day,

    I just checked and my cart page is completely screwed up.

    Can you please roll back the changes ASAP!

    Thank you.

    Avatar: azicard
    azicard
    Participant
    November 11, 2024 at 15:19

    Hello,

    I want to follow up and see if you are able to roll up the changes today as the cart page is completely broken.

    Regards.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 11, 2024 at 15:29

    Hi @azicard,

    Can you please check again?

    Thank you!

    Avatar: azicard
    azicard
    Participant
    November 11, 2024 at 15:32

    Hello,

    Thank you for responding.

    The cart page is now back to normal but there are still some issues with the incorrect quantity being added to the cart from the category page.

    Can you please let me know how I can disable the ability to add to cart from category page?

    Thank you.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 12, 2024 at 05:37

    Hi @azicard,

    We’ve changed your custom code to this:

    
    add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
    function jk_woocommerce_quantity_input_args( $args, $product ) {
    	if ( !is_cart() ) {
    		global $post;
    $product = wc_get_product( $post->ID );
    $custom_number = $product->get_meta( 'custom_order_number_field' );
    		$args['input_value'] 	= $custom_number ? $custom_number : 1;	// Starting value (we only want to affect product pages, not cart)
    	}
    	$args['max_value'] 	= 80000; 	// Maximum value
    	$args['min_value'] 	= $custom_number;   	// Minimum value
    	$args['step'] 		= $custom_number;    // Quantity steps
    	return $args;
    }
    

    And now the add to cart on product category pages is working correctly.

    Can you please check again?

    Best regards,
    8Theme Team

    Avatar: azicard
    azicard
    Participant
    November 16, 2024 at 04:18

    Hello,

    It looks like my reply wasn’t saved. Thank you for the custom code.

    The add to cart on category page is working. However, it appears that I can no longer change the quantity on the cart page using the +/- buttons. I believe these buttons are now greyed out.

    Can you please take a look.

    Thank you!

    Regards,
    Helen

    Avatar: Justin
    Luca Rossi
    Support staff
    November 16, 2024 at 05:32

    Hi Helen,

    Your custom codes are not working correctly on the cart page.

    
    add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
    function jk_woocommerce_quantity_input_args( $args, $product ) {
    	if ( !is_cart() ) {
    		global $post;
    $product = wc_get_product( $post->ID );
    $custom_number = $product->get_meta( 'custom_order_number_field' );
    		$args['input_value'] 	= $custom_number ? $custom_number : 1;	// Starting value (we only want to affect product pages, not cart)
    		$args['max_value'] 	= 80000; 	// Maximum value
    		$args['min_value'] 	= $custom_number;   	// Minimum value
    		$args['step'] 		= $custom_number;    // Quantity steps
    	}
    	return $args;
    }
    

    We’ve updated the custom code a bit to make the the plus/minus button work again on the cart page.

    Further customization codes will fall out of scope our support standard services we provide. If you would like to proceed with personalized customization, we kindly invite you to submit a request through our customization panel, accessible via the following link: https://www.8theme.com/account/#etheme_customization_panel. This will allow you to collaborate directly with our technical team.

    Please note that customization services may incur additional charges. The exact cost will be determined after a thorough review of your specific requirements.

    We appreciate your understanding and look forward to assisting you further.

    Best regards,
    The 8Theme Team

    Avatar: azicard
    azicard
    Participant
    November 16, 2024 at 13:21

    Good day,

    Thank you for the custom code.

    Can you please clarify if the custom code you modified is part of your theme? I don’t recall making any customization to the cart page and the +/- buttons were working prior to the upgrade.

    Thank you.

    Regards.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 17, 2024 at 15:41

    Dear @azicard,

    We would like to inform you that the custom code provided will affect all pages on your website, including the cart, product archive, single product pages, and more.

    To test this, you can temporarily comment out the following code from the functions.php file located in your XStore Child Theme:

    
    add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
    function jk_woocommerce_quantity_input_args( $args, $product ) {
    	if ( !is_cart() ) {
    		global $post;
    		$product = wc_get_product( $post->ID );
    		$custom_number = $product->get_meta( 'custom_order_number_field' );
    		$args['input_value'] 	= $custom_number ? $custom_number : 1;	// Starting value (we only want to affect product pages, not cart)
    		$args['max_value'] 	= 80000; 	// Maximum value
    		$args['min_value'] 	= $custom_number;   	// Minimum value
    		$args['step'] 		= $custom_number;    // Quantity steps
    	}
    	return $args;
    }
    

    Please feel free to reach out if you have any further questions or need additional assistance.

    Best regards,
    8Theme Team.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 22, 2024 at 19:12

    Dear azicard,

    In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?

    Click here to share your thoughts: https://themeforest.net/downloads

    Being part of our community means a lot, and your feedback contributes immensely.

    Best Regards,
    The 8Theme Team

  • Viewing 20 results - 1 through 20 (of 20 total)

The issue related to '‘Issues on quantity and custom value after upgrading to V9.4’' has been successfully resolved, and the topic is now closed for further responses

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