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

#   SImplest way to accomplish 2 Variants

##

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

Less More

- Posts: 24
- Thank you received: 0
-
-

7 years 2 months ago [\#311370](#311370) by [jcroce](/forum/user/13772-jcroce "View jcroce's Profile")  *[SImplest way to accomplish 2 Variants](/forum/32-content-creation/898357-simplest-way-to-accomplish-2-variants#311370 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Firefox  Hi,  I've set up a relatively small store and am wondering if there's an easier way to do something.  I want to have a product that's available as 1-10 units with pricing getting lower the more you buy. Then there's a second product that relates to the first one and has a fixed price.  So I've created a single product and used a variant to lower the price based on the number of units you purchase (1-10). Then I added a second variant where you can add 0-10 of the add-on product. This results in having to create 110 variants and pricing. While this works fine it's very tedious.  Is there an easier way to do this other than creating two totally separate products?  Thanks.  John")* was created by *[jcroce](/forum/user/13772-jcroce "View jcroce's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Firefox

Hi,

I've set up a relatively small store and am wondering if there's an easier way to do something.

I want to have a product that's available as 1-10 units with pricing getting lower the more you buy. Then there's a second product that relates to the first one and has a fixed price.

So I've created a single product and used a variant to lower the price based on the number of units you purchase (1-10). Then I added a second variant where you can add 0-10 of the add-on product. This results in having to create 110 variants and pricing. While this works fine it's very tedious.

Is there an easier way to do this other than creating two totally separate products?

Thanks.

John

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk4MzU3LXNpbXBsZXN0LXdheS10by1hY2NvbXBsaXNoLTItdmFyaWFudHM/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: 86587
- Thank you received: 14325
-
-

7 years 2 months ago [\#311374](#311374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SImplest way to accomplish 2 Variants](/forum/32-content-creation/898357-simplest-way-to-accomplish-2-variants#311374 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Firefox  Hi,  I've set up a relatively small store and am wondering if there's an easier way to do something.  I want to have a product that's available as 1-10 units with pricing getting lower the more you buy. Then there's a second product that relates to the first one and has a fixed price.  So I've created a single product and used a variant to lower the price based on the number of units you purchase (1-10). Then I added a second variant where you can add 0-10 of the add-on product. This results in having to create 110 variants and pricing. While this works fine it's very tedious.  Is there an easier way to do this other than creating two totally separate products?  Thanks.  John")*

Hi,

Instead of having two characteristics (the quantity of the first product and the quantity of the second product) you could instead:
- create one product with several prices with a "minimum quantity" set for each unit price.
- create a second product with a fixed price in an unpublished category (so that you can't purchase it alone).
- add the second product as an option of the first product.
- make sure that you display the quantity input field.
That way, the first product would have its price vary in the cart based on the quantity of the product in the cart, and the second product would be a yes/no choice on the first product page and its price would be added to the price of the first product and it would be fixed regardless of the quantity.
[ www.hikashop.com/support/documentation/i...ct-form.html#options](https://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop-product-form.html#options)

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

7 years 2 months ago [\#311395](#311395) by [jcroce](/forum/user/13772-jcroce "View jcroce's Profile")  Replied by *[jcroce](/forum/user/13772-jcroce "View jcroce's Profile")* on topic *[SImplest way to accomplish 2 Variants](/forum/32-content-creation/898357-simplest-way-to-accomplish-2-variants#311395 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Firefox  Hi,  I've set up a relatively small store and am wondering if there's an easier way to do something.  I want to have a product that's available as 1-10 units with pricing getting lower the more you buy. Then there's a second product that relates to the first one and has a fixed price.  So I've created a single product and used a variant to lower the price based on the number of units you purchase (1-10). Then I added a second variant where you can add 0-10 of the add-on product. This results in having to create 110 variants and pricing. While this works fine it's very tedious.  Is there an easier way to do this other than creating two totally separate products?  Thanks.  John")*

Thank you for that. The only thing is I shouldn't have said the second product has a "fixed price". For example, it should be $25 for each unit added. So a user might add three of the add-on product which should add $75 additional to the cart.

Hopefully there's an easier way to do this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk4MzU3LXNpbXBsZXN0LXdheS10by1hY2NvbXBsaXNoLTItdmFyaWFudHM/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: 86587
- Thank you received: 14325
-
-

7 years 2 months ago [\#311398](#311398) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SImplest way to accomplish 2 Variants](/forum/32-content-creation/898357-simplest-way-to-accomplish-2-variants#311398 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Firefox  Hi,  I've set up a relatively small store and am wondering if there's an easier way to do something.  I want to have a product that's available as 1-10 units with pricing getting lower the more you buy. Then there's a second product that relates to the first one and has a fixed price.  So I've created a single product and used a variant to lower the price based on the number of units you purchase (1-10). Then I added a second variant where you can add 0-10 of the add-on product. This results in having to create 110 variants and pricing. While this works fine it's very tedious.  Is there an easier way to do this other than creating two totally separate products?  Thanks.  John")*

Hi,

I understood that. I'm sorry, I wasn't clear enough in my previous message. What I meant is that the option product UNIT price would be fixed.
It would go like that:
total = ( unit price of the main product for the current quantity + unit price of the option product for the current quantity ) * quantity

So if the unit price of the main product for the current quantity is $20 for 1 and $15 for 2, and the unit price of the option product for the current quantity is $25 no matter what, then :
- if the quantity of the product in the cart is 1, the total will be $20 + $25 = $45
- if the quantity of the product in the cart is 2, the total will be ($15 + $25)*2 = $80

From what I understand, that's what you said you want so you should be good to go with that main product + option product solution.

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

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