Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Quantity foeld working on the product page but is frozen at “1” on the cart page

$
0
0

Replies: 0

Hello, I have the quantity field working fine on the product page but no matter what quantity I set before adding to cart, the quantity on the cart page is frozen at “1” and can’t be changed.

I suspect the problem is coming from the theme. The Theme is the “Drugstore WooCommerce Theme” from TemplateMonster.

After installing Woocommerce and creating the products, I discovered that the coupon code button and the remove from cart button caused the page to hang. This apparently is a known problem for the theme because the support tech sent me this documentation page to fix the issue.

The fix was to add this code to my custom finctions page:

add_action( 'wp_enqueue_scripts', 'tm_enqueue_jquery', 30 );
function tm_enqueue_jquery()
{
    wp_deregister_script('jquery');
    wp_register_script( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.10.2' );
    wp_enqueue_script( 'jquery' );
}

This code fixed the coupon button and remove from cart link but then disabled the quantity field on the cart page. I have let them know this but want to have all the facts before I discuss this issue with the theme tech support.


Viewing all articles
Browse latest Browse all 59525

Trending Articles