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

#   price customation in product view

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 8 months ago [\#143270](#143270) by [dalec](/forum/user/31021-dalec "View dalec's Profile")  *[price customation in product view](/forum/26-product-category-display/865741-price-customation-in-product-view#143270 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.4.4  Please assist with ideas to change the pricing text in product view.  Current view states the following:  R 5,15 per unit for buying at least 100 R 4,15 per unit for buying at least 200 R 3,20 per unit for buying at least 500 R 2,65 per unit for buying at least 1000 R 2,30 per unit for buying at least 2000 R 2,05 per unit for buying at least 5000  Can this wording change to:  R 5,15 per unit for 100 - 199 R 4,15 per unit for 200 - 499 R 3,20 per unit for 500 - 999 R 2,65 per unit for 1000 - 1999 R 2,30 per unit for 2000 - 4000 R 2,05 per unit for 5000 - 10000  Baring in mind that the pricing qty's for different products may change. I need to have the second value, ie 100 - 199 must be calculated 1 less than the next price break. eg from 200")* was created by *[dalec](/forum/user/31021-dalec "View dalec's Profile")*

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.4.4

Please assist with ideas to change the pricing text in product view.

Current view states the following:

R 5,15 per unit for buying at least 100
R 4,15 per unit for buying at least 200
R 3,20 per unit for buying at least 500
R 2,65 per unit for buying at least 1000
R 2,30 per unit for buying at least 2000
R 2,05 per unit for buying at least 5000

Can this wording change to:

R 5,15 per unit for 100 - 199
R 4,15 per unit for 200 - 499
R 3,20 per unit for 500 - 999
R 2,65 per unit for 1000 - 1999
R 2,30 per unit for 2000 - 4000
R 2,05 per unit for 5000 - 10000

Baring in mind that the pricing qty's for different products may change. I need to have the second value, ie 100 - 199 must be calculated 1 less than the next price break. eg from 200

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

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 8 months ago [\#143355](#143355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[price customation in product view](/forum/26-product-category-display/865741-price-customation-in-product-view#143355 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.4.4  Please assist with ideas to change the pricing text in product view.  Current view states the following:  R 5,15 per unit for buying at least 100 R 4,15 per unit for buying at least 200 R 3,20 per unit for buying at least 500 R 2,65 per unit for buying at least 1000 R 2,30 per unit for buying at least 2000 R 2,05 per unit for buying at least 5000  Can this wording change to:  R 5,15 per unit for 100 - 199 R 4,15 per unit for 200 - 499 R 3,20 per unit for 500 - 999 R 2,65 per unit for 1000 - 1999 R 2,30 per unit for 2000 - 4000 R 2,05 per unit for 5000 - 10000  Baring in mind that the pricing qty's for different products may change. I need to have the second value, ie 100 - 199 must be calculated 1 less than the next price break. eg from 200")*

Hi,

In order to do that you need to edit the file "listing_price" of the view "product" via the menu Display&gt;Views and change the code: Code:

foreach($this-&gt;row-&gt;prices as $price){

to: Code:

foreach($this-&gt;row-&gt;prices as $k =&gt; $price){

and: Code:

echo '&lt;span class="hikashop_product_price_per_unit_x"&gt;'.JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity).'&lt;/span&gt;';

to: Code:

echo '&lt;span class="hikashop_product_price_per_unit_x"&gt; per unit for '.$price-&gt;price_min_quantity.' - '.(isset($this-&gt;row-&gt;prices[$k+1])? ($this-&gt;row-&gt;prices[$k+1]-&gt;price_min_quantity-1) : 10000).'&lt;/span&gt;';

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

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

[](#top)
