Issue with Cart page on mobile view – URGENT

This topic has 12 replies, 3 voices, and was last updated 1 weeks, 1 days ago ago by Luca Rossi

  • Avatar: Rahul
    Rahul
    Participant
    November 12, 2024 at 14:33

    Hi –
    On mobile cart page, for quantity dropdowns, when customer updates quantity of product, the quantity is not updating.

    On desktop view – this is working perfectly.

    Please assist on this issue.

    11 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 12, 2024 at 15:17

    Hello,

    Thank you for reaching out to us.

    Could you provide URL, temporary wp-admin and FTP access? We will check what can be done to help you.

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: Rahul
    Rahul
    Participant
    November 12, 2024 at 15:30

    attached login details in private content area

    Content is visible for topic creator and
    support staff only.
    Avatar: Rahul
    Rahul
    Participant
    November 12, 2024 at 16:55

    Have you managed to look into this please? URGENT as site is a live site for customers.

    Avatar: Rahul
    Rahul
    Participant
    November 12, 2024 at 17:25

    UPDATED LOGIN DETAILS

    Content is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 12, 2024 at 17:33

    Hi @Rahul,

    We’ve added this code snippet to your website and everything is working fine now:

    
    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
    }
    

    Can you please check again?

    Thank you!

    Avatar: Rahul
    Rahul
    Participant
    November 13, 2024 at 13:57

    Thanks – this has resolved the issue.

    However, when quantity is updated, the total shown on cart page changes.

    The total shown under basket icon in header does not update. Can you give code which will allow for this to also update?

    Avatar: Justin
    Luca Rossi
    Support staff
    November 13, 2024 at 16:27

    Hi @Rahul,

    Can you please go to XStore > Theme Options > Speed Optimization > activate the Always load “wc-cart-fragments” setting: https://prnt.sc/kE1p8OlMJl2P?

    Let us know how it goes!

    Avatar: Rahul
    Rahul
    Participant
    November 14, 2024 at 02:01

    Hi – This setting is already active, but does not update the total underneath cart icon. Please advise any other solution. Thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    November 14, 2024 at 09:38

    Hi @Rahul,

    Could you please change the previous code to this?

    
    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);
    				$( document.body ).trigger( 'wc_fragment_refresh' );
    			});
    		}(jQuery);
    	</script>
    	<?php
    }
    

    Hope it helps!

    Avatar: Rahul
    Rahul
    Participant
    November 14, 2024 at 14:46

    Hi – We have tried this, but is still not updating the total underneath cart icon in header, when quantity of product is updated from cart page.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 14, 2024 at 18:16

    Hi @Rahul,

    Please resend us with your WordPress admin account. The provided account isn’t working anymore.

    Thank you!

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

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

8theme customization service

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.