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

#   Display the weight price in the latest module

##

- **[sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")**
- [![sarah0173's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38494.jpg)](/forum/user/38494-sarah0173 "View sarah0173's Profile") Topic Author
- [ Offline](/forum/user/38494-sarah0173)

Less More

- Posts: 12
- Thank you received: 1
-
-

11 years 3 months ago -  11 years 2 months ago [\#212655](#212655) by [sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")  *[Display the weight price in the latest module](/forum/26-product-category-display/878978-display-the-weight-price-in-the-latest-module#212655 "-- HikaShop version -- : 2.5.0  Hi everyone !  I need to display the weight price next to the unit price in my latest products module. In my configuration, i select show all prices but i have just the price per unit.  Is there anyone who could help me ?  Thanks a lot !")* was created by *[sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")*

-- HikaShop version -- : 2.5.0

Hi everyone !

I need to display the weight price next to the unit price in my latest products module.
In my configuration, i select show all prices but i have just the price per unit.

Is there anyone who could help me ?

Thanks a lot !

Last edit: 11 years 2 months ago by [sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile").

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 3 months ago [\#212659](#212659) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the weight price in the latest module](/forum/26-product-category-display/878978-display-the-weight-price-in-the-latest-module#212659 "-- HikaShop version -- : 2.5.0  Hi everyone !  I need to display the weight price next to the unit price in my latest products module. In my configuration, i select show all prices but i have just the price per unit.  Is there anyone who could help me ?  Thanks a lot !")*

Hi,

You'll have to edit the file "listing_price" of the view "product" via the menu Display&gt;Views and change the code: Code:

if($this-&gt;params-&gt;get('show_price_weight')){ if(!empty($this-&gt;element-&gt;product_id) &amp;&amp; isset($this-&gt;row-&gt;product_weight) &amp;&amp; bccomp($this-&gt;row-&gt;product_weight,0,3)){

to: Code:

if(true){ if(isset($this-&gt;row-&gt;product_weight) &amp;&amp; bccomp($this-&gt;row-&gt;product_weight,0,3)){

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

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

- **[sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")**
- [![sarah0173's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38494.jpg)](/forum/user/38494-sarah0173 "View sarah0173's Profile") Topic Author
- [ Offline](/forum/user/38494-sarah0173)

Less More

- Posts: 12
- Thank you received: 1
-
-

11 years 2 months ago [\#212915](#212915) by [sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")  Replied by *[sarah0173](/forum/user/38494-sarah0173 "View sarah0173's Profile")* on topic *[Display the weight price in the latest module](/forum/26-product-category-display/878978-display-the-weight-price-in-the-latest-module#212915 "-- HikaShop version -- : 2.5.0  Hi everyone !  I need to display the weight price next to the unit price in my latest products module. In my configuration, i select show all prices but i have just the price per unit.  Is there anyone who could help me ?  Thanks a lot !")*

Thanks a lot ! ![:)](/media/kunena/emoticons/3.png ":)")

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

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