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

#   Product price display

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 7 months ago [\#291235](#291235) by [jmtodd](/forum/user/8200-jmtodd "View jmtodd's Profile")  *[Product price display](/forum/26-product-category-display/894425-product-price-display#291235 "-- url of the page with the problem -- :   myco.foxwellboxoffice.co.uk  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Safari 11.0.3  Sorry to be a pain but struggling with this one. In the product listing display, it generally says the price of each item - eg. &quot;£12.00 each&quot; (as in the attachment below). However, I have products with variants which differ in price and would prefer it to say &quot;From £12.00&quot;. I can achieve this across the board by modifying the PRICE&#95;BEGINNING and PER&#95;UNIT strings but I only want this for some items (the ones with variable prices). Is there an easy way of achieving this? I was looking at modifying product/listing&#95;price.php but am having trouble determining what product I am displaying.  Any help would be much appreciated.  Many thanks! Jonathan")* was created by *[jmtodd](/forum/user/8200-jmtodd "View jmtodd's Profile")*

-- url of the page with the problem -- : [ myco.foxwellboxoffice.co.uk](https://myco.foxwellboxoffice.co.uk)
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Safari 11.0.3

Sorry to be a pain but struggling with this one. In the product listing display, it generally says the price of each item - eg. "£12.00 each" (as in the attachment below). However, I have products with variants which differ in price and would prefer it to say "From £12.00". I can achieve this across the board by modifying the PRICE_BEGINNING and PER_UNIT strings but I only want this for some items (the ones with variable prices). Is there an easy way of achieving this? I was looking at modifying product/listing_price.php but am having trouble determining what product I am displaying.

Any help would be much appreciated.

Many thanks!
Jonathan

- [ ![Screenshot2018-04-1122.40.40.png](/forum/attachment/43323) ](/forum/attachment/43323 "...1122.40.40.png") [ ](/forum/attachment/43323?download=1 "...1122.40.40.png")

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 7 months ago -  8 years 7 months ago [\#291246](#291246) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Product price display](/forum/26-product-category-display/894425-product-price-display#291246 "-- url of the page with the problem -- :   myco.foxwellboxoffice.co.uk  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Safari 11.0.3  Sorry to be a pain but struggling with this one. In the product listing display, it generally says the price of each item - eg. &quot;£12.00 each&quot; (as in the attachment below). However, I have products with variants which differ in price and would prefer it to say &quot;From £12.00&quot;. I can achieve this across the board by modifying the PRICE&#95;BEGINNING and PER&#95;UNIT strings but I only want this for some items (the ones with variable prices). Is there an easy way of achieving this? I was looking at modifying product/listing&#95;price.php but am having trouble determining what product I am displaying.  Any help would be much appreciated.  Many thanks! Jonathan")*

Hello,

By default in HikaShop you **haven't option** that can condition **the way to display price from variants or different prices items**.
You have to use an override view in order to **custom php code**.
That's not that much difficult but of course that require good **html &amp; php knowledge**, in order to add this kind condition :
- Go to **Main HikaShop Configuration** =&gt; **Display** dropdown =&gt; **Views**
- Use the **3** dropdown filter with **Product**/**YourTemplate**/**Front End**
- And edit the "**listing\_price**" view
- Use this data : ***$this-&gt;row-&gt;has\_options*** as a check to determine product **with option or without**.
**=&gt;** Around button display code use this kind of code :
Code:

if ($this-&gt;row-&gt;has_options == false) { // Display classic price code } else { // Custom price display echo "price start with : " . $price }

Be aware that this code above is **pseudo code**, you have to analyze the context in order to have a good result, no error **AND** a price that will fit your backend display price options.

Hope this will help you.
Regards

Last edit: 8 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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