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

#   Volume Price Range

##

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78084](#78084) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78084 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")* was created by *[sambob](/forum/user/7887-sambob "View sambob's Profile")*

Hi, I am using the Business and am wondering about displaying volume price ranges.

I have attached an image to explain:

Can I get the price ranges to display as:

AUD5.00 1 to 5
AUD3.00 6 to 9
AUD2.00 10 to 99
AUD0.95 100 to 999
AUD0.25 9999 +

Instead of:

AUD5.00 each
AUD3.00 per unit for buying at least 9
AUD2.00 per unit for buying at least 99
AUD0.95 per unit for buying at least 999

Thanks in advance (Great product BTY)

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![Untitled-1.jpg](/forum/attachment/7115) ](/forum/attachment/7115 "Untitled-1.jpg") [ ](/forum/attachment/7115?download=1 "Untitled-1.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#78100](#78100) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78100 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi,

Yes it's possible, you have to replace the lines: Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ if($price-&gt;price_min_quantity&gt;1){ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); }else{ echo JText::_('PER_UNIT'); } }

By: Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ $nextMin = $k + 1; if($price-&gt;price_min_quantity&gt;1){ if(isset($this-&gt;row-&gt;prices[$nextMin])) $price-&gt;price_max_quantity = $this-&gt;row-&gt;prices[$nextMin]-&gt;price_min_quantity; else $price-&gt;price_max_quantity = '999'; echo $price-&gt;price_min_quantity." to ".$price-&gt;price_max_quantity; //echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); }else{ if(isset($this-&gt;row-&gt;prices[$nextMin])){ $price-&gt;price_max_quantity = $this-&gt;row-&gt;prices[$nextMin]-&gt;price_min_quantity; echo "1 to ".$price-&gt;price_max_quantity; }else echo JText::_('PER_UNIT'); } }

And replace the foreach: "foreach($this-&gt;row-&gt;prices as $price){" by "foreach($this-&gt;row-&gt;prices as $k =&gt; $price){"

In the view "product / listing_price" in HikaShop &gt; Display &gt; Views

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78103](#78103) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78103 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi Xavier,

thanks for that. Greatly appreciated.

Am i right in guessing the $price-&gt;price_max_quantity = '999'; will be standard across all products?

Is there a way to have that set to 1+ to whatever the last increment is?

See attachement:
[ ![prices1.jpg](/forum/attachment/7118) ](/forum/attachment/7118 "prices1.jpg")

In that example... the last one is 999, but what is I wanted the last one to be 500? (would that code render the last one as 999?)

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![prices1.jpg](/forum/attachment/7118) ](/forum/attachment/7118 "prices1.jpg") [ ](/forum/attachment/7118?download=1 "prices1.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#78118](#78118) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78118 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

In the code given, the value 999 is to set the max product quantity, I think that it's better to replace it by "..." or just display Code:

echo "From ".$price-&gt;price_min_quantity;

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78243](#78243) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78243 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Brilliant... it works.

I changed the 999 to a ~

But.. Is there a way to code it so that if there is no higher price increment, the echo could return the following

echo $price-&gt;price_min_quantity." + "

Thereby rendering
AUD5.00 1 to 9
AUD3.00 10 to 99
AUD2.00 99 to 999
AUD0.95 999+

Not a coder, but can you have two echos, with the second one being used if the first condition is not met?

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78265](#78265) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78265 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi,
Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ $nextMin = $k + 1; if($price-&gt;price_min_quantity&gt;1){ if(isset($this-&gt;row-&gt;prices[$nextMin])) { echo $price-&gt;price_min_quantity." to ".$this-&gt;row-&gt;prices[$nextMin]-&gt;price_min_quantity; } else { echo $price-&gt;price_min_quantity."+"; } }else{ if(isset($this-&gt;row-&gt;prices[$nextMin])){ $price-&gt;price_max_quantity = $this-&gt;row-&gt;prices[$nextMin]-&gt;price_min_quantity; echo "1 to ".$price-&gt;price_max_quantity; }else echo JText::_('PER_UNIT'); } }

Regards,

---

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

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78293](#78293) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78293 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Bingo

Thanks Jerome, (appreciated)

Is there a way not to have AUD0.95 750+ at the cat display level? (see image)

[ ![prod-list.jpg](/forum/attachment/7137) ](/forum/attachment/7137 "prod-list.jpg")

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![prod-list.jpg](/forum/attachment/7137) ](/forum/attachment/7137 "prod-list.jpg") [ ](/forum/attachment/7137?download=1 "prod-list.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#78310](#78310) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78310 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi,

Yes it's possible, you just have to disable the option "Display price" in HikaShop &gt; Display &gt; Content menus or modules configuration.

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78315](#78315) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78315 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Thanks Xavier &amp; Jerome,

A Great help (as always with Hikashop)

There are a few other things I am trying to do with this tier pricing but I will give it a go and see how I get on before posting the Q.

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78509](#78509) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78509 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi Xavier &amp; Jerome,

ok... I have tried to achieve something by coding myself but cannot work it out.

[ ![price-tier.jpg](/forum/attachment/7169) ](/forum/attachment/7169 "price-tier.jpg")

In the attached image you will see the ranges are:
1 to 10
10 to 100
100+

Which is almost right... but there is an overlap 10 and 100

Is it possible to get it to display:
1 to 10
11 to 100
101+

i.e. The next increment up adds 1 to the next increment.

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![price-tier.jpg](/forum/attachment/7169) ](/forum/attachment/7169 "price-tier.jpg") [ ](/forum/attachment/7169?download=1 "price-tier.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78519](#78519) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78519 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi

> echo ($price-&gt;price\_min\_quantity+1)."+";

Regards,

---

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

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 11 months ago [\#78606](#78606) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#78606 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Brilliant Jerome!

Thanks you so much.

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 10 months ago [\#80331](#80331) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80331 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi again Jerome &amp; Xavier,

I am now trying to get this volume pricing to work on the Product Table display:

[ ![listprice.jpg](/forum/attachment/7359) ](/forum/attachment/7359 "listprice.jpg")

I hunted around for similar code in listing_table, but could not find it.

Which view do I need to edit?

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![listprice.jpg](/forum/attachment/7359) ](/forum/attachment/7359 "listprice.jpg") [ ](/forum/attachment/7359?download=1 "listprice.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80401](#80401) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80401 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi,

This is the same view which is used for the listing or the product page "product / listing_price".

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 10 months ago -  13 years 10 months ago [\#80514](#80514) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80514 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Morning Xavier,

There are displaying differently:

Here is the link to the Ferrite Disc 5x3 (the one highlighted in the image provided)
[ geneva.directrouter.com/~magnetgr/index....discs-5x3&amp;Itemid=230](http://geneva.directrouter.com/~magnetgr/index.php?option=com_hikashop&ctrl=product&task=show&cid=42&name=ferrite-discs-5x3&Itemid=230)

[ ![ferrite-disc.jpg](/forum/attachment/7384) ](/forum/attachment/7384 "ferrite-disc.jpg")

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

- [ ![ferrite-disc.jpg](/forum/attachment/7384) ](/forum/attachment/7384 "ferrite-disc.jpg") [ ](/forum/attachment/7384?download=1 "ferrite-disc.jpg")

Last edit: 13 years 10 months ago by [sambob](/forum/user/7887-sambob "View sambob's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT90bXBsPW1hcmtkb3du) 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: 86322
- Thank you received: 14280
-
-

13 years 10 months ago [\#80576](#80576) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80576 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

I confirm that the same product/listing_price file is used for both the table listing and the product page.

If you don't get the same display, I can only think that it comes from a variable in the code of that listing_price file which is not the same on both pages.

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 10 months ago [\#80581](#80581) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80581 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi Nicolas,

Thanks for your reply.

If I remove the custom code (as given) from the listing_price file, they both display correctly.

But using the code that was supplied, means they display differently (as you correctly say)

Any idea what is missing from the code that is not adjusting the table display prices correctly?

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT90bXBsPW1hcmtkb3du) 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: 86322
- Thank you received: 14280
-
-

13 years 10 months ago [\#80605](#80605) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80605 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

I would say that it comes from that code:
if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){

try to have that instead:
if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price)){

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

13 years 10 months ago [\#80615](#80615) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80615 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi Nicolas,

that gives a Parse error: syntax error, unexpected '-', expecting ',' or ')'

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80643](#80643) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Volume Price Range](/forum/4-how-to/76039-volume-price-range#80643 "Hi, I am using the Business and am wondering about displaying volume price ranges.  I have attached an image to explain:  Can I get the price ranges to display as:  AUD5.00 1 to 5 AUD3.00 6 to 9 AUD2.00 10 to 99 AUD0.95 100 to 999 AUD0.25 9999 +  Instead of:  AUD5.00 each AUD3.00 per unit for buying at least 9 AUD2.00 per unit for buying at least 99 AUD0.95 per unit for buying at least 999  Thanks in advance (Great product BTY)")*

Hi,

I think that you forgot a ")" in the line or something else.

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

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

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

[](#top)
