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

#   + and - instead Refresh button in Chekout and Cart

##

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 3 months ago [\#167907](#167907) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#167907 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")* was created by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")*

-- HikaShop version -- : HikaShop Business 2.3.2
-- Joomla version -- : Joomla! 3.3.3 Stable
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Any

I can change quantity by pressing + and - in product or category listing.
[ ![3&#95;2014-08-18.gif](/forum/attachment/19056) ](/forum/attachment/19056 "3&#95;2014-08-18.gif")

But in Checkout I have only Refresh button.
[ ![1&#95;2014-08-18.gif](/forum/attachment/19054) ](/forum/attachment/19054 "1&#95;2014-08-18.gif")

And in the CartI havent any button at all.
[ ![2&#95;2014-08-18.gif](/forum/attachment/19055) ](/forum/attachment/19055 "2&#95;2014-08-18.gif")

Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.

- [ ![1&#95;2014-08-18.gif](/forum/attachment/19054) ](/forum/attachment/19054 "1&#95;2014-08-18.gif") [ ](/forum/attachment/19054?download=1 "1&#95;2014-08-18.gif")
- [ ![2&#95;2014-08-18.gif](/forum/attachment/19055) ](/forum/attachment/19055 "2&#95;2014-08-18.gif") [ ](/forum/attachment/19055?download=1 "2&#95;2014-08-18.gif")
- [ ![3&#95;2014-08-18.gif](/forum/attachment/19056) ](/forum/attachment/19056 "3&#95;2014-08-18.gif") [ ](/forum/attachment/19056?download=1 "3&#95;2014-08-18.gif")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA0NDQtYW5kLWluc3RlYWQtcmVmcmVzaC1idXR0b24taW4tY2hla291dC1hbmQtY2FydD9zdGFydD0wJnRtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

12 years 3 months ago [\#167950](#167950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#167950 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hi,

There is no option to activate such capability, but you can always modify the cart view files via the menu Display&gt;Views in order to add them.
It's not really complex if you know a bit of programming. For example, for the + of the checkout/cart view file, you could have that code: Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); qty_field.value=qty_field.value.parseInt()+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

You can add it before the refresh button:
&lt;div class="hikashop_cart_product_quantity_refresh"&gt;

The following user(s) said Thank You: [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 3 months ago [\#168535](#168535) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#168535 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Add and when press + button, get error: Code:

Uncaught TypeError: undefined is not a function step-1.html:791 onclick

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 3 months ago [\#168536](#168536) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#168536 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Rewrite as: Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); qty_field.value=parseInt(qty_field.value)+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

Now it works I think.

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266115](#266115) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266115 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

What about Hikashop 3.0.1?
How I can now add +/- to cart module and checkout page?

Doesn't work too. Code:

&lt;table class="cartplusminus"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;div class="cartplus" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=parseInt(qty_field.value)+1;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="Добавить порцию"&gt;+&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div class="cartminus" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=parseInt(qty_field.value)-1;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="Убрать порцию"&gt;-&lt;/div&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266119](#266119) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266119 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Try to replace getElementById with getElementsByName. And $row-&gt;cart_product_id; with $product-&gt;cart_product_id;
It change quantity in cart, but reload page, no ajax reload.
Code:

&lt;table class="cartplusminus"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;div class="cartplus" onclick="var qty_field = document.getElementsByName('item[&lt;?php echo $product-&gt;cart_product_id;?&gt;][cart_product_quantity]')[0]; if(qty_field){qty_field.value=parseInt(qty_field.value)+1;return false;}else{ return true;}" title="Добавить порцию"&gt;+&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div class="cartminus" onclick="var qty_field = document.getElementsByName('item[&lt;?php echo $product-&gt;cart_product_id;?&gt;][cart_product_quantity]')[0]; if(qty_field){qty_field.value=parseInt(qty_field.value)-1;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="Убрать порцию"&gt;-&lt;/div&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#266121](#266121) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266121 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hello,

Please be sure that you do not have view overrides for your content.
The code you mentioned is related to the "legacy" add to cart system and it received some minor modifications in order to be compatible with the new way that the cart is handled in HikaShop.

You have to keep using the getElementById but you need to use the right code to get the HTML input element.
Without knowing what you have modified but seeing that you do not have the original content ; I'm afraid that our support won't be able to give you any useful help.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266258](#266258) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266258 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

I use original files. I just tried to add modofication, that I had used in 2.6.3 but it doesn't work now.
There is still no default function to show +/- in the cart or checkout page in Hikashop 3?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#266261](#266261) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266261 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hello,

There is no mention of Code:

&lt;table class="cartplusminus"&gt;

in HikaShop 3.
So I don't know what you're trying to do but that's not the official HikaShop 3 code.
If you're using HikaShop 3 ; you have to use code of HikaShop 3, not older code.
And yes, there is features in HikaShop 3 to display a quantity selector in the checkout cart.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266378](#266378) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266378 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

You didn't read my last message.
I can write again. Modification &lt;table class="cartplusminus"&gt; was in 2.6.3. When I try the same hack in 3.0.1 it doesn't work.
How can I add +/- to the cart module without page reload in 3.0.1?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#266383](#266383) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266383 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hello,

And I wrote:

> If you're using HikaShop 3 ; you have to use code of HikaShop 3, not older code.

So I don't know what I can tell you.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266497](#266497) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266497 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

> Jerome wrote: You have to keep using the getElementById but you need to use the right code to get the HTML input element.

> Jerome wrote: If you're using HikaShop 3 ; you have to use code of HikaShop 3, not older code.

3 years ago Nicolas wrote how to add +/- buttons to Hikashop 2.

> nicolas wrote:
>
> Code:
>
> &lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); qty_field.value=qty_field.value.parseInt()+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

In the new Hikashop 3 it does not work anymore. And I ask for 5 days how to add these buttons.
How can I use the code of Hikashop 3, if I do not know what it should be now. If I knew, obviously I would not write on the forum.

I can not understand the meaning of your answers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA0NDQtYW5kLWluc3RlYWQtcmVmcmVzaC1idXR0b24taW4tY2hla291dC1hbmQtY2FydD9zdGFydD0wJnRtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago -  9 years 8 months ago [\#266562](#266562) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266562 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hi,

You can still use the same code with the new checkout cart view.
If you look at either the "cart" view file of the "legacy" checkout, or at the show_block_cart view file of the new checkout, both have a quantity input field with the same id : Code:

&lt;input id="hikashop_checkout_quantity_&lt;?php echo $product-&gt;cart_product_id;?&gt;" type="text" name="checkout[cart][item][&lt;?php echo $product-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $product-&gt;cart_product_quantity; ?&gt;"/&gt;

Code:

&lt;input id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt;}; return true;" /&gt;

So the code I wrote three years ago should still work there: Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); qty_field.value=qty_field.value.parseInt()+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $product-&gt;cart_product_id;?&gt;'); qty_field.value=qty_field.value.parseInt()+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

(obviously, you need to update the $row variable to $product, but the logic is still the same and you still need to use a getElementById as Jerome was saying.)

Please understand that this is custom coding.
We provide user support in this forum. We try to help when you have coding questions regarding HikaShop, but that's already outside the support we're supposed to give, and that doesn't mean that we will work on your customizations for you. If you're a developer, these basic modifications shouldn't be a problem, and if you aren't, then you should ask a developer for help on such customization.

Last edit: 9 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266625](#266625) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266625 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Yes, I can use Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $product-&gt;cart_product_id;?&gt;'); qty_field.value=parseInt(qty_field.value)+1;qty_field.form.submit();"&gt;+&lt;/a&gt; &lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $product-&gt;cart_product_id;?&gt;'); qty_field.value=parseInt(qty_field.value)-1;qty_field.form.submit();"&gt;-&lt;/a&gt;

in checkout page. But it reload all page, not new system (ajax) update.

> nicolas wrote: (obviously, you need to update the $row variable to $product, but the logic is still the same and you still need to use a getElementById as Jerome was saying.)

In the cart module as I see, id do not contain product id. I don't know what this number (_39) is meaning. Product id is in name atribute. Code:

&lt;input id="hikashop_product_quantity_field_39" type="text" value="16" class="hikashop_product_quantity_field" name="item[182409][cart_product_quantity]" data-hk-qty-min="1" data-hk-qty-max="0" onchange="window.hikashop.checkQuantity(this); if(this.value == 16){ return; } if(this.form.onsubmit &amp;amp;&amp;amp; !this.form.onsubmit()) return; this.form.submit();"&gt;

Try to use getElementsByName instead getElementById, but when change quantity - all page content reloads. So the advantage of the new "Add to cart" system is lost in that case.
It's normal to change the amount through the input field via keyboard on the desktop PC, but on the mobile phone it's easier to press the plus and minus buttons. Reloading the page on the phone is annoying. Today, more than half of all visitors use mobile phones.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266629](#266629) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266629 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Found else that I can edit */components/com\_hikashop/views/layouts/tmpl/quantity.php* near line 118, to get buttons with correct id. Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('&lt;?php echo $id;?&gt;'); qty_field.value=parseInt(qty_field.value)+1;qty_field.form.submit();"&gt;+&lt;/a&gt;

![:(](/media/kunena/emoticons/22.png ":(") but this variant refresh all page too

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 8 months ago [\#266630](#266630) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266630 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hi,

You are right about mobile. I have asked same question about 2 months ago here; [ www.hikashop.com/forum/4-how-to/888560-h...uestions.html#260825](https://www.hikashop.com/forum/4-how-to/888560-hikashop-3-few-questions.html#260825)

Still waiting for the improvement ![:)](/media/kunena/emoticons/3.png ":)")

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA0NDQtYW5kLWluc3RlYWQtcmVmcmVzaC1idXR0b24taW4tY2hla291dC1hbmQtY2FydD9zdGFydD0wJnRtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago [\#266632](#266632) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266632 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hi,

If you want to submit the block (ajax refresh), instead of a whole step refresh, it's quite easy. Just take example on the delete button.
If you look in the cart.php for the delete button code, you can see that the submission of the data is done with qty_field.form.submit();
while in the show_block_cart.php that piece is replaced by:
return window.checkout.submitCart(&lt;?php echo $this-&gt;step; ?&gt;,&lt;?php echo $this-&gt;module_position; ?&gt;);
So in your code in show_block_cart, do the same change and the + and - buttons will also use AJAX refresh.

The following user(s) said Thank You: [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile"), [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266734](#266734) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266734 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

> nicolas wrote: So in your code in show\_block\_cart, do the same change and the + and - buttons will also use AJAX refresh.

Thank you. In Checkout page it works.

In cart module another code for Delete button and I didn't find solution ![:(](/media/kunena/emoticons/22.png ":(")

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago [\#266770](#266770) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266770 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

> alikon1 wrote: Found else that I can edit */components/com\_hikashop/views/layouts/tmpl/quantity.php* near line 118, to get buttons with correct id.
>
> Code:
>
> &lt;a href="#" onclick="var qty_field = document.getElementById('&lt;?php echo $id;?&gt;'); qty_field.value=parseInt(qty_field.value)+1;qty_field.form.submit();"&gt;+&lt;/a&gt;
>
>
>
> ![:(](/media/kunena/emoticons/22.png ":(") but this variant refresh all page too

That file already contains some +/- code: Code:

&lt;a class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" data-hk-qty-mod="1" onclick="return window.hikashop.&lt;updateQuantity&gt;(this, '&lt;?php echo $id; ?&gt;');"&gt;+&lt;/a&gt; &lt;a class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" data-hk-qty-mod="-1" onclick="return window.hikashop.&lt;updateQuantity&gt;(this, '&lt;?php echo $id; ?&gt;');"&gt;&amp;ndash;&lt;/a&gt;

But when I try to add this, it's only increase quantity in input box and don't recalculate total sum, no entire or ajax page reload.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 8 months ago -  9 years 8 months ago [\#266777](#266777) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart#266777 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

In /components/com_hikashop/views/layouts/tmpl/quantity.php add:
Code:

&lt;button type="submit" onclick="var qty_field = document.getElementById('&lt;?php echo $id; ?&gt;'); qty_field.value=parseInt(qty_field.value)+1;"&gt;+&lt;/button&gt; &lt;button &lt;?php if ($current_quantity==1) echo 'disabled'; ?&gt; type="submit" onclick="var qty_field = document.getElementById('&lt;?php echo $id; ?&gt;'); qty_field.value=parseInt(qty_field.value)-1;"&gt;-&lt;/button&gt;

It seems it works :woohoo:

Last edit: 9 years 8 months ago by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile").

The following user(s) said Thank You: [OA](/forum/user/49270-oa "View OA's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA0NDQtYW5kLWluc3RlYWQtcmVmcmVzaC1idXR0b24taW4tY2hla291dC1hbmQtY2FydD9zdGFydD0wJnRtcGw9bWFya2Rvd24=) 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.155 seconds

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