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

#   shopping cart - plus and minus option (+ or -)

##

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

Less More

- Posts: 115
- Thank you received: 0
-
-

14 years 1 week ago [\#74509](#74509) by [itye2012](/forum/user/8062-itye2012 "View itye2012's Profile")  *[shopping cart - plus and minus option (+ or -)](/forum/2-general-talk-about-hikashop/74509-shopping-cart-plus-and-minus-option-or#74509 "is there any way you can add a &quot;+&quot; or &quot;-&quot; option in the shopping cart. For example if a user wants to purchase more than one item I would like them to just click + or - in the cart to add or remove...")* was created by *[itye2012](/forum/user/8062-itye2012 "View itye2012's Profile")*

is there any way you can add a "+" or "-" option in the shopping cart. For example if a user wants to purchase more than one item I would like them to just click + or - in the cart to add or remove number of items in the cart without having to go back and add this manually

is this possible?

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago [\#74555](#74555) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: shopping cart - plus and minus option (+ or -)](/forum/2-general-talk-about-hikashop/74509-shopping-cart-plus-and-minus-option-or#74555 "is there any way you can add a &quot;+&quot; or &quot;-&quot; option in the shopping cart. For example if a user wants to purchase more than one item I would like them to just click + or - in the cart to add or remove...")*

Hi,

It can be possible, edit the view "checkout / cart" in HikaShop &gt; Display &gt; Views, and add a "+" with some javascript actions when you click on it like:
Code:

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

It require some PHP and JavaScript knowledge.

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

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

Less More

- Posts: 115
- Thank you received: 0
-
-

14 years 6 days ago [\#75008](#75008) by [itye2012](/forum/user/8062-itye2012 "View itye2012's Profile")  Replied by *[itye2012](/forum/user/8062-itye2012 "View itye2012's Profile")* on topic *[Re: shopping cart - plus and minus option (+ or -)](/forum/2-general-talk-about-hikashop/74509-shopping-cart-plus-and-minus-option-or#75008 "is there any way you can add a &quot;+&quot; or &quot;-&quot; option in the shopping cart. For example if a user wants to purchase more than one item I would like them to just click + or - in the cart to add or remove...")*

is it ok to insert the above code , will that do or do I need to add anything else?

many thanks for your reply

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 6 days ago [\#75010](#75010) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: shopping cart - plus and minus option (+ or -)](/forum/2-general-talk-about-hikashop/74509-shopping-cart-plus-and-minus-option-or#75010 "is there any way you can add a &quot;+&quot; or &quot;-&quot; option in the shopping cart. For example if a user wants to purchase more than one item I would like them to just click + or - in the cart to add or remove...")*

Hi,

I have not test this code, but I think that it will do the trick. Not sure on the variable "$product-&gt;product_id", maybe you will have to use something else.

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

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