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

#   Category view (price-per-weight-unit)

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago -  11 years 3 months ago [\#206633](#206633) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  *[Category view (price-per-weight-unit)](/forum/26-product-category-display/877843-category-view-price-per-weight-unit#206633 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.6.3 -- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law  Hello,  german law demands that the price per weight unit is already visible in the catagory view (product list).  I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?  Best Regards Sabine  UPDATE: I followed the hint in the post:   demo.hikashop.com/support/forum/4-how-to...-category-pages.html  The price per weight is showing now, but in an non acceptable way (so I disabled it again): This is the result: &quot;8,90 € 11,87 € / l inkl. MwSt.&quot;  This way it should be displayed: 8,90 € / unit inkl. MwSt. 11,87 € / l inkl. MwSt.  Any hints? URL:   bihlmayer.de/cms/onlineshop")* was created by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.6.3
-- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law

Hello,

german law demands that the price per weight unit is already visible in the catagory view (product list).

I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?

Best Regards
Sabine

**UPDATE:** I followed the hint in the post: [ demo.hikashop.com/support/forum/4-how-to...-category-pages.html](https://demo.hikashop.com/support/forum/4-how-to/4959-price-per-unit-on-product-category-pages.html)

The price per weight is showing now, but in an non acceptable way (so I disabled it again):
This is the result:
**"8,90 € 11,87 € / l inkl. MwSt."**

This way it should be displayed:
**8,90 € / unit inkl. MwSt.
11,87 € / l inkl. MwSt.**

Any hints?
URL: [ bihlmayer.de/cms/onlineshop](http://bihlmayer.de/cms/onlineshop)

Last edit: 11 years 3 months ago by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile"). Reason: Update

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#206641](#206641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category view (price-per-weight-unit)](/forum/26-product-category-display/877843-category-view-price-per-weight-unit#206641 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.6.3 -- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law  Hello,  german law demands that the price per weight unit is already visible in the catagory view (product list).  I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?  Best Regards Sabine  UPDATE: I followed the hint in the post:   demo.hikashop.com/support/forum/4-how-to...-category-pages.html  The price per weight is showing now, but in an non acceptable way (so I disabled it again): This is the result: &quot;8,90 € 11,87 € / l inkl. MwSt.&quot;  This way it should be displayed: 8,90 € / unit inkl. MwSt. 11,87 € / l inkl. MwSt.  Any hints? URL:   bihlmayer.de/cms/onlineshop")*

Hi,

The simplest is to edit the file "listing_price" 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)){

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#206809](#206809) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[Category view (price-per-weight-unit)](/forum/26-product-category-display/877843-category-view-price-per-weight-unit#206809 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.6.3 -- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law  Hello,  german law demands that the price per weight unit is already visible in the catagory view (product list).  I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?  Best Regards Sabine  UPDATE: I followed the hint in the post:   demo.hikashop.com/support/forum/4-how-to...-category-pages.html  The price per weight is showing now, but in an non acceptable way (so I disabled it again): This is the result: &quot;8,90 € 11,87 € / l inkl. MwSt.&quot;  This way it should be displayed: 8,90 € / unit inkl. MwSt. 11,87 € / l inkl. MwSt.  Any hints? URL:   bihlmayer.de/cms/onlineshop")*

Hi Nicolas,

thank you for your reply, but the result looks the same.....both prices in a row. The price separator does not work (see screenshot).

[ ![screenshot&#95;124.png](/forum/attachment/25284) ](/forum/attachment/25284 "...enshot&#95;124.png")

Any idea how to display the prices one below the other?

Best regards
Sabine

- [ ![screenshot&#95;124.png](/forum/attachment/25284) ](/forum/attachment/25284 "...enshot&#95;124.png") [ ](/forum/attachment/25284?download=1 "...enshot&#95;124.png")

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#206834](#206834) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category view (price-per-weight-unit)](/forum/26-product-category-display/877843-category-view-price-per-weight-unit#206834 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.6.3 -- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law  Hello,  german law demands that the price per weight unit is already visible in the catagory view (product list).  I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?  Best Regards Sabine  UPDATE: I followed the hint in the post:   demo.hikashop.com/support/forum/4-how-to...-category-pages.html  The price per weight is showing now, but in an non acceptable way (so I disabled it again): This is the result: &quot;8,90 € 11,87 € / l inkl. MwSt.&quot;  This way it should be displayed: 8,90 € / unit inkl. MwSt. 11,87 € / l inkl. MwSt.  Any hints? URL:   bihlmayer.de/cms/onlineshop")*

That's just a matter of CSS.
You can try with that CSS for example:
.hikashop_product_price_per_weight_unit{ display: block; }

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#206865](#206865) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[Category view (price-per-weight-unit)](/forum/26-product-category-display/877843-category-view-price-per-weight-unit#206865 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.6.3 -- Error-message(debug-mod must be tuned on) -- : Category view not corresponding to german law  Hello,  german law demands that the price per weight unit is already visible in the catagory view (product list).  I could not find a solution in this forum yet how to display this information in the product listing. Can you please help me how to modify the category view to meet the legal requirements?  Best Regards Sabine  UPDATE: I followed the hint in the post:   demo.hikashop.com/support/forum/4-how-to...-category-pages.html  The price per weight is showing now, but in an non acceptable way (so I disabled it again): This is the result: &quot;8,90 € 11,87 € / l inkl. MwSt.&quot;  This way it should be displayed: 8,90 € / unit inkl. MwSt. 11,87 € / l inkl. MwSt.  Any hints? URL:   bihlmayer.de/cms/onlineshop")*

That´s it ![;-)](/media/kunena/emoticons/14.png ";-)")

Sorry for bothering you and thank yo so much.....

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

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

[](#top)
