• Resolved frkncelebi

    (@frkncelebi)


    i want to update quantity on my checkout page. And i added to code from cart.php to review-order.php

    code;

    <?php
    						if ( $_product->is_sold_individually() ) {
    							$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
    						} else {
    							$product_quantity = woocommerce_quantity_input( array(
    								'input_name'   => "cart[{$cart_item_key}][qty]",
    								'input_value'  => $cart_item['quantity'],
    								'max_value'    => $_product->get_max_purchase_quantity(),
    								'min_value'    => '0',
    								'product_name' => $_product->get_name(),
    							), $_product, false );
    						}
    
    						echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
    						?>

    and quantiy, minor,minus button shows i can change the number but it doenst update. Please help, its very important for me. Do I need to add any code to work on my checkout page?

Viewing 1 replies (of 1 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    unfortunately what You are asking for involves very big changes to how the default Checkout (non-editable quantity) works. Adding to this, making the plugin work with these custom changes is not a straightforward task. You can see this solution, it works but isn’t too robust:

    https://www.tychesoftwares.com/how-to-modify-the-cart-details-on-woocommerce-checkout-page/

    With multi-step checkout built-in for WooCommerce on the horizon and the risk of complex checkout changes soon becoming useless (personally I hate the default checkout and used a custom multi-step checkout myself on brother’s eCommerce), I prefer to spend my time on other things in my plugins which affect many users. Thanks for understanding.

    Best regards,

    Ryszard

Viewing 1 replies (of 1 total)
  • The topic ‘doesnt update on checkout page’ is closed to new replies.