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

#   One per vs global add to cart on listings

##

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

9 years 8 months ago [\#263081](#263081) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#263081 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")* was created by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")*

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.15
-- Browser(s) name and version -- : Chrome 56.0.2924.87

Good day,
I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?

Thanks in advance,
Matt
[ ![oneperaddtocart&#95;2017-02-21.jpg](/forum/attachment/36514) ](/forum/attachment/36514 "...2017-02-21.jpg")

[ ![globaladdtocart&#95;2017-02-21-2.jpg](/forum/attachment/36516) ](/forum/attachment/36516 "...17-02-21-2.jpg")

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

- [ ![oneperaddtocart&#95;2017-02-21.jpg](/forum/attachment/36514) ](/forum/attachment/36514 "...2017-02-21.jpg") [ ](/forum/attachment/36514?download=1 "...2017-02-21.jpg")
- [ ![globaladdtocart&#95;2017-02-21-2.jpg](/forum/attachment/36516) ](/forum/attachment/36516 "...17-02-21-2.jpg") [ ](/forum/attachment/36516?download=1 "...17-02-21-2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg5ODctb25lLXBlci12cy1nbG9iYWwtYWRkLXRvLWNhcnQtb24tbGlzdGluZ3M/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

9 years 8 months ago [\#263086](#263086) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#263086 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Hi,

1.
Thank you for your feedback. We didn't know about that problem. I've added a patch for that on our end. Download the install package again on our website and install it on yours and it will add the patch.

2.
Yes, that's done on purpose.
Suppose that you have a listing of a 100 variants or products.
The customers will usually want to buy only a few different variants.
With a global add to cart button, if we put 1 in all the quantity fields, the customer would have to change the quantity to 0 for all the variants/products he doesn't want before clicking on the global "add to cart" button.
But when you have one button per variant/product, if the customer clicks on the add to cart button, it means he wants at least 1 of that variant/product, so we put one by default in the quantity field.
So, as I hope you can understand, this is done to help the customers.

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

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

9 years 8 months ago [\#263134](#263134) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  Replied by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#263134 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Thanks for the reply and the fix, Nicolas!
Sorry if I didn't make myself clear on the second issue, but I was referring to the available stock level ("X items in stock") not being shown in the global product listing as it is in the per product listing.

Matt
[ ![nostocklevelonglobal.jpg](/forum/attachment/36539) ](/forum/attachment/36539 "...elonglobal.jpg")

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

- [ ![nostocklevelonglobal.jpg](/forum/attachment/36539) ](/forum/attachment/36539 "...elonglobal.jpg") [ ](/forum/attachment/36539?download=1 "...elonglobal.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg5ODctb25lLXBlci12cy1nbG9iYWwtYWRkLXRvLWNhcnQtb24tbGlzdGluZ3M/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

9 years 8 months ago [\#263201](#263201) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#263201 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Hi,

Thanks. I understand what you mean. I've added a patch for that too.

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

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

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

9 years 8 months ago [\#263206](#263206) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  Replied by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#263206 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Nicolas,
Thanks for the quick response. Your support for Hikashop is, as always, superior!

Matt

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

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

- **[solia](/forum/user/10273-solia "View solia's Profile")**
- [![solia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar10273.jpg)](/forum/user/10273-solia "View solia's Profile")
- [ Offline](/forum/user/10273-solia)

Less More

- Posts: 30
- Thank you received: 2
-
-

8 years 8 months ago [\#287135](#287135) by [solia](/forum/user/10273-solia "View solia's Profile")  Replied by *[solia](/forum/user/10273-solia "View solia's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#287135 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Hello,
I have the latest Joomla 3.8.4
I want to display my products in a list view as well. When applied the list view configurations, the stock did not display in a column between the size and quantity box desired.
I just uploaded Hika for Business 3.2.2 to see if the patch would work. It did not.
Can you please provide me directions on what I need to do?
Thank you so much.
Nadine

- [ ![stock.JPG](/forum/attachment/42438) ](/forum/attachment/42438 "stock.JPG") [ ](/forum/attachment/42438?download=1 "stock.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg5ODctb25lLXBlci12cy1nbG9iYWwtYWRkLXRvLWNhcnQtb24tbGlzdGluZ3M/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

8 years 8 months ago [\#287138](#287138) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#287138 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Hi,

You probably have view overrides in your template preventing you from seeing the patch.
Rename the folder templates/YOUR_TEMPLATE/html/com_hikashop/ to deactivate all the view overrides of the template for HikaShop.
If you then see the quantity displayed, that would confirm that.
Then, you would have to repeat the process with the different files (probably starting with the ones under the "product" folder of that folder) in order to indentify which view file override is causing the issue.

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

- **[solia](/forum/user/10273-solia "View solia's Profile")**
- [![solia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar10273.jpg)](/forum/user/10273-solia "View solia's Profile")
- [ Offline](/forum/user/10273-solia)

Less More

- Posts: 30
- Thank you received: 2
-
-

8 years 8 months ago [\#287177](#287177) by [solia](/forum/user/10273-solia "View solia's Profile")  Replied by *[solia](/forum/user/10273-solia "View solia's Profile")* on topic *[One per vs global add to cart on listings](/forum/26-product-category-display/888987-one-per-vs-global-add-to-cart-on-listings#287177 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.15 -- Browser(s) name and version -- : Chrome 56.0.2924.87  Good day, I'm experiencing a couple of problems, one aesthetic, one functional, relating to the Add to Cart button on listings. From a functional standpoint, when the add to cart is configured as one per product, the quantity added to the cart is always one regardless of the number set in the quantity box for the item. Aesthetically, is there a reason that the stock level is eliminated when the Global add to cart configuration is selected?  Thanks in advance, Matt")*

Thank you so much Nicolas.
You were right. It worked when I deactivated the com_hikashop folder. I have to find the culprit now.
I appreciate your quick response and awesome support.
Nadine

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

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

[](#top)
