[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 10 months ago [\#80745](#80745) 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?start=20#80745 "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)")*

Not sure what it was, but code accepted this morning.

It has made no different though.

[ ![table.jpg](/forum/attachment/7418) ](/forum/attachment/7418 "table.jpg")

---

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81002](#81002) 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?start=20#81002 "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)")*

It is confusing why the listing price is rendered differently in the 'show_default' and 'listing_table' when the original 'listing_price' code is changed.

If I looking into the code (and I am not a coder) for listing_table,

I see that code responsible for rendering the 'listing_price' in 'listing_table' is as follows: Code:

&lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ ?&gt; &lt;td class="hikashop_product_price_row"&gt; &lt;?php $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ ?&gt; &lt;td class="hikashop_product_price_row"&gt; &lt;?php $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php } ?&gt;

So logic would say that if they both render correctly when default 'listing_price' is used that they render differently when 'listing_price' is changed is caused by a conflict with the code that was changed in 'listing_price'.

Any clues on the conflict?

(Sorry for persistence, but very important that I get the table to display properly.)

---

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81336](#81336) 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?start=20#81336 "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)")*

The problem does not come from the listing_table file but from the way the listing_price file has been modified.
Normally, the "each" text is displayed with the translation system, so a translation override of the PER_UNIT key should allow you to display 1 to 10 instead of each:
[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81341](#81341) 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?start=20#81341 "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 reply.

Just to clarify, here are the two displays:

1) [ Table Layout](http://geneva.directrouter.com/~magnetgr/index.php?option=com_hikashop&view=product&layout=listing&Itemid=235)

On this page, it displays each product with,

- AU $ 1.51 each
- AU $ 1.26 10+
- AU $ 1.04 100+

2) [ Product Display](http://geneva.directrouter.com/~magnetgr/index.php?option=com_hikashop&ctrl=product&task=show&cid=12&name=ferrite-discs-29x10&Itemid=235)

On this page, it displays each product with,

- AU $ 1.51 **1 to 10**
- AU $ 1.26 **11 to 100**
- AU $ 1.04 **100+**

Changing the 'each' to say 1-10 in the language file will certainly change the Table Layout, BUT, what if the pricing tier is not 1-10, but 1-100?

Also, just changing the each in the language file doesnt change the second tier, (10+) to be as it is on the product page 10-100.

Does that make sense? (I am wanting the table to display the price ties the same way it does on the product

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81592](#81592) 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?start=20#81592 "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)")*

Ok... it is down to this

if(isset($this-&gt;row-&gt;prices[$nextMin])) {
echo ($price-&gt;price_min_quantity+1)." to ".$this-&gt;row-&gt;prices[$nextMin]-&gt;price_min_quantity;
} else {
echo ($price-&gt;price_min_quantity)."+";

When displaying the results of this (show_price) on the [ Product Page](http://geneva.directrouter.com/~magnetgr/index.php?option=com_hikashop&ctrl=product&task=show&cid=203&name=ferrite-block-magnets-150x100x25-4-unm&Itemid=235):
the '**if(isset($this-&gt;row-&gt;prices\[$nextMin\]))**' argument is true and the prices are displayed via:
**echo ($price-&gt;price\_min\_quantity+1)." to ".$this-&gt;row-&gt;prices\[$nextMin\]-&gt;price\_min\_quantity**;
( and rendered as **1 to 10**, or **11 to 100**, etc)

BUT..When displaying products on the [ Product Table](http://geneva.directrouter.com/~magnetgr/index.php?option=com_hikashop&view=product&layout=listing&Itemid=235),
the '**if(isset($this-&gt;row-&gt;prices\[$nextMin\]))**' argument is NOT True and the prices are displayed via
**echo ($price-&gt;price\_min\_quantity)."+";**;
( and rendered as **1+** , or **10+** , etc)

So, as both are rendering from show_price, (customized by the code supplied) why is the statement **true** on one page and **false** on the other?

Please, I **REALLY** need this to work ![:(](/media/kunena/emoticons/22.png ":(")

---

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81657](#81657) 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?start=20#81657 "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,

The problem come from that in the listing the products seems to not have the same prices.

Could you give us a backend access ?

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81734](#81734) 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?start=20#81734 "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,

I PM'd the login details

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#81974](#81974) 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?start=20#81974 "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,

You say "*The problem come from that in the listing the products seems to not have the same prices*",

That's not correct!

I have checked all layouts and the prices are the same for both '**Product Table**' and '**Product Default**'.

There is something wrong with either the code provided or the way the code is being treated by 'listing_table'.

Without the provided 'Listing_Price' code amendment, both table layout and product display the same. With the code added, they display differently.

---

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#82030](#82030) 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?start=20#82030 "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,

The problem is that when it's a product listing the $nextMin value should not be equal to $k +1, because the $k isn't incremented by 1 in the listing but by another value.
So it will require more edition in the product_listing view.

Actually we don't have time to provide this kind of code, besides it's a customization, not a bug so it's not our priority.
I suggest you to post a request in the commercial job section of this forum, or ask to a third developer.

Hope that you understand.

Regards.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDM5LXZvbHVtZS1wcmljZS1yYW5nZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 [\#82142](#82142) 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?start=20#82142 "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)")*

A bit dissapointed that it has taken over two weeks to determine.

I am more than happy to pay.

I do think you should consider correcting whatever is creating the conflict for futre editions as tier pricing is very important to many and the default display style is very clumsy.

Yes, I understand.

---

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

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

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

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

[](#top)
