Shopping Cart Quantity not updating it remain same

This topic has 5 replies, 3 voices, and was last updated 1 months ago ago by Luca Rossi

  • Avatar: slw250@hotmail.com
    slw250@hotmail.com
    Participant
    March 17, 2025 at 12:40

    We are experiencing an issue with our shopping cart. It is not updating the quantity correctly. For example, if a customer initially sets the quantity to ‘2’ from the shop page, a single product page, or any other entry point, and then attempts to update the quantity in the shopping cart, the value does not change. It remains the same as the initially selected quantity. IT ONLY WORKS ON DESKTOP BUT NOT ON MOBIL DEVICES

    Please fix this problem, the login information is in PCA
    Thanks you

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 17, 2025 at 12:58

    Hello,

    Thank you for reaching out to us.

    Please try enabling “Always load ‘wc-cart-fragments'” in Theme Options > Speed Optimization. After that, clear the cache and check the result.

    If the issue persists, kindly record a video to help us better understand the situation you are describing. This will help us better understand and replicate the problem on our end.
    Upload the video on a filesharing service, for example – https://wetransfer.com/ , and provide us with the URL.

    Warm Regards,
    The 8Theme Team

    Avatar: slw250@hotmail.com
    slw250@hotmail.com
    Participant
    March 17, 2025 at 13:44

    I tried after enabling “Always load ‘wc-cart-fragments but it still the same please check the attached video

    Files is visible for topic creator and
    support staff only.
    Avatar: slw250@hotmail.com
    slw250@hotmail.com
    Participant
    March 17, 2025 at 13:46
    Avatar: Justin
    Luca Rossi
    Support staff
    March 18, 2025 at 07:50

    Hi @slw250@hotmail.com,

    Can you please try adding this custom code under functions.php file locates in your child theme?

    
    add_action('wp_footer', 'n2t_wp_footer', 99);
    function n2t_wp_footer() {
    	?>
    	<script>
    		!function($) {
    			"use strict";
    			$(document).on('change', '.woocommerce-cart-form .qty', function(){
    				var value = $(this).val(),
    					name_d = $(this).attr('name'),
    					name = name_d.replace('qty_duplicated', 'qty');
    				$('select[name="'+name+'"]').val(value);
    			});
    		}(jQuery);
    	</script>
    	<?php
    }
    

    Hope it helps!

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

You must be logged in to reply to this topic.Log in/Sign up

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.