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

#   Add Multiple Products to carts

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 3 months ago -  12 years 3 months ago [\#163563](#163563) by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile")  *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163563 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")* was created by *[angelfila](/forum/user/12461-angelfila "View angelfila's Profile")*

-- url of the page with the problem -- : N/A [Currently in local development]
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m

How do I allow user to multiple select items with the amount of qty needed and submit to cart?
Kindly refer to attachment for Sample.

- [ ![hff53a5e.PNG](/forum/attachment/18366) ](/forum/attachment/18366 "hff53a5e.PNG") [ ](/forum/attachment/18366?download=1 "hff53a5e.PNG")

Last edit: 12 years 3 months ago by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2OTYxNC1hZGQtbXVsdGlwbGUtcHJvZHVjdHMtdG8tY2FydHM/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: 86320
- Thank you received: 14279
-
-

12 years 3 months ago [\#163574](#163574) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163574 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

Hi,

You can set the "Display the quantity field on the product page" option of the configuration to "global on listings" in the Hikashop configuration.
Then, if you turn on the "display add to cart button" option of your products listings, you'll get one quantity field per product with a main add to cart button.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 3 months ago [\#163664](#163664) by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile")  Replied by *[angelfila](/forum/user/12461-angelfila "View angelfila's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163664 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

It work wonderful. Is there anyway I could set the qty by default to 1?

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 3 months ago [\#163721](#163721) by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile")  Replied by *[angelfila](/forum/user/12461-angelfila "View angelfila's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163721 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

I manage to resolved this. ![:)](/media/kunena/emoticons/3.png ":)")

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

12 years 3 months ago [\#163665](#163665) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163665 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

Hi,

You have to edit the view "product / add_to_cart_listing" and edit the code line: Code:

&lt;input id="hikashop_listing_quantity_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;" type="text" style="width:40px;" name="data[&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;]" class="hikashop_listing_quantity_field" value="0" /&gt;

To replace value="0" by vlaue="1"

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 3 months ago [\#163759](#163759) by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile")  Replied by *[angelfila](/forum/user/12461-angelfila "View angelfila's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163759 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

I have added the following "custom field" code to checkout&gt;cart.

&lt;td&gt;
&lt;?php echo $this-&gt;row-&gt;subject; ?&gt;
&lt;/td&gt;

The issue I am facing now is that the 1st line of subject is not showing, as shown in "checkout_cart_image.PNG"

- [ ![hc07e250.PNG](/forum/attachment/18390) ](/forum/attachment/18390 "hc07e250.PNG") [ ](/forum/attachment/18390?download=1 "hc07e250.PNG")
- [ ![h576b817.PNG](/forum/attachment/18391) ](/forum/attachment/18391 "h576b817.PNG") [ ](/forum/attachment/18391?download=1 "h576b817.PNG")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 3 months ago [\#163768](#163768) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163768 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

Hello,
And did you set a value for the "subject" custom field of the product "EnglishWise : Conprehension1" ?

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 3 months ago [\#163855](#163855) by [angelfila](/forum/user/12461-angelfila "View angelfila's Profile")  Replied by *[angelfila](/forum/user/12461-angelfila "View angelfila's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163855 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

Yes i did, it is showing up at producting listing with the same code that i add in.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2OTYxNC1hZGQtbXVsdGlwbGUtcHJvZHVjdHMtdG8tY2FydHM/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#163856](#163856) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add Multiple Products to carts](/forum/4-how-to/869614-add-multiple-products-to-carts#163856 "-- url of the page with the problem -- : N/A &#91;Currently in local development&#93; -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m  How do I allow user to multiple select items with the amount of qty needed and submit to cart? Kindly refer to attachment for Sample.")*

Hi,

Sure.
As you can see in the code, the variable "$this-&gt;row" is set below your code, just before the display of the price.
You have to use "$row-&gt;subject" and not "$row-&gt;subject".

Regards,

---

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

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

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

[](#top)
