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

#   Change Price Display Order

##

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

Less More

- Posts: 55
- Thank you received: 0
-
-

14 years 4 months ago [\#56660](#56660) by [jen168](/forum/user/8020-jen168 "View jen168's Profile")  *[Change Price Display Order](/forum/2-general-talk-about-hikashop/56660-change-price-display-order#56660 "I've altered product listing&#95;img&#95;title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95...")* was created by *[jen168](/forum/user/8020-jen168 "View jen168's Profile")*

I've altered product listing_img_title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95 for six) are showing the wrong way round, with the price for 6 first. I want it to show price for one followed by price for six.

I've tried altering product listing_price - namely this section here:

echo '&lt;/span&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){
echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity);
}else{
echo JText::_('PER_UNIT');
}
}

But my knowledge of PHP is not good enough to know what I should be doing here. I'm sure it must be incredibly simple - could you point me in the right direction?

Thanks, Jen

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

14 years 4 months ago [\#56716](#56716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change Price Display Order](/forum/2-general-talk-about-hikashop/56660-change-price-display-order#56716 "I've altered product listing&#95;img&#95;title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95...")*

$this-&gt;row-&gt;prices = array_reverse($this-&gt;row-&gt;prices);

You can try to add that line near the beginning of the file in order to revert the prices.
However, the prices should be ordered properly by default.
Please note that the text says: XXX PER unit for at least YYY units bought.
You need to enter the unit price in the prices area of the product and not the price for 6 units.
That's usually why the system displays the prices in what seems to be the wrong order.

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

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

Less More

- Posts: 55
- Thank you received: 0
-
-

14 years 4 months ago [\#56751](#56751) by [jen168](/forum/user/8020-jen168 "View jen168's Profile")  Replied by *[jen168](/forum/user/8020-jen168 "View jen168's Profile")* on topic *[Re: Change Price Display Order](/forum/2-general-talk-about-hikashop/56660-change-price-display-order#56751 "I've altered product listing&#95;img&#95;title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95...")*

Ok, thanks. I am attempting to show the total price for 1 and the total price for 6; I don't want the price-per-unit for 6. Currently I've set the prices as variants to get round this ordering issue, I'll try the method you suggested.

A related question: when using this method, is there any way to have the text "each" only after products for which there is more than one quantity option available? To clarify - for example, I want my menu item "Prime Rib Sliders" to display "$3.25 each (or) $14.95 for six"; I want my item "Potato Skins" (which has only one price) to just display "4.95", without the "each".

Thanks again for your support ![:)](/media/kunena/emoticons/3.png ":)")

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

14 years 4 months ago [\#56808](#56808) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change Price Display Order](/forum/2-general-talk-about-hikashop/56660-change-price-display-order#56808 "I've altered product listing&#95;img&#95;title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95...")*

You can do like that:
[ www.hikashop.com/en/forum/4-how-to/51395...length-per-reel.html](http://www.hikashop.com/en/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel.html)

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

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

Less More

- Posts: 55
- Thank you received: 0
-
-

14 years 4 months ago [\#56828](#56828) by [jen168](/forum/user/8020-jen168 "View jen168's Profile")  Replied by *[jen168](/forum/user/8020-jen168 "View jen168's Profile")* on topic *[Re: Change Price Display Order](/forum/2-general-talk-about-hikashop/56660-change-price-display-order#56828 "I've altered product listing&#95;img&#95;title to display the price on the product listing page. No problem with that, except that the products that have two prices (eg Prime Rib Sliders: 3.25 for one/14.95...")*

OK, thanks.

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

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