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

#   Only different price second unit

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 8 months ago [\#89201](#89201) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#89201 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")* was created by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")*

like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price.
thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 8 months ago [\#89379](#89379) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#89379 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

You can add prices in the product edition page. Add a price for 1 product, a price for two product lower than the first price displayed for 2 items minimum (it's price per product) and a third price equal to the first one for 3 items minimum.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 8 months ago [\#90305](#90305) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#90305 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Hola Xavier,
Gracias por tu respuesta.
He puesto el primer precio con una cantidad de 9€ por ejemplo y un segundo precio con 6€ y cantidad mínima 2. Finalmente he agregado otro precio igual al primero.

Te adjunto dos imágenes, una con el backend y otra con el resultado en la página.

Lo que me gustaría es que al agregar al carrito la segunda unidad tenga menor precio pero sin que aparezcan los tres precios como en la imagen.

Gracias

- [ ![01.jpg](/forum/attachment/8610) ](/forum/attachment/8610 "01.jpg") [ ](/forum/attachment/8610?download=1 "01.jpg")
- [ ![02.jpg](/forum/attachment/8611) ](/forum/attachment/8611 "02.jpg") [ ](/forum/attachment/8611?download=1 "02.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 8 months ago [\#90585](#90585) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#90585 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Hi,

The support is in English, we don't understand Spanish, thanks to translate. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 8 months ago [\#91438](#91438) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#91438 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Ok, here we go with my English translator of google :laugh:

Hello Xavier,
Thanks for your answer.
I put the first price with an amount of € 9 for example and a second price with 6 € and minimum 2. Finally I added another price equal to the first.

I am attaching two images, one with the backend and another with the result on the page.

What I would like is that when you add to cart the second unit has lower price but without the appearance of the three prices like in the picture.

thanks

- [ ![01&#95;2013-02-22.jpg](/forum/attachment/8722) ](/forum/attachment/8722 "01&#95;2013-02-22.jpg") [ ](/forum/attachment/8722?download=1 "01&#95;2013-02-22.jpg")
- [ ![02&#95;2013-02-22.jpg](/forum/attachment/8723) ](/forum/attachment/8723 "02&#95;2013-02-22.jpg") [ ](/forum/attachment/8723?download=1 "02&#95;2013-02-22.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

13 years 8 months ago -  13 years 8 months ago [\#91607](#91607) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#91607 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

You can add CSS code to hide the second and third prices on the product page:
.hikashop_product_price_1, .hikashop_product_price_2{ display: none; }

You can add it in the frontend CSS file of HikaShop via the Display tab of the configuration

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 8 months ago [\#92481](#92481) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#92481 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

If but when you add more than 2 products, 3, 4, 5 ... just tell me only the second price is 2 items. as I do to show me the price of 3 that i would like the first second at a lower price?

example
- 1 unit = 5 €
- 2 units = 4 €
- 3 units = 5 +4 +5 = 14 €
- 4 units = 5 +5 +5 +4 = 19 €
...

Then prices could not show with CSS but first has to show good prices

Thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

13 years 8 months ago [\#92708](#92708) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#92708 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Mmm. I'm not sure I understand your question.
The prices shown by HikaShop are correct. That's the prices that you enter on your backend.

If you want to have the second product at 4 euros and all others at 5 you will have to configure your prices like that:

1 unit -&gt; 5€
2 units -&gt; 4.5 €
3 units -&gt; 4.66666€
4 units -&gt; 4.75 €
...etc...

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 8 months ago [\#92747](#92747) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#92747 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

hello, the idea is good for 2 units, is correct, but when I put the 3 and 4 units, not, still has the value of the second unit

1 = 5EUR
2 = 9EUR (ok)
3 = 13.50 (should be 14EUR)
4 = 18EUR (19EUR should be)

how do I count the values ​​of 3 and 4?

I tried to change the order of prices but nothing.

thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

13 years 7 months ago [\#92945](#92945) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#92945 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

You need to enter the UNIT price not the total price.
Like I explained in my message.
The order of the prices is not relevant.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 7 months ago [\#92970](#92970) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#92970 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Hello, attached screenshot of prices and results in the front.
comes with two units right = 9 €

the 3 and 4 units in the attached images.

seems that only account for from 2 units for all quantities are chosen.

thanks

- [ ![3&#95;units.jpg](/forum/attachment/8914) ](/forum/attachment/8914 "3&#95;units.jpg") [ ](/forum/attachment/8914?download=1 "3&#95;units.jpg")
- [ ![4&#95;units.jpg](/forum/attachment/8915) ](/forum/attachment/8915 "4&#95;units.jpg") [ ](/forum/attachment/8915?download=1 "4&#95;units.jpg")
- [ ![prices&#95;1-4&#95;units.jpg](/forum/attachment/8916) ](/forum/attachment/8916 "...&#95;1-4&#95;units.jpg") [ ](/forum/attachment/8916?download=1 "...&#95;1-4&#95;units.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

13 years 7 months ago [\#93157](#93157) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#93157 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Hi,

Ok, now I see that there is an issue with the way the prices are selected for the calculations in your particular case.

Add the code Code:

if(!empty($matches)){ //force the prices used to be the ones for which the price_min_quantity match with the quantity of the product in the cart $tempMatches = array(); $matchcount = 0; foreach($matches as $price){ if($price-&gt;price_min_quantity==$quantity){ $tempMatches[] = $price; } } if(count($tempMatches)){ $matches = $tempMatches; } }

before the code Code:

$prices = $matches;

in the file administrator/components/com_hikashop/classes/currency.php and that should fix the problem.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 7 months ago [\#93176](#93176) by [gaforex](/forum/user/13488-gaforex "View gaforex's Profile")  Replied by *[gaforex](/forum/user/13488-gaforex "View gaforex's Profile")* on topic *[Only different price second unit](/forum/2-general-talk-about-hikashop/78169-only-different-price-second-unit#93176 "like putting a second unit product at a lower price (only second unit) if more units will have the same value as the first price. thanks")*

Thank you very much ![:)](/media/kunena/emoticons/3.png ":)")

Nice job!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MTY5LW9ubHktZGlmZmVyZW50LXByaWNlLXNlY29uZC11bml0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.097 seconds

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