Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>you can do it by editing <code>item.phtml (template/checkout/onepage/review/item.phtml)</code> and these lines after line no #47</p> <pre><code> &lt;td class="a-center"&gt;&lt;?php echo $_item-&gt;getQty() ?&gt;&lt;/td&gt; &lt;td class="a-center"&gt; &lt;input name="cart[&lt;?php echo $_item-&gt;getId() ?&gt;][qty]" value="&lt;?php echo $this-&gt;getQty() ?&gt;" size="4" name="update_cart_action" id="cup_&lt;?php echo $_item-&gt;getId() ?&gt;" class="input-text qty" maxlength="12" /&gt; &lt;/td&gt; &lt;td&gt; &lt;button type="submit" name="update_cart_action" value="update_qty" title="&lt;?php echo $this-&gt;__('shopping-cart-table'); ?&gt;" id="up_&lt;?php echo $_item-&gt;getId() ?&gt;" class="button btn-update"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Update'); ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;td&gt; and put Jquery code at the end &lt;script type="text/javascript"&gt; jQuery(document).ready(function(){ jQuery(".btn-update").click(function(){ var id = "#c"+this.id; var quan = jQuery(id).val(); var lastChar = id.substr(id.length - 1); jQuery.ajax({ url: "&lt;?php echo Mage::getBaseUrl(); ?&gt;checkout/cart/updatePosts/", data: "cart["+lastChar+"][qty]="+quan, async: false, success: function(html){ location.reload(); } }) }) }) &lt;/script&gt; </code></pre> <p>now override <code>cartcontroller.php</code> and place all the functions of the original <code>cartcontroller.php</code> and rename function <code>updatePostAction</code> by function <code>updatePostsAction</code>. and change the redirect path to <code>$this-&gt;_redirect('checkout/onepage');</code> </p> <p>that's all. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload