Category view (price-per-weight-unit)

  • Posts: 11
  • Thank you received: 0
10 years 2 months ago #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:
"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

Last edit: 10 years 2 months ago by Babylon5. Reason: Update

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 2 months ago #206641

Hi,

The simplest is to edit the file "listing_price" via the menu Display>Views and change the code:

if($this->params->get('show_price_weight')){
				if(!empty($this->element->product_id) && isset($this->row->product_weight) && bccomp($this->row->product_weight,0,3)){
to:
if(true){
				if(isset($this->row->product_weight) && bccomp($this->row->product_weight,0,3)){

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
10 years 2 months ago #206809

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).



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

Best regards
Sabine

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 2 months ago #206834

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 or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
10 years 2 months ago #206865

That´s it ;-)

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum