This topic has 12 replies, 3 voices, and was last updated 1 weeks, 1 days ago ago by Luca Rossi
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.
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
attached login details in private content area
Have you managed to look into this please? URGENT as site is a live site for customers.
UPDATED LOGIN DETAILS
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!
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?
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!
Hi – This setting is already active, but does not update the total underneath cart icon. Please advise any other solution. Thanks
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!
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.
Hi @Rahul,
Please resend us with your WordPress admin account. The provided account isn’t working anymore.
Thank you!
You must be logged in to reply to this topic.Log in/Sign up