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

#   How to change pricing bulk discount display?

##

- **[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 6 months ago -  13 years 6 months ago [\#102679](#102679) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#102679 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

Hi,

You will need something like: Code:

$minQties = array(); foreach($this-&gt;row-&gt;prices as $priceBis){ $minQties[] = $priceBis-&gt;price_min_quantity; } foreach($minQties as $key =&gt; $minQty){ 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 == $minQty){ $key++; echo sprintf('%s - %s off = ',$price-&gt;price_min_quantity,$minQties[$key]); } } }

To get all the possible quantities, and display the interval.

Last edit: 13 years 6 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

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

Less More

- Posts: 46
- Thank you received: 7
-
-

13 years 6 months ago [\#102843](#102843) by [lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")  Replied by *[lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#102843 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

Hi Xavier

This was very helpful. I've changed the code as you suggested, just a couple of little problems. The result I have is in this format:
£ 168.00 ea
3 - 6 off = £ 160.00
6 - 10 off = £ 150.00
10 - off = £ 140.00

Can you advise how to get the first line of prices to say:
1 - 2 off = £ 168.00

And the last line of prices to say

10 + = £ 140.00

Many thanks - Leo

This is the code so far... Code:

echo '&lt;span class="'.implode(' ',$classes).'"&gt;'; 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){ $minQties = array(); foreach($this-&gt;row-&gt;prices as $priceBis){ $minQties[] = $priceBis-&gt;price_min_quantity; } foreach($minQties as $key =&gt; $minQty){ 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 == $minQty){ $key++; echo sprintf('%s - %s off = ',$price-&gt;price_min_quantity,$minQties[$key]); } } }

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

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

Less More

- Posts: 46
- Thank you received: 7
-
-

13 years 6 months ago [\#105613](#105613) by [lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")  Replied by *[lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#105613 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

Hi Xavier

Can you advise how to get the first line of prices to say:
1 - 2 off = £ 168.00

And the last line of prices to say

10 + = £ 140.00

Many thanks - Leo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NzUyLWhvdy10by1jaGFuZ2UtcHJpY2luZy1idWxrLWRpc2NvdW50LWRpc3BsYXk/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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 6 months ago [\#105638](#105638) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#105638 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

Hi,

You can replace: 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 == $minQty){ $key++; echo sprintf('%s - %s off = ',$price-&gt;price_min_quantity,$minQties[$key]); } }

By: Code:

if(count($minQties) &gt;= 1 &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ if($price-&gt;price_min_quantity == 0){ $key++; echo sprintf('%s - %s off = ','1',$minQties[$key]); } elseif($price-&gt;price_min_quantity == $minQty &#124;&#124; $price-&gt;price_min_quantity == 0){ $key++; echo sprintf('%s - %s off = ',$price-&gt;price_min_quantity,$minQties[$key]); }else{ echo sprintf('%s + = ',$price-&gt;price_min_quantity); } }

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

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

Less More

- Posts: 46
- Thank you received: 7
-
-

13 years 6 months ago [\#105641](#105641) by [lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")  Replied by *[lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#105641 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

Thanks Xavier, I've pasted in your code, but this is what I get:

£ 168.00 ea
3 + = 3 - 6 off = 3 + = 3 + = 3 + = £ 160.00
6 + = 6 + = 6 - 10 off = 6 + = 6 + = £ 150.00
10 + = 10 + = 10 + = 10 - 26 off = 10 + = £ 140.00
26 + = 26 + = 26 + = 26 + = 26 - off = £ 130.00

Can you troubleshoot this?

Many thanks - Leo

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 6 months ago [\#105811](#105811) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#105811 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

I'm sorry but we're way off normal support here. We're already provided you a lot of code modifications without asking for anything but these modifications start to get out of hand and it's not anymore one or two lines of code to add...
If you want custom coding like these please use our contact form to request a quote on the job :
[ www.hikashop.com/en/contact-us.html](http://www.hikashop.com/en/contact-us.html)

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

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

Less More

- Posts: 46
- Thank you received: 7
-
-

13 years 6 months ago [\#105880](#105880) by [lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")  Replied by *[lcoombes](/forum/user/8557-lcoombes "View lcoombes's Profile")* on topic *[How to change pricing bulk discount display?](/forum/4-how-to/76752-how-to-change-pricing-bulk-discount-display?start=20#105880 "Hi there! I'm trying to make some changes to the way discount pricing for more than one item is displayed in the product view.  Currently the product pricing is displayed like this: £ 270.95 each £ 250.00 per unit for buying at least 3 £ 220.00 per unit for buying at least 10  I want the text to display in this format: £ 270.95 each 3 or more - £250.00 10 or more - £220.00  I think I've identified the correct view to edit - Display &gt; Views &gt; Product &gt; Listing-price.  The area I think I need to amend is:  Can anyone help?  Thanks - Leo")*

OK - thanks for letting me know Nicolas. I actually thought it would be an easy change, but I can see it's a lot more complicated than I though.

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

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

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