[Skip to main content](#vessel-content)

#   Auto Increase the Quantity and Auto next on Addres

##

- **[ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")**
- [![ingjjaa's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38158-ingjjaa "View ingjjaa's Profile") Topic Author
- [ Offline](/forum/user/38158-ingjjaa)

Less More

- Posts: 25
- Thank you received: 0
-
-

10 years 4 months ago [\#243380](#243380) by [ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")  *[Auto Increase the Quantity and Auto next on Addres](/forum/27-checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres#243380 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrone -- Error-message(debug-mod must be tuned on) -- : twi good questions  Hi i have twwo questions:  1) I have change the product quantity to dropdown box (selector), i would like that when i change the nnumer for example from 1 to 2 or 3 auto update the prices and everything without need to click in the undate button is thata posible???  2) the second question is abou guess buy in address i have two step check out flow in the firs i ask by address and in the second i request other things in the custo fields (order fields) but i have to click next twice the first to add the addres and the other to continue would be possible to simplifly that and save the addres and continue with the same click in the next button ???")* was created by *[ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")*

-- HikaShop version -- : 3.6
-- Joomla version -- : 3.5.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrone
-- Error-message(debug-mod must be tuned on) -- : twi good questions

Hi i have twwo questions:

1) I have change the product quantity to dropdown box (selector), i would like that when i change the nnumer for example from 1 to 2 or 3 auto update the prices and everything without need to click in the undate button is thata posible???

2) the second question is abou guess buy in address i have two step check out flow in the firs i ask by address and in the second i request other things in the custo fields (order fields) but i have to click next twice the first to add the addres and the other to continue would be possible to simplifly that and save the addres and continue with the same click in the next button ???

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTE0My1hdXRvLWluY3JlYXNlLXRoZS1xdWFudGl0eS1hbmQtYXV0by1uZXh0LW9uLWFkZHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243384](#243384) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto Increase the Quantity and Auto next on Addres](/forum/27-checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres#243384 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrone -- Error-message(debug-mod must be tuned on) -- : twi good questions  Hi i have twwo questions:  1) I have change the product quantity to dropdown box (selector), i would like that when i change the nnumer for example from 1 to 2 or 3 auto update the prices and everything without need to click in the undate button is thata posible???  2) the second question is abou guess buy in address i have two step check out flow in the firs i ask by address and in the second i request other things in the custo fields (order fields) but i have to click next twice the first to add the addres and the other to continue would be possible to simplifly that and save the addres and continue with the same click in the next button ???")*

Hi,

1. There is no option to do that.
But you could add an onchange on the select field to auto submit.
So supposing that you're talking about the cart view of the checkout, you could try changing the code: Code:

echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', '', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id);

to: Code:

echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', 'onchange="this.form.submit();"', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id);

in the file "cart" of the view "checkout" via the menu Display&gt;Views.

2. You would have to remove the "return false;" lines in the code: Code:

if($shipping!=$oldShippingAddress){ //if the cart doesn't need a shipping address, don't care about the shipping check result $cart = $this-&gt;initCart(); if($cart-&gt;has_shipping){ $this-&gt;cart_update=true; if(strpos($this-&gt;checkout_workflow,'shipping')!==false){ $this-&gt;before_shipping(true); } if(strpos($this-&gt;checkout_workflow,'payment')!==false){ $this-&gt;before_payment(true); } return false; } } if($billing!=$oldBillingAddress){ return false; }

of the file components/com_hikashop/controllers/address.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTE0My1hdXRvLWluY3JlYXNlLXRoZS1xdWFudGl0eS1hbmQtYXV0by1uZXh0LW9uLWFkZHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")**
- [![ingjjaa's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38158-ingjjaa "View ingjjaa's Profile") Topic Author
- [ Offline](/forum/user/38158-ingjjaa)

Less More

- Posts: 25
- Thank you received: 0
-
-

10 years 4 months ago [\#243415](#243415) by [ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")  Replied by *[ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")* on topic *[Auto Increase the Quantity and Auto next on Addres](/forum/27-checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres#243415 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrone -- Error-message(debug-mod must be tuned on) -- : twi good questions  Hi i have twwo questions:  1) I have change the product quantity to dropdown box (selector), i would like that when i change the nnumer for example from 1 to 2 or 3 auto update the prices and everything without need to click in the undate button is thata posible???  2) the second question is abou guess buy in address i have two step check out flow in the firs i ask by address and in the second i request other things in the custo fields (order fields) but i have to click next twice the first to add the addres and the other to continue would be possible to simplifly that and save the addres and continue with the same click in the next button ???")*

Hi thanks the first advice worked great, but the second one i did no find the line ![XD](/laugh.gif "XD")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTE0My1hdXRvLWluY3JlYXNlLXRoZS1xdWFudGl0eS1hbmQtYXV0by1uZXh0LW9uLWFkZHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243424](#243424) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto Increase the Quantity and Auto next on Addres](/forum/27-checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres#243424 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrone -- Error-message(debug-mod must be tuned on) -- : twi good questions  Hi i have twwo questions:  1) I have change the product quantity to dropdown box (selector), i would like that when i change the nnumer for example from 1 to 2 or 3 auto update the prices and everything without need to click in the undate button is thata posible???  2) the second question is abou guess buy in address i have two step check out flow in the firs i ask by address and in the second i request other things in the custo fields (order fields) but i have to click next twice the first to add the addres and the other to continue would be possible to simplifly that and save the addres and continue with the same click in the next button ???")*

Hi,

You can find that code in the after_address function of that file.
It might be a bit different as you're not using the latest version, but it should be quite similar and the principle of removing the "return false;" lines there is still the same.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTE0My1hdXRvLWluY3JlYXNlLXRoZS1xdWFudGl0eS1hbmQtYXV0by1uZXh0LW9uLWFkZHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.147 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
