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

#   Minimal quantity

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 5 months ago -  10 years 4 months ago [\#240981](#240981) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#240981 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")* was created by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")*

Hello,

I'd like to create a product available in different quantity and with different prices. I found the "Price" area and the "limitiation" area of the product but can't find how to set it correctly.

My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.

I set the prices in the price zone, it works fine.
For the quantity I set "Quantity per order" on "250" to "1000"
And the "Quantity input" on "Select"

The problem is that the result is a list with 250 , 500 , 750 and 1000.
I want 500, 750 and 1000.

Can you please help me?
Thanks.

Last edit: 10 years 4 months ago by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ2OTEtbWluaW1hbC1xdWFudGl0eT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

10 years 5 months ago [\#241001](#241001) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241001 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

You should configure 3 prices with the corresponding 'min qty'.
Then, set the "Quantity input" setting of the product to 'show select price' and the customers will only be able to select the quantity among these quantities.

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

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

Less More

- Posts: 113
- Thank you received: 18
-
-

10 years 5 months ago [\#241619](#241619) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  Replied by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241619 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

I had a similar need and was hoping this was a solution.
When I set this up for a product to limit purchases to specific quantities, the display doesn't look right, and the combo box presented for quantity doesn't include all quantities defined.
Attached are screen shots that present two issues:
1. The order of the quantities doesn't appear right. I would think these should be in order of: unit price, then quantity.
2. The combo box prompting for quantity doesn't appear properly ordered and is missing some define pricing options, e.g 2500, 5000, 10000

[ ![QtySelect.png](/forum/attachment/31760) ](/forum/attachment/31760 "QtySelect.png")

Also attached are portions of the product definition - pricing and restrictions.

- [ ![QtySelect.png](/forum/attachment/31760) ](/forum/attachment/31760 "QtySelect.png") [ ](/forum/attachment/31760?download=1 "QtySelect.png")
- [ ![Pricing.png](/forum/attachment/31761) ](/forum/attachment/31761 "Pricing.png") [ ](/forum/attachment/31761?download=1 "Pricing.png")
- [ ![Restrictions.png](/forum/attachment/31762) ](/forum/attachment/31762 "Restrictions.png") [ ](/forum/attachment/31762?download=1 "Restrictions.png")

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

10 years 5 months ago [\#241673](#241673) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241673 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

In your case, there is the same price for different quantities, so this is not correct.
If you remove the prices for "200" and "150" quantities all the problems will be solved.

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

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

Less More

- Posts: 113
- Thank you received: 18
-
-

10 years 5 months ago [\#241707](#241707) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  Replied by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241707 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

I'm not clear what is meant by "this is not correct".
From a selling perspective, the ability to specify increments and associated unit cost is a requirement.
For printed products (business cards, brochures, flyers) for example, the quantity references the size of a print run. The run sizes (quantity) may be limited by available packaging materials or any number of factors. And the unit price often is the same between quantity breaks.

Regardless, I modified the prices slightly and the order of display is by price from highest to lowest. Though cleaner, I would still maintain that ideally the order should account for both price and quantity.

Additionally, the values presented in the combo box when "SHOW_SELECT_PRICE" don't make sense to me. In the initial screen capture provided, it doesn't include all of the quantity breaks defined. At present, I'm only seeing three out of nine defined quantity breaks as seen in this screen capture.

[ ![pricing2.png](/forum/attachment/31787) ](/forum/attachment/31787 "pricing2.png")

The screen capture is from the product page, from the listing page the user can select any multiple of the minimum quantity. It appears the user can get around the quantity breaks by modifying the quantity in the cart. Perhaps there's something else I need to do for the "SHOW_SELECT_PRICE" to work from the listing page.

I did come up with a way to present specific quantity breaks and associated price using variants - but this isn't ideal. The quantity breaks (e.g. "Run Size") are characteristics applied to the base product, each variant has a minimum and maximum quantity associated that reflects the run size. This works well enough, though the quantity is displayed twice on the product page, once from the variant selection combo box and once in the quantity selected box.

In this scenario, maintenance is cumbersome as the order of variants appears to change during maintenance. The order is correct when the product is initially displayed. Clicking on the "Save" button on the right of the variant editing screen changes the order. Clicking the product Save button above the product restores the order.

Initial display of variants:
[ ![quantity.png](/forum/attachment/31788) ](/forum/attachment/31788 "quantity.png")

Display of variants after saving a variant
[ ![Quantity2.png](/forum/attachment/31789) ](/forum/attachment/31789 "Quantity2.png")

Perhaps I'm not understanding the intent or how to use "SHOW_SELECT_PRICE", or perhaps there's a better method to control / limit the quantity breaks a customer can select, and to specify the unit cost per quantity.

- [ ![pricing2.png](/forum/attachment/31787) ](/forum/attachment/31787 "pricing2.png") [ ](/forum/attachment/31787?download=1 "pricing2.png")
- [ ![quantity.png](/forum/attachment/31788) ](/forum/attachment/31788 "quantity.png") [ ](/forum/attachment/31788?download=1 "quantity.png")
- [ ![Quantity2.png](/forum/attachment/31789) ](/forum/attachment/31789 "Quantity2.png") [ ](/forum/attachment/31789?download=1 "Quantity2.png")

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

10 years 5 months ago [\#241757](#241757) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241757 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

For the quantity selector, please edit the view "product / show_quantity" and replace the line: Code:

if(in_array($price-&gt;price_min_quantity,$pricesSet) &#124;&#124; $price-&gt;price_min_quantity &lt; $min_quantity &#124;&#124; $price-&gt;price_min_quantity &gt; $max_quantity) continue;

By: Code:

if(in_array($price-&gt;price_min_quantity,$pricesSet) &#124;&#124; $price-&gt;price_min_quantity &lt; $min_quantity) continue;

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

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 5 months ago [\#241803](#241803) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241803 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Dear Thomas, thanks for your answer.
I set the product as you said but it's not the result i wanted...

Thanks for your help

- [ ![Capture&#95;decran&#95;2016-06-02&#95;a&#95;14&#95;21&#95;38.png](/forum/attachment/31806) ](/forum/attachment/31806 "...a&#95;14&#95;21&#95;38.png") [ ](/forum/attachment/31806?download=1 "...a&#95;14&#95;21&#95;38.png")
- [ ![Capture&#95;decran&#95;2016-06-02&#95;a&#95;14&#95;21&#95;56.png](/forum/attachment/31807) ](/forum/attachment/31807 "...a&#95;14&#95;21&#95;56.png") [ ](/forum/attachment/31807?download=1 "...a&#95;14&#95;21&#95;56.png")

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

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

Less More

- Posts: 113
- Thank you received: 18
-
-

10 years 5 months ago [\#241829](#241829) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  Replied by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241829 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Rephaelr: If I understand your intent, change the "Quantity Input" in the "Display" section to:
"SHOW_SELECT_PRICE".

Yours is configured with "SHOW_SELECT" in the lower left of the first screen capture attachment.

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 5 months ago -  10 years 5 months ago [\#241805](#241805) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#241805 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hello,

Can you provide a **backend configuration** of your product price **AND** a screenshot of an product page example to see the **results**.

Awaiting news from you.

Regards.

Last edit: 10 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#242127](#242127) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242127 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

> csymmonds wrote: Rephaelr: If I understand your intent, change the "Quantity Input" in the "Display" section to:
> "SHOW\_SELECT\_PRICE".
>
> Yours is configured with "SHOW\_SELECT" in the lower left of the first screen capture attachment.

Hello, thanks for the answer. I can't find SHOW_SELECT_PRICE in the list... ![:s](/worry.gif ":s")

[ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;05&#95;33.png](/forum/attachment/31874) ](/forum/attachment/31874 "...a&#95;11&#95;05&#95;33.png")

> Philip wrote: Hello,
>
> Can you provide a backend configuration of your product price AND a screenshot of an product page example to see the results.
>
> Awaiting news from you.
>
> Regards.

Thanks for your help.
Here is the two screenshots.

[ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;03&#95;22.png](/forum/attachment/31877) ](/forum/attachment/31877 "...a&#95;11&#95;03&#95;22.png")

[ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;03&#95;48.png](/forum/attachment/31876) ](/forum/attachment/31876 "...a&#95;11&#95;03&#95;48.png")

- [ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;05&#95;33.png](/forum/attachment/31874) ](/forum/attachment/31874 "...a&#95;11&#95;05&#95;33.png") [ ](/forum/attachment/31874?download=1 "...a&#95;11&#95;05&#95;33.png")
- [ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;03&#95;48.png](/forum/attachment/31876) ](/forum/attachment/31876 "...a&#95;11&#95;03&#95;48.png") [ ](/forum/attachment/31876?download=1 "...a&#95;11&#95;03&#95;48.png")
- [ ![Capture&#95;decran&#95;2016-06-06&#95;a&#95;11&#95;03&#95;22.png](/forum/attachment/31877) ](/forum/attachment/31877 "...a&#95;11&#95;03&#95;22.png") [ ](/forum/attachment/31877?download=1 "...a&#95;11&#95;03&#95;22.png")

Last edit: 10 years 4 months ago by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ2OTEtbWluaW1hbC1xdWFudGl0eT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

10 years 4 months ago [\#242128](#242128) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242128 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

After the "show select" choice, you should have a show select price:
[ take.ms/Nk2xW](http://take.ms/Nk2xW)
That's the one that needs to be used as I explained in the beginning.
Since you don't have it, It's possible that the problem is that you're using an old version of HikaShop.
Please make sure that you're using the latest version.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago [\#242242](#242242) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242242 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

OK i've upgraded Hkashop with the latest pack.
Now I see "SHOW_SELECT_PRICE" in the list. But I still have the same quantity field.

- [ ![Capture&#95;decran&#95;2016-06-07&#95;a&#95;11&#95;31&#95;54.png](/forum/attachment/31911) ](/forum/attachment/31911 "...a&#95;11&#95;31&#95;54.png") [ ](/forum/attachment/31911?download=1 "...a&#95;11&#95;31&#95;54.png")
- [ ![Capture&#95;decran&#95;2016-06-07&#95;a&#95;11&#95;32&#95;06.png](/forum/attachment/31912) ](/forum/attachment/31912 "...a&#95;11&#95;32&#95;06.png") [ ](/forum/attachment/31912?download=1 "...a&#95;11&#95;32&#95;06.png")

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

10 years 4 months ago [\#242271](#242271) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242271 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

Could you give us a backend access to your website and a link to the concerned product ?

You can send these informations through our contact form, don't forget to give the link of that topic in your message.
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago [\#242543](#242543) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242543 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Thanks, i've just send you the mail.

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

10 years 4 months ago [\#242559](#242559) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242559 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

Problem solved, we had a fix on our side but not yet in the latest release.
I have edited the view "product / show_quantity" to solve that issue until we release the next version.

The following user(s) said Thank You: [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#242865](#242865) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#242865 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Thanks a lot ![:-)](/media/kunena/emoticons/3.png ":-)")
Have a nice day.

Last edit: 10 years 4 months ago by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile").

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#243641](#243641) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#243641 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hello,
excuse me ton insist but there's the same problem on the checkout page.
Thanks in advance.

PS: I've a strange error after the checkout : 0 - Invalid address:
I've searched but the only solution suggested is this [ www.hikashop.com/forum/checkout/883603-4...-process.html#235445](https://www.hikashop.com/forum/checkout/883603-404-error-on-step-3-of-checkout-process.html#235445)
But already done in the latest hikashop version.

- [ ![Capture&#95;decran&#95;2016-06-21&#95;a&#95;16&#95;31&#95;45.png](/forum/attachment/32224) ](/forum/attachment/32224 "...a&#95;16&#95;31&#95;45.png") [ ](/forum/attachment/32224?download=1 "...a&#95;16&#95;31&#95;45.png")

Last edit: 10 years 4 months ago by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile").

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

10 years 4 months ago [\#243697](#243697) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#243697 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

Please replace the content of the view "checkout / cart" by this one: Code:

&lt;?php $this-&gt;setLayout('listing_price'); $this-&gt;params-&gt;set('show_quantity_field', 0); $comp_description = $this-&gt;params-&gt;get('comp_description'); if(empty($comp_description)){ $this-&gt;params-&gt;set('comp_description',JText::_('CART_EMPTY')); } if($this-&gt;paymentType == 'no'){ $this-&gt;nextButton = false; } $app = JFactory::getApplication(); ?&gt; &lt;div id="hikashop_checkout_cart" class="hikashop_checkout_cart"&gt; &lt;?php if(empty($this-&gt;rows)) { echo $this-&gt;params-&gt;get('comp_description'); } else { if($this-&gt;config-&gt;get('print_cart',0)&amp;&amp;JRequest::getVar('tmpl','')!='component'){ ?&gt; &lt;div class="hikashop_checkout_cart_print_link"&gt; &lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('checkout&amp;task=printcart',true); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png" alt="&lt;?php echo JText::_('HIKA_PRINT');?&gt;"/&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } foreach($this-&gt;rows as $i =&gt; $row) { if(empty($row-&gt;cart_product_quantity)) continue; if(!empty($row-&gt;product_min_per_order)) { if($row-&gt;product_min_per_order&gt;$row-&gt;cart_product_quantity) { $this-&gt;nextButton = false; $app-&gt;enqueueMessage(JText::sprintf('YOU_NEED_TO_ORDER_AT_LEAST_X_X',$row-&gt;product_min_per_order,$row-&gt;product_name)); } } } $row_count = 4; ?&gt; &lt;br/&gt; &lt;table class="table table-striped table-hover" width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ $row_count++;?&gt; &lt;th id="hikashop_cart_product_image_title" class="hikashop_cart_product_image_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;th id="hikashop_cart_product_name_title" class="hikashop_cart_product_name_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title"&gt; &lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_total_title" class="hikashop_cart_product_total_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt; &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $k = 0; $group = $this-&gt;config-&gt;get('group_options',0); $defaultParams = $this-&gt;config-&gt;get('default_params'); $productClass = hikashop_get('class.product'); $quantityDisplayType = hikashop_get('type.quantitydisplay'); foreach($this-&gt;rows as $i =&gt; $row){ if(empty($row-&gt;cart_product_quantity)) continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $productClass-&gt;addAlias($row); ?&gt; &lt;tr class="row&lt;?php echo $k; ?&gt;"&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ ?&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt;" class="hikashop_cart_product_image_value"&gt; &lt;?php $width = $this-&gt;config-&gt;get('thumbnail_x'); $height = $this-&gt;config-&gt;get('thumbnail_y'); if(!empty($row-&gt;images)){ $image = reset($row-&gt;images); $this-&gt;image-&gt;checkSize($width,$height,$image); }else{ $image = null; } if($image &amp;&amp; !$this-&gt;config-&gt;get('thumbnail')){ echo '&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" /&gt;'; }else{ ?&gt; &lt;div class="hikashop_cart_product_image_thumb" &gt; &lt;?php $image_options = array('default' =&gt; true,'forcesize'=&gt;$this-&gt;config-&gt;get('image_force_size',true),'scale'=&gt;$this-&gt;config-&gt;get('image_scale_mode','inside')); $img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { echo '&lt;img class="hikashop_product_checkout_cart_image" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; } ?&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;" class="hikashop_cart_product_name_value"&gt; &lt;p class="hikashop_cart_product_name"&gt; &lt;?php global $Itemid; $checkout_itemid = $this-&gt;config-&gt;get('checkout_itemid'); if(!empty($checkout_itemid )){ $Itemid = $checkout_itemid ; } $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt;&lt;a class="hikashop_no_print" href="&lt;?php echo hikashop_contentLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.'&amp;name='.$row-&gt;alias.$url_itemid,$row);?&gt;" &gt;&lt;?php } ?&gt; &lt;?php echo $row-&gt;product_name; ?&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span class="hikashop_product_code_checkout"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt;&lt;/a&gt;&lt;?php } ?&gt; &lt;?php if($group){ $display_item_price=false; foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(!empty($optionElement-&gt;prices[0])){ $display_item_price = true; } } if($display_item_price){ $this-&gt;row=&amp;$row; $this-&gt;unit=true; echo ' &lt;span class="hikashop_product_base_price"&gt;'.strip_tags($this-&gt;loadTemplate()).'&lt;/span&gt;'; } } ?&gt; &lt;/p&gt; &lt;?php ob_start(); if(hikashop_level(2) &amp;&amp; !empty($this-&gt;extraFields['item'])){ foreach($this-&gt;extraFields['item'] as $field){ $namekey = $field-&gt;field_namekey; if(empty($row-&gt;$namekey) &#124;&#124; !strlen($row-&gt;$namekey)) continue; echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/p&gt;'; } } $input=''; if($group){ foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(!empty($optionElement-&gt;prices[0])){ if(!isset($row-&gt;prices[0])){ $row-&gt;prices[0] = new stdClass(); $row-&gt;prices[0]-&gt;price_value=0; $row-&gt;prices[0]-&gt;price_value_with_tax=0; $row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency(); } foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value){ if(is_object($value)){ foreach(get_object_vars($value) as $key2 =&gt; $var2){ if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 +=@$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2; } }else{ if(strpos($key,'price_value')!==false) $row-&gt;prices[0]-&gt;$key+=@$optionElement-&gt;prices[0]-&gt;$key; } } } if(empty($optionElement-&gt;variant_name)){ if(empty($optionElement-&gt;characteristics_text)){ $text = $optionElement-&gt;product_name; }else{ $text = $optionElement-&gt;characteristics_text; } }else{ $text = $optionElement-&gt;variant_name; } echo '&lt;p class="hikashop_cart_option_name"&gt;'.$text; if(@$optionElement-&gt;prices[0]-&gt;price_value_with_tax&gt;0){ echo ' ( + '; $this-&gt;row=&amp;$optionElement; $this-&gt;unit=true; echo strip_tags($this-&gt;loadTemplate()).' )'; } echo '&lt;/p&gt;'; $input .='document.getElementById(\'product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;'; if(empty($this-&gt;disable_modifications)) echo '&lt;input type="hidden" id="product_option_'.$optionElement-&gt;cart_product_id.'" name="item['.$optionElement-&gt;cart_product_id.']" value="'.$row-&gt;cart_product_quantity.'"/&gt;'; } } $html = ob_get_clean(); if(!empty($html)){ echo '&lt;div class="hikashop_cart_product_custom_item_fields"&gt;'.$html.'&lt;/div&gt;'; } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;" class="hikashop_cart_product_price_value"&gt; &lt;?php $this-&gt;row =&amp; $row; $this-&gt;unit = true; echo $this-&gt;loadTemplate(); ?&gt; &lt;?php if(HIKASHOP_RESPONSIVE){ ?&gt;&lt;span class="visible-phone"&gt;&lt;?php echo JText::_('PER_UNIT'); ?&gt;&lt;/span&gt;&lt;?php } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt;" class="hikashop_cart_product_quantity_value"&gt; &lt;?php if(empty($this-&gt;disable_modifications)){ if($row-&gt;product_parent_id != 0 &amp;&amp; isset($row-&gt;main_product_quantity_layout)){ $row-&gt;product_quantity_layout = $row-&gt;main_product_quantity_layout; } if($row-&gt;product_quantity_layout == 'show_select' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select')){ $min_quantity = (@$this-&gt;row-&gt;main-&gt;product_min_per_order) ? (int)@$this-&gt;row-&gt;main-&gt;product_min_per_order : (int)@$this-&gt;row-&gt;product_min_per_order; $max_quantity = (@$this-&gt;row-&gt;main-&gt;product_max_per_order) ? (int)@$this-&gt;row-&gt;main-&gt;product_max_per_order : (int)@$this-&gt;row-&gt;product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; $values = array(); if($this-&gt;params-&gt;get('show_delete',1)){ $values[] = JHTML::_('select.option', 0, '0'); } for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ $values[] = JHTML::_('select.option', $j, $j); } echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', '', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id); }else{ ?&gt; &lt;input id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt;}; return true;" /&gt; &lt;?php } ?&gt; &lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a class="hikashop_no_print" href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php if($this-&gt;params-&gt;get('show_delete',1)){ ?&gt; &lt;div class="hikashop_cart_product_quantity_delete"&gt; &lt;a class="hikashop_no_print" href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row-&gt;product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } }else{ echo $row-&gt;cart_product_quantity; } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt;" class="hikashop_cart_product_total_value"&gt; &lt;?php $this-&gt;row=&amp;$row; $this-&gt;unit=false; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php $k = 1-$k; } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')) $td = '&lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;'; else $td = '&lt;td colspan="2" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;'; $taxes = $this-&gt;currencyHelper-&gt;round($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax-$this-&gt;full_total-&gt;prices[0]-&gt;price_value,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id)); if(!empty($this-&gt;coupon) &#124;&#124; !empty($this-&gt;shipping) &#124;&#124; !empty($this-&gt;additional) &#124;&#124; bccomp($taxes,0,5)) { ?&gt; &lt;tr class="margin"&gt;&lt;?php echo $td; ?&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt; &lt;?php echo JText::_('SUBTOTAL'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_subtotal_value" data-title="&lt;?php echo JText::_('SUBTOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_subtotal"&gt; &lt;?php if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;coupon)) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_coupon_value" data-title="&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_coupon"&gt; &lt;?php if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value_without_tax*-1,@$this-&gt;coupon-&gt;discount_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value*-1,@$this-&gt;coupon-&gt;discount_currency_id); } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;shipping)) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_shipping_value" data-title="&lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_shipping"&gt; &lt;?php if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $shipping_price = null; foreach($this-&gt;shipping as $shipping) { if(!isset($shipping-&gt;shipping_price) &amp;&amp; isset($shipping-&gt;shipping_price_with_tax) ) { $shipping-&gt;shipping_price = $shipping-&gt;shipping_price_with_tax; //$shipping-&gt;shipping_price_with_tax = 0.0; } if(isset($shipping-&gt;shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($shipping-&gt;shipping_price_with_tax)) { $shipping_price += $shipping-&gt;shipping_price; } else { $shipping_price += $shipping-&gt;shipping_price_with_tax; } } } if($shipping_price !== null) { echo $this-&gt;currencyHelper-&gt;format($shipping_price, $this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;payment) &amp;&amp; $this-&gt;payment-&gt;payment_price != 0) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_PAYMENT'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_payment_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_PAYMENT'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_payment"&gt; &lt;?php if(!isset($this-&gt;payment-&gt;payment_price) &amp;&amp; isset($this-&gt;payment-&gt;payment_price_with_tax) ) { if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $this-&gt;payment-&gt;payment_price = 0.0; $this-&gt;payment-&gt;payment_price_with_tax = 0.0; } } if(isset($this-&gt;payment-&gt;payment_price)) { if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($this-&gt;payment-&gt;payment_price_with_tax) ){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;additional)) { $exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', '')); foreach($this-&gt;additional as $k =&gt; $additional) { if(in_array($additional-&gt;name, $exclude_additionnal)) continue; ?&gt; &lt;tr id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_line" &gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_title" class="hikashop_cart_additional_title hikashop_cart_title"&gt;&lt;?php echo JText::_($additional-&gt;name); ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_additional_value" data-title="&lt;?php echo JText::_($additional-&gt;name); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_additional"&gt; &lt;?php if(!empty($additional-&gt;price_value) &#124;&#124; empty($additional-&gt;value)) { if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value,$additional-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value_with_tax,$additional-&gt;price_currency_id); } } else { echo $additional-&gt;value; } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } if(bccomp($taxes,0,5)){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; isset($this-&gt;full_total-&gt;prices[0]-&gt;taxes)) { foreach($this-&gt;full_total-&gt;prices[0]-&gt;taxes as $tax) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt; &lt;?php echo $tax-&gt;tax_namekey; ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo $tax-&gt;tax_namekey; ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($tax-&gt;tax_amount,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } else { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt; &lt;?php echo JText::_('TAXES'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo Jtext::_('TAXES'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_total_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_TOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_final_total"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;?php if(empty($this-&gt;disable_modifications) &amp;&amp; $this-&gt;params-&gt;get('show_quantity')){ ?&gt; &lt;noscript&gt; &lt;input id="hikashop_checkout_cart_quantity_button" class="btn button" type="submit" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt; &lt;/noscript&gt; &lt;?php } } $config =&amp; hikashop_config(); if(hikashop_level(1) &amp;&amp; $config-&gt;get('checkout_convert_cart') &amp;&amp; $config-&gt;get('enable_wishlist') &amp;&amp; (($config-&gt;get('hide_wishlist_guest', 1) &amp;&amp; hikashop_loadUser() != null) &#124;&#124; !$config-&gt;get('hide_wishlist_guest', 1))){ $this-&gt;params-&gt;set('cart_type','wishlist'); echo $this-&gt;cart-&gt;displayButton(JText::_('CART_TO_WISHLIST'),'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;full_cart-&gt;cart_id.$url_itemid),'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;full_cart-&gt;cart_id.$url_itemid).'\';return false;'); } ?&gt; &lt;/div&gt;

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#243756](#243756) by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")  Replied by *[raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#243756 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi, thanks for your answer.

Not seeing any difference

Last edit: 10 years 4 months ago by [raphaelr@alkaonline.be](/forum/user/39505-raphaelr-alkaonline-be "View raphaelr@alkaonline.be's Profile").

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

10 years 4 months ago [\#243809](#243809) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Minimal quantity](/forum/26-product-category-display/884691-minimal-quantity#243809 "Hello,  I'd like to create a product available in different quantity and with different prices. I found the &quot;Price&quot; area and the &quot;limitiation&quot; area of the product but can't find how to set it correctly.  My product has to be available in pack of 500 , 750 or 1000 pieces and the price is different for each pack.  I set the prices in the price zone, it works fine. For the quantity I set &quot;Quantity per order&quot; on &quot;250&quot; to &quot;1000&quot; And the &quot;Quantity input&quot; on &quot;Select&quot;  The problem is that the result is a list with 250 , 500 , 750 and 1000. I want 500, 750 and 1000.  Can you please help me? Thanks.")*

Hi,

Indeed the modification were not done there too, here is a patched version of that view: Code:

&lt;?php $this-&gt;setLayout('listing_price'); $this-&gt;params-&gt;set('show_quantity_field', 0); $comp_description = $this-&gt;params-&gt;get('comp_description'); if(empty($comp_description)){ $this-&gt;params-&gt;set('comp_description',JText::_('CART_EMPTY')); } if($this-&gt;paymentType == 'no'){ $this-&gt;nextButton = false; } $app = JFactory::getApplication(); ?&gt; &lt;div id="hikashop_checkout_cart" class="hikashop_checkout_cart"&gt; &lt;?php if(empty($this-&gt;rows)) { echo $this-&gt;params-&gt;get('comp_description'); } else { if($this-&gt;config-&gt;get('print_cart',0)&amp;&amp;JRequest::getVar('tmpl','')!='component'){ ?&gt; &lt;div class="hikashop_checkout_cart_print_link"&gt; &lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('checkout&amp;task=printcart',true); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png" alt="&lt;?php echo JText::_('HIKA_PRINT');?&gt;"/&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } foreach($this-&gt;rows as $i =&gt; $row) { if(empty($row-&gt;cart_product_quantity)) continue; if(!empty($row-&gt;product_min_per_order)) { if($row-&gt;product_min_per_order&gt;$row-&gt;cart_product_quantity) { $this-&gt;nextButton = false; $app-&gt;enqueueMessage(JText::sprintf('YOU_NEED_TO_ORDER_AT_LEAST_X_X',$row-&gt;product_min_per_order,$row-&gt;product_name)); } } } $row_count = 4; ?&gt; &lt;br/&gt; &lt;table class="table table-striped table-hover" width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ $row_count++;?&gt; &lt;th id="hikashop_cart_product_image_title" class="hikashop_cart_product_image_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;th id="hikashop_cart_product_name_title" class="hikashop_cart_product_name_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title"&gt; &lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt; &lt;/th&gt; &lt;th id="hikashop_cart_product_total_title" class="hikashop_cart_product_total_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt; &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $k = 0; $group = $this-&gt;config-&gt;get('group_options',0); $defaultParams = $this-&gt;config-&gt;get('default_params'); $productClass = hikashop_get('class.product'); $quantityDisplayType = hikashop_get('type.quantitydisplay'); foreach($this-&gt;rows as $i =&gt; $row){ if(empty($row-&gt;cart_product_quantity)) continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $productClass-&gt;addAlias($row); ?&gt; &lt;tr class="row&lt;?php echo $k; ?&gt;"&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ ?&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt;" class="hikashop_cart_product_image_value"&gt; &lt;?php $width = $this-&gt;config-&gt;get('thumbnail_x'); $height = $this-&gt;config-&gt;get('thumbnail_y'); if(!empty($row-&gt;images)){ $image = reset($row-&gt;images); $this-&gt;image-&gt;checkSize($width,$height,$image); }else{ $image = null; } if($image &amp;&amp; !$this-&gt;config-&gt;get('thumbnail')){ echo '&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" /&gt;'; }else{ ?&gt; &lt;div class="hikashop_cart_product_image_thumb" &gt; &lt;?php $image_options = array('default' =&gt; true,'forcesize'=&gt;$this-&gt;config-&gt;get('image_force_size',true),'scale'=&gt;$this-&gt;config-&gt;get('image_scale_mode','inside')); $img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { echo '&lt;img class="hikashop_product_checkout_cart_image" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; } ?&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;" class="hikashop_cart_product_name_value"&gt; &lt;p class="hikashop_cart_product_name"&gt; &lt;?php global $Itemid; $checkout_itemid = $this-&gt;config-&gt;get('checkout_itemid'); if(!empty($checkout_itemid )){ $Itemid = $checkout_itemid ; } $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt;&lt;a class="hikashop_no_print" href="&lt;?php echo hikashop_contentLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.'&amp;name='.$row-&gt;alias.$url_itemid,$row);?&gt;" &gt;&lt;?php } ?&gt; &lt;?php echo $row-&gt;product_name; ?&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span class="hikashop_product_code_checkout"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt;&lt;/a&gt;&lt;?php } ?&gt; &lt;?php if($group){ $display_item_price=false; foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(!empty($optionElement-&gt;prices[0])){ $display_item_price = true; } } if($display_item_price){ $this-&gt;row=&amp;$row; $this-&gt;unit=true; echo ' &lt;span class="hikashop_product_base_price"&gt;'.strip_tags($this-&gt;loadTemplate()).'&lt;/span&gt;'; } } ?&gt; &lt;/p&gt; &lt;?php ob_start(); if(hikashop_level(2) &amp;&amp; !empty($this-&gt;extraFields['item'])){ foreach($this-&gt;extraFields['item'] as $field){ $namekey = $field-&gt;field_namekey; if(empty($row-&gt;$namekey) &#124;&#124; !strlen($row-&gt;$namekey)) continue; echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/p&gt;'; } } $input=''; if($group){ foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(!empty($optionElement-&gt;prices[0])){ if(!isset($row-&gt;prices[0])){ $row-&gt;prices[0] = new stdClass(); $row-&gt;prices[0]-&gt;price_value=0; $row-&gt;prices[0]-&gt;price_value_with_tax=0; $row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency(); } foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value){ if(is_object($value)){ foreach(get_object_vars($value) as $key2 =&gt; $var2){ if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 +=@$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2; } }else{ if(strpos($key,'price_value')!==false) $row-&gt;prices[0]-&gt;$key+=@$optionElement-&gt;prices[0]-&gt;$key; } } } if(empty($optionElement-&gt;variant_name)){ if(empty($optionElement-&gt;characteristics_text)){ $text = $optionElement-&gt;product_name; }else{ $text = $optionElement-&gt;characteristics_text; } }else{ $text = $optionElement-&gt;variant_name; } echo '&lt;p class="hikashop_cart_option_name"&gt;'.$text; if(@$optionElement-&gt;prices[0]-&gt;price_value_with_tax&gt;0){ echo ' ( + '; $this-&gt;row=&amp;$optionElement; $this-&gt;unit=true; echo strip_tags($this-&gt;loadTemplate()).' )'; } echo '&lt;/p&gt;'; $input .='document.getElementById(\'product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;'; if(empty($this-&gt;disable_modifications)) echo '&lt;input type="hidden" id="product_option_'.$optionElement-&gt;cart_product_id.'" name="item['.$optionElement-&gt;cart_product_id.']" value="'.$row-&gt;cart_product_quantity.'"/&gt;'; } } $html = ob_get_clean(); if(!empty($html)){ echo '&lt;div class="hikashop_cart_product_custom_item_fields"&gt;'.$html.'&lt;/div&gt;'; } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;" class="hikashop_cart_product_price_value"&gt; &lt;?php $this-&gt;row =&amp; $row; $this-&gt;unit = true; echo $this-&gt;loadTemplate(); ?&gt; &lt;?php if(HIKASHOP_RESPONSIVE){ ?&gt;&lt;span class="visible-phone"&gt;&lt;?php echo JText::_('PER_UNIT'); ?&gt;&lt;/span&gt;&lt;?php } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt;" class="hikashop_cart_product_quantity_value"&gt; &lt;?php if(empty($this-&gt;disable_modifications)){ if($row-&gt;product_parent_id != 0 &amp;&amp; isset($row-&gt;main_product_quantity_layout)){ $row-&gt;product_quantity_layout = $row-&gt;main_product_quantity_layout; } $min_quantity = $this-&gt;row-&gt;product_min_per_order; $max_quantity = $this-&gt;row-&gt;product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; if($row-&gt;product_quantity_layout == 'show_select' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select')){ $values = array(); if($this-&gt;params-&gt;get('show_delete',1)){ $values[] = JHTML::_('select.option', 0, '0'); } for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ $values[] = JHTML::_('select.option', $j, $j); } echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', '', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id); }elseif($row-&gt;product_quantity_layout == 'show_select_price' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select_price')){ $pricesSet = array(); $values = array(); foreach($row-&gt;prices as $price){ if($price-&gt;price_min_quantity == 0) $price-&gt;price_min_quantity = 1; if(in_array($price-&gt;price_min_quantity, $pricesSet) &#124;&#124; $price-&gt;price_min_quantity &lt; $min_quantity) continue; $pricesSet[] = $price-&gt;price_min_quantity; $values[] = JHTML::_('select.option', $price-&gt;price_min_quantity, $price-&gt;price_min_quantity); } if(empty($values)){ for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ $values[] = JHTML::_('select.option', $price-&gt;price_min_quantity, $price-&gt;price_min_quantity); } } echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', '', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id); }else{ ?&gt; &lt;input id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt;}; return true;" /&gt; &lt;?php } ?&gt; &lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a class="hikashop_no_print" href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php if($this-&gt;params-&gt;get('show_delete',1)){ ?&gt; &lt;div class="hikashop_cart_product_quantity_delete"&gt; &lt;a class="hikashop_no_print" href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row-&gt;product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } }else{ echo $row-&gt;cart_product_quantity; } ?&gt; &lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt;" class="hikashop_cart_product_total_value"&gt; &lt;?php $this-&gt;row=&amp;$row; $this-&gt;unit=false; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php $k = 1-$k; } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_image')) $td = '&lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;'; else $td = '&lt;td colspan="2" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;'; $taxes = round($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax-$this-&gt;full_total-&gt;prices[0]-&gt;price_value,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id)); if(!empty($this-&gt;coupon) &#124;&#124; !empty($this-&gt;shipping) &#124;&#124; !empty($this-&gt;additional) &#124;&#124; bccomp($taxes,0,5)) { ?&gt; &lt;tr class="margin"&gt;&lt;?php echo $td; ?&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt; &lt;?php echo JText::_('SUBTOTAL'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_subtotal_value" data-title="&lt;?php echo JText::_('SUBTOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_subtotal"&gt; &lt;?php if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;coupon)) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_coupon_value" data-title="&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_coupon"&gt; &lt;?php if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value_without_tax*-1,@$this-&gt;coupon-&gt;discount_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value*-1,@$this-&gt;coupon-&gt;discount_currency_id); } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;shipping)) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_shipping_value" data-title="&lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_shipping"&gt; &lt;?php if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $shipping_price = null; foreach($this-&gt;shipping as $shipping) { if(!isset($shipping-&gt;shipping_price) &amp;&amp; isset($shipping-&gt;shipping_price_with_tax) ) { $shipping-&gt;shipping_price = $shipping-&gt;shipping_price_with_tax; //$shipping-&gt;shipping_price_with_tax = 0.0; } if(isset($shipping-&gt;shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($shipping-&gt;shipping_price_with_tax)) { $shipping_price += $shipping-&gt;shipping_price; } else { $shipping_price += $shipping-&gt;shipping_price_with_tax; } } } if($shipping_price !== null) { echo $this-&gt;currencyHelper-&gt;format($shipping_price, $this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;payment) &amp;&amp; $this-&gt;payment-&gt;payment_price != 0) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_PAYMENT'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_payment_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_PAYMENT'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_payment"&gt; &lt;?php if(!isset($this-&gt;payment-&gt;payment_price) &amp;&amp; isset($this-&gt;payment-&gt;payment_price_with_tax) ) { if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $this-&gt;payment-&gt;payment_price = 0.0; $this-&gt;payment-&gt;payment_price_with_tax = 0.0; } } if(isset($this-&gt;payment-&gt;payment_price)) { if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($this-&gt;payment-&gt;payment_price_with_tax) ){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;additional)) { $exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', '')); foreach($this-&gt;additional as $k =&gt; $additional) { if(in_array($additional-&gt;name, $exclude_additionnal)) continue; ?&gt; &lt;tr id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_line" &gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_title" class="hikashop_cart_additional_title hikashop_cart_title"&gt;&lt;?php echo JText::_($additional-&gt;name); ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_additional_value" data-title="&lt;?php echo JText::_($additional-&gt;name); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_additional"&gt; &lt;?php if(!empty($additional-&gt;price_value) &#124;&#124; empty($additional-&gt;value)) { if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value,$additional-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value_with_tax,$additional-&gt;price_currency_id); } } else { echo $additional-&gt;value; } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } if(bccomp($taxes,0,5)){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; isset($this-&gt;full_total-&gt;prices[0]-&gt;taxes)) { foreach($this-&gt;full_total-&gt;prices[0]-&gt;taxes as $tax) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt; &lt;?php echo $tax-&gt;tax_namekey; ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo $tax-&gt;tax_namekey; ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($tax-&gt;tax_amount,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } else { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt; &lt;?php echo JText::_('TAXES'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo Jtext::_('TAXES'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_total_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_TOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_final_total"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;?php if(empty($this-&gt;disable_modifications) &amp;&amp; $this-&gt;params-&gt;get('show_quantity')){ ?&gt; &lt;noscript&gt; &lt;input id="hikashop_checkout_cart_quantity_button" class="btn button" type="submit" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt; &lt;/noscript&gt; &lt;?php } } $config =&amp; hikashop_config(); if(hikashop_level(1) &amp;&amp; $config-&gt;get('checkout_convert_cart') &amp;&amp; $config-&gt;get('enable_wishlist') &amp;&amp; (($config-&gt;get('hide_wishlist_guest', 1) &amp;&amp; hikashop_loadUser() != null) &#124;&#124; !$config-&gt;get('hide_wishlist_guest', 1))){ $this-&gt;params-&gt;set('cart_type','wishlist'); echo $this-&gt;cart-&gt;displayButton(JText::_('CART_TO_WISHLIST'),'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;full_cart-&gt;cart_id.$url_itemid),'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;full_cart-&gt;cart_id.$url_itemid).'\';return false;'); } ?&gt; &lt;/div&gt;

And here the version for the view "product / cart" corresponding to the cart module: Code:

&lt;?php if($this-&gt;cart_type == 'cart') { $convertText = JText::_('CART_TO_WISHLIST'); $displayText = JText::_('DISPLAY_THE_CART'); $displayAllText = JText::_('DISPLAY_THE_CARTS'); $emptyText = JText::_('CART_EMPTY'); } else { $convertText = JText::_('WISHLIST_TO_CART'); $displayText = JText::_('DISPLAY_THE_WISHLIST'); $displayAllText = JText::_('DISPLAY_THE_WISHLISTS'); $emptyText = JText::_('WISHLIST_EMPTY'); } // Initiate var from HikaShop backend options : $hidecart = $this-&gt;params-&gt;get('hide_cart'); $desc = trim($this-&gt;params-&gt;get('msg') ); if(empty($desc) &amp;&amp; $desc != '0') $desc = $emptyText; // Hide empty cart =&gt; default empty cart message : if ($hidecart == '0' &#124;&#124; !isset($hidecart) ) $desc = $emptyText; // Hide empty Cart =&gt; Hide cart : if ($hidecart == '2') { $desc = ""; } if(empty($this-&gt;rows)) { if(!empty($desc) &#124;&#124; $desc == '0') { echo $this-&gt;notice_html; ?&gt; &lt;div id="hikashop_cart" class="hikashop_cart"&gt;&lt;?php echo $desc; ?&gt;&lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php } if (JRequest::getWord('tmpl', '') == 'component') { if(!headers_sent()) header('Content-Type: text/css; charset=utf-8'); exit; } return; } $this-&gt;setLayout('listing_price'); $this-&gt;params-&gt;set('show_quantity_field', 0); ?&gt; &lt;div id="hikashop_cart" class="hikashop_cart"&gt; &lt;?php if($this-&gt;config-&gt;get('print_cart', 0) &amp;&amp; JRequest::getVar('tmpl', '') != 'component' &amp;&amp; $this-&gt;cart_type == 'cart') { ?&gt; &lt;div class="hikashop_checkout_cart_print_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'print.png" alt="'.JText::_('HIKA_PRINT').'" /&gt;', 'HIKA_PRINT', hikashop_completeLink('checkout&amp;task=printcart',true), 'hikashop_print_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;?php } else if($this-&gt;params-&gt;get('from','display') != 'module') { ?&gt; &lt;div class="hikashop_product_cart_links"&gt; &lt;div class="hikashop_product_cart_show_carts_link"&gt;&lt;?php echo $this-&gt;cartHelper-&gt;displayButton($displayAllText, 'cart', $this-&gt;params, hikashop_completeLink('cart&amp;task=showcarts&amp;cart_type='.$this-&gt;cart_type . $this-&gt;cart_itemid), ''); ?&gt; &lt;/div&gt; &lt;div class="hikashop_product_cart_mail_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'go.png" alt="'.JText::_('HIKA_EMAIL').'" /&gt;', 'HIKA_EMAIL', hikashop_completeLink('product&amp;task=sendcart',true), 'hikashop_email_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;div class="hikashop_product_cart_print_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'print.png" alt="'.JText::_('HIKA_PRINT').'" /&gt;', 'HIKA_PRINT', hikashop_completeLink('product&amp;task=printcart',true), 'hikashop_print_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php } echo $this-&gt;notice_html; $row_count = 0; if($this-&gt;params-&gt;get('small_cart')) { $this-&gt;row = $this-&gt;total; if($this-&gt;params-&gt;get('show_cart_quantity', 1)) { $qty = 0; $group = $this-&gt;config-&gt;get('group_options', 0); foreach($this-&gt;rows as $i =&gt; $row) { if(empty($row-&gt;cart_product_quantity) &amp;&amp; $this-&gt;cart_type == 'cart') continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $qty += $row-&gt;cart_product_quantity; } if($qty == 1 &amp;&amp; JText::_('X_ITEM_FOR_X') != 'X_ITEM_FOR_X') { $text = JText::sprintf('X_ITEM_FOR_X', $qty, $this-&gt;loadTemplate()); } else { $text = JText::sprintf('X_ITEMS_FOR_X', $qty, $this-&gt;loadTemplate()); } } else { $text = JText::sprintf('TOTAL_IN_CART_X', $this-&gt;loadTemplate()); } if($this-&gt;cart_type == 'cart') { ?&gt; &lt;a class="hikashop_small_cart_checkout_link" href="&lt;?php echo $this-&gt;url_checkout; ?&gt;"&gt; &lt;span class="hikashop_small_cart_total_title"&gt;&lt;?php echo $text; ?&gt;&lt;/span&gt; &lt;/a&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_delete',1)) { $delete = hikashop_completeLink('product&amp;task=cleancart'); $delete .= (strpos($delete, '?') ? '&amp;amp;' : '?'); ?&gt; &lt;a class="hikashop_small_cart_clean_link" onclick="window.location='&lt;?php echo $delete.'return_url='; ?&gt;'+window.btoa(window.location); return false;" href="#" &gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="clean cart" /&gt; &lt;/a&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_proceed', 1) &amp;&amp; $this-&gt;cart_type == 'cart' &amp;&amp; $this-&gt;params-&gt;get('from','display') == 'module') { echo $this-&gt;cartHelper-&gt;displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this-&gt;params,$this-&gt;url_checkout,'this.disabled=true; window.location=\''.$this-&gt;url_checkout.'\';return false;'); } } else { ?&gt; &lt;a class="hikashop_small_cart_checkout_link" href="&lt;?php echo hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$this-&gt;element-&gt;cart_id.'&amp;cart_type='.$this-&gt;cart_type.$this-&gt;cart_itemid); ?&gt;"&gt; &lt;span class="hikashop_small_cart_total_title"&gt;&lt;?php echo $text; ?&gt;&lt;/span&gt; &lt;/a&gt; &lt;?php } } else { $form = 'hikashop_' . $this-&gt;cart_type . '_form'; ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'.$this-&gt;url_itemid, false, true); ?&gt;" method="post" name="&lt;?php echo $form;?&gt;"&gt; &lt;table width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;?php if($this-&gt;params-&gt;get('image_in_cart', 0)) { $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_image_title hikashop_cart_title"&gt;&lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt;&lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_product_name', 1)) { $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_name_title hikashop_cart_title"&gt;&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;&lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_quantity', 1)) { $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_quantity_title hikashop_cart_title"&gt;&lt;?php echo JText::_('CART_PRODUCT_QUANTITY'); ?&gt;&lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price', 1)) { $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_price_title hikashop_cart_title"&gt;&lt;?php echo JText::_('CART_PRODUCT_PRICE'); ?&gt;&lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_delete', 1)) { $row_count++; ?&gt; &lt;th class="hikashop_cart_title"&gt;&lt;/th&gt; &lt;?php } if($row_count &lt; 1) { ?&gt; &lt;th&gt;&lt;/th&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;?php if($this-&gt;params-&gt;get('show_price', 1) &amp;&amp; $this-&gt;cart_type == 'cart') { ?&gt; &lt;tfoot&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count; ?&gt;"&gt; &lt;hr /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php if($this-&gt;params-&gt;get('show_coupon', 0) &amp;&amp; !empty($this-&gt;element-&gt;coupon)) { ?&gt; &lt;tr&gt; &lt;?php switch($row_count) { case 0: case 1: ?&gt; &lt;td class="hikashop_cart_module_coupon_value"&gt;&lt;?php if(!$this-&gt;params-&gt;get('price_with_tax')) echo $this-&gt;currencyClass-&gt;format(@$this-&gt;element-&gt;coupon-&gt;discount_value_without_tax * -1, @$this-&gt;element-&gt;coupon-&gt;discount_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$this-&gt;element-&gt;coupon-&gt;discount_value * -1, @$this-&gt;element-&gt;coupon-&gt;discount_currency_id); ?&gt;&lt;/td&gt; &lt;?php break; default: $colspan = $row_count - 1; if($this-&gt;params-&gt;get('show_cart_delete', 1)) $colspan--; if($colspan &gt; 0) { ?&gt; &lt;td class="hikashop_cart_module_coupon_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_coupon_value"&gt;&lt;?php if(!$this-&gt;params-&gt;get('price_with_tax')) echo $this-&gt;currencyClass-&gt;format(@$this-&gt;element-&gt;coupon-&gt;discount_value_without_tax * -1, @$this-&gt;element-&gt;coupon-&gt;discount_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$this-&gt;element-&gt;coupon-&gt;discount_value * -1, @$this-&gt;element-&gt;coupon-&gt;discount_currency_id); ?&gt;&lt;/td&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_delete', 1)) { ?&gt; &lt;td&gt;&lt;/td&gt; &lt;?php } break; } ?&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_shipping', 0) &amp;&amp; !empty($this-&gt;element-&gt;shipping)) { $shipping_price = null; foreach($this-&gt;element-&gt;shipping as $shipping) { if(!isset($shipping-&gt;shipping_price) &amp;&amp; isset($shipping-&gt;shipping_price_with_tax) ) { $shipping-&gt;shipping_price = $shipping-&gt;shipping_price_with_tax; } if(isset($shipping-&gt;shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(!$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($shipping-&gt;shipping_price_with_tax)) { $shipping_price += $shipping-&gt;shipping_price; } else { $shipping_price += $shipping-&gt;shipping_price_with_tax; } } } if($shipping_price !== null) { $shipping_price = $this-&gt;currencyClass-&gt;format($shipping_price, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } if($shipping_price) { ?&gt; &lt;tr&gt; &lt;?php switch($row_count) { case 0: case 1: ?&gt; &lt;td class="hikashop_cart_module_shipping_value"&gt;&lt;?php echo $shipping_price; ?&gt;&lt;/td&gt; &lt;?php break; default: $colspan = $row_count - 1; if($this-&gt;params-&gt;get('show_cart_delete', 1)) $colspan--; if($colspan &gt; 0) { ?&gt; &lt;td class="hikashop_cart_module_shipping_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt;&lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_shipping_value"&gt;&lt;?php echo $shipping_price; ?&gt;&lt;/td&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_delete', 1)) { ?&gt; &lt;td&gt; &lt;/td&gt; &lt;?php } break; } ?&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;tr&gt; &lt;?php switch($row_count) { case 0: case 1: ?&gt; &lt;td class="hikashop_cart_module_product_total_value"&gt;&lt;?php $this-&gt;row = $this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt;&lt;/td&gt; &lt;?php break; default: $colspan = $row_count - 1; if($this-&gt;params-&gt;get('show_cart_delete', 1)) $colspan--; if($colspan &gt; 0) { ?&gt; &lt;td class="hikashop_cart_module_product_total_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt;&lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_product_total_value"&gt;&lt;?php $this-&gt;row = $this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt;&lt;/td&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_delete', 1)) { ?&gt; &lt;td&gt; &lt;/td&gt; &lt;?php } break; } ?&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;?php } ?&gt; &lt;tbody&gt; &lt;?php // Init that variable before the listing $this-&gt;cart_product_price = true; // Get settings from the config $group = $this-&gt;config-&gt;get('group_options',0); $defaultParams = $this-&gt;config-&gt;get('default_params'); $image_height = $this-&gt;config-&gt;get('thumbnail_y'); $image_width = $this-&gt;config-&gt;get('thumbnail_x'); $image_options = array( 'default' =&gt; true, 'forcesize' =&gt; $this-&gt;config-&gt;get('image_force_size',true), 'scale' =&gt; $this-&gt;config-&gt;get('image_scale_mode','inside') ); $k = 0; foreach($this-&gt;rows as $i =&gt; $row) { if(empty($row-&gt;cart_product_quantity) &#124;&#124; @$row-&gt;hide == 1) continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $this-&gt;productClass-&gt;addAlias($row); $input = ''; ?&gt; &lt;tr class="row&lt;?php echo $k; ?&gt;"&gt; &lt;?php if(@$this-&gt;params-&gt;get('image_in_cart')) { ?&gt; &lt;td class="hikashop_cart_module_product_image hikashop_cart_value" style="vertical-align:middle !important; text-align:center;"&gt; &lt;?php $img = $this-&gt;image-&gt;getThumbnail(@$row-&gt;images[0]-&gt;file_path, array('width' =&gt; $image_width, 'height' =&gt; $image_height), $image_options); if($img-&gt;success) echo '&lt;img class="hikashop_product_cart_image" title="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_description).'" alt="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; ?&gt; &lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_product_name', 1)) { ?&gt; &lt;td class="hikashop_cart_module_product_name_value hikashop_cart_value"&gt; &lt;?php if(@$defaultParams['link_to_product_page']) { ?&gt; &lt;a href="&lt;?php echo hikashop_contentLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.'&amp;name='.$row-&gt;alias.$this-&gt;url_itemid, $row);?&gt;" &gt;&lt;?php } ?&gt; &lt;?php echo $row-&gt;product_name; ?&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt;&lt;span class="hikashop_product_code_cart"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;&lt;?php } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']) { ?&gt;&lt;/a&gt;&lt;?php } ?&gt; &lt;?php ob_start(); if(hikashop_level(2) &amp;&amp; !empty($this-&gt;itemFields)) { foreach($this-&gt;itemFields as $field) { $namekey = $field-&gt;field_namekey; if(!empty($row-&gt;$namekey) &amp;&amp; strlen($row-&gt;$namekey)) { echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;' . $this-&gt;fieldsClass-&gt;getFieldName($field) . ': ' . $this-&gt;fieldsClass-&gt;show($field, $row-&gt;$namekey) . '&lt;/p&gt;'; } } } if($group) { foreach($this-&gt;rows as $j =&gt; $optionElement) { if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(empty($optionElement-&gt;variant_name)){ if(empty($optionElement-&gt;characteristics_text)){ $text = $optionElement-&gt;product_name; }else{ $text = $optionElement-&gt;characteristics_text; } }else{ $text = $optionElement-&gt;variant_name; } echo '&lt;p class="hikashop_cart_option_name"&gt;'. $text.'&lt;/p&gt;'; $input .='document.getElementById(\'cart_product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;'; echo '&lt;input type="hidden" id="cart_product_option_'.$optionElement-&gt;cart_product_id.'" name="item['.$optionElement-&gt;cart_product_id.'][cart_product_quantity]" value="'.$row-&gt;cart_product_quantity.'"/&gt;'; } } $html = ob_get_clean(); if(!empty($html)) { echo '&lt;p class="hikashop_cart_product_custom_item_fields"&gt;'.$html.'&lt;/p&gt;'; } ?&gt; &lt;/td&gt; &lt;?php } if($group) { foreach($this-&gt;rows as $j =&gt; $optionElement) { if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(empty($optionElement-&gt;prices[0])) continue; if(!isset($row-&gt;prices[0])) { $row-&gt;prices[0]-&gt;price_value = 0; $row-&gt;prices[0]-&gt;price_value_with_tax = 0; $row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency(); } foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value) { if(strpos($key, 'price_value') === false) continue; if(is_object($value)) { foreach(get_object_vars($value) as $key2 =&gt; $var2) { // if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 += @$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2; } } else { $row-&gt;prices[0]-&gt;$key += @$optionElement-&gt;prices[0]-&gt;$key; } } } } if($this-&gt;params-&gt;get('show_cart_quantity', 1)) { ?&gt; &lt;td class="hikashop_cart_module_product_quantity_value hikashop_cart_value"&gt; &lt;?php if(empty($session)) $session = new stdClass(); $session-&gt;cart_id = $this-&gt;app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$this-&gt;cart_type.'_id', 0, 'int' ); if($row-&gt;product_parent_id != 0 &amp;&amp; isset($row-&gt;main_product_quantity_layout)) $row-&gt;product_quantity_layout = $row-&gt;main_product_quantity_layout; // TODO - WTF if($this-&gt;element-&gt;cart_id == $session-&gt;cart_id &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module') { if($row-&gt;product_quantity_layout == 'show_select' &#124;&#124; (empty($this-&gt;row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select')) { $min_quantity = $row-&gt;product_min_per_order; $max_quantity = $row-&gt;product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; // TODO : CLEAN ?&gt; &lt;select id="hikashop_wishlist_quantity_select_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;" onchange="var qty_field = document.getElementById('hikashop_wishlist_quantity_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;'); qty_field.value = this.value; if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;"&gt; &lt;?php for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity) { $selected = ''; if($j == $row-&gt;cart_product_quantity) $selected = 'selected="selected"'; echo '&lt;option value="'.$j.'" '.$selected.'&gt;'.$j.'&lt;/option&gt;'; } ?&gt; &lt;/select&gt; &lt;input id="hikashop_wishlist_quantity_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;" type="hidden" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;"/&gt; &lt;?php }elseif($row-&gt;product_quantity_layout == 'show_select_price' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select_price')){ ?&gt; &lt;select id="hikashop_cart_quantity_select_&lt;?php echo $i; ?&gt;"&gt; &lt;?php $pricesSet = array(); foreach($row-&gt;prices as $price){ if($price-&gt;price_min_quantity == 0) $price-&gt;price_min_quantity = 1; if(in_array($price-&gt;price_min_quantity, $pricesSet) &#124;&#124; $price-&gt;price_min_quantity &lt; $min_quantity) continue; $pricesSet[] = $price-&gt;price_min_quantity; echo '&lt;option value="'.$price-&gt;price_min_quantity.'"&gt;'.$price-&gt;price_min_quantity.'&lt;/option&gt;'; } if(empty($pricesSet)){ for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ echo '&lt;option value="'.$j.'"&gt;'.$j.'&lt;/option&gt;'; } } ?&gt; &lt;/select&gt; &lt;?php } else { ?&gt; &lt;input id="hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt; &lt;?php } ?&gt; &lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } else { if($row-&gt;product_quantity_layout == 'show_select' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select')) { $min_quantity = $row-&gt;product_min_per_order; $max_quantity = $row-&gt;product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; // TODO : CLEAN ?&gt; &lt;select id="hikashop_cart_quantity_select_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;" class="tochosen" onchange="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;'); qty_field.value = this.value; if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;"&gt; &lt;?php for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ $selected = ''; if($j == $row-&gt;cart_product_quantity) $selected = 'selected="selected"'; echo '&lt;option value="'.$j.'" '.$selected.'&gt;'.$j.'&lt;/option&gt;'; } ?&gt; &lt;/select&gt; &lt;input id="hikashop_cart_quantity_&lt;?php echo $this-&gt;params-&gt;get('id','0').'_'.$row-&gt;cart_product_id;?&gt;" type="hidden" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" /&gt; &lt;?php }elseif($row-&gt;product_quantity_layout == 'show_select_price' &#124;&#124; (empty($row-&gt;product_quantity_layout) &amp;&amp; $this-&gt;config-&gt;get('product_quantity_display', 'show_default') == 'show_select_price')){ ?&gt; &lt;select id="hikashop_cart_quantity_select_&lt;?php echo $i; ?&gt;"&gt; &lt;?php $pricesSet = array(); foreach($row-&gt;prices as $price){ if($price-&gt;price_min_quantity == 0) $price-&gt;price_min_quantity = 1; if(in_array($price-&gt;price_min_quantity, $pricesSet) &#124;&#124; $price-&gt;price_min_quantity &lt; $min_quantity) continue; $pricesSet[] = $price-&gt;price_min_quantity; echo '&lt;option value="'.$price-&gt;price_min_quantity.'"&gt;'.$price-&gt;price_min_quantity.'&lt;/option&gt;'; } if(empty($pricesSet)){ for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ echo '&lt;option value="'.$j.'"&gt;'.$j.'&lt;/option&gt;'; } } ?&gt; &lt;/select&gt; &lt;?php }else{ ?&gt; &lt;input id="hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt; &lt;?php } } if($this-&gt;params-&gt;get('show_delete',1) &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&gt; &lt;div class="hikashop_cart_product_quantity_delete"&gt; &lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row-&gt;product_id.$this-&gt;url_itemid.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(hikashop_currentURL('return_url')))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price', 1)) { ?&gt; &lt;td class="hikashop_cart_module_product_price_value hikashop_cart_value"&gt;&lt;?php $this-&gt;row=&amp;$row; $this-&gt;unit=false; echo $this-&gt;loadTemplate(); ?&gt;&lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_delete', 1)) { ?&gt; &lt;td class="hikashop_cart_module_product_delete_value hikashop_cart_value"&gt; &lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;cart_type='.$this-&gt;cart_type.'&amp;cart_product_id='.$row-&gt;cart_product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt;&lt;/a&gt; &lt;/td&gt; &lt;?php } if($this-&gt;cart_type == 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module') { ?&gt; &lt;td class="hikashop_wishlist_display_add_to_cart"&gt; &lt;!-- Add 'ADD_TO_CART' button --&gt; &lt;?php $form = ',\'hikashop_wishlist_form\''; $this-&gt;ajax = ' if(qty_field == null) { var qty_field = document.getElementById(\'hikashop_wishlist_quantity_'.$row-&gt;cart_product_id.'\').value; } if(hikashopCheckChangeForm(\'item\',\'hikashop_wishlist_form\')) return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',qty_field,1,\'hikashop_wishlist_form\',\'cart\'); return false; '; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); $this-&gt;setLayout('listing_price'); ?&gt; &lt;/td&gt; &lt;?php } if($row_count &lt; 1) { ?&gt; &lt;td&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;?php $k = 1 - $k; } $this-&gt;cart_product_price = false; ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_quantity', 1)) { ?&gt; &lt;noscript&gt; &lt;input type="submit" class="btn button" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt; &lt;/noscript&gt; &lt;?php } if($this-&gt;cart_type == 'cart' &amp;&amp; $this-&gt;params-&gt;get('from', 'display') == 'module') { if($this-&gt;params-&gt;get('show_cart_proceed', 1)) echo $this-&gt;cartHelper-&gt;displayButton(JText::_('PROCEED_TO_CHECKOUT'), 'checkout', $this-&gt;params, $this-&gt;url_checkout, 'this.disabled = true;window.location.href = \''.$this-&gt;url_checkout.'\';return false;'); } else { ?&gt; &lt;div class="hikashop_display_cart_show_convert_button"&gt; &lt;?php if($this-&gt;params-&gt;get('from', 'display') != 'module') { echo $this-&gt;cartHelper-&gt;displayButton($convertText, 'wishlist', $this-&gt;params, hikashop_completeLink('cart&amp;task=convert' . $this-&gt;url_itemid . '&amp;cart_type='.$this-&gt;cart_type), 'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert'.$this-&gt;url_itemid . '&amp;cart_type='.$this-&gt;cart_type).'\';return false;'); } else { echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop_completeLink('cart&amp;task=showcart&amp;cart_id=' . $this-&gt;element-&gt;cart_id . $this-&gt;cart_itemid . '&amp;cart_type='.$this-&gt;cart_type), 'window.location.href = \''.hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$this-&gt;element-&gt;cart_id . $this-&gt;cart_itemid . '&amp;cart_type='.$this-&gt;cart_type).'\';return false;'); } ?&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="cart_type" value="&lt;?php echo $this-&gt;cart_type; ?&gt;"/&gt; &lt;input type="hidden" name="task" value="updatecart"/&gt; &lt;/form&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php if(JRequest::getWord('tmpl', '') == 'component') { if(!headers_sent()) { header('Content-Type: text/css; charset=utf-8'); } exit; } else { $module_id = (int)$this-&gt;params-&gt;get('id', 0); }

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

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