I need to add category listing page only show total weight

  • Posts: 8
  • Thank you received: 0
7 years 10 months ago #272913

Hi, I need to add category listing page only show total weight. how can I do this by customizing code and what code I need and where I need to put. please see my screenshot and please let me know because it's very urgent for my client.

Attachments:

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 10 months ago #272943

Hello,

I think the more quick solution is to modify your HikaShop language file, and so replace " EACH" by what you need.
Take care to don't touch on the "key", see this :

PER_UNIT=" each"
KEY= " translation"


Note : You can have a look on this documentation .
Hope this will fit your needs.

Regards

Last edit: 7 years 10 months ago by Philip.

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

  • Posts: 8
  • Thank you received: 0
7 years 10 months ago #273026

please check this picture

[/sup]

Attachments:

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #273027

Hi,

There is no option to display the total weight on the listings. So you'll have to edit the file "listing_img_title" of the view "product" via the menu Display>Views and add such code in it in order to get the weight displayed:
<?php echo round($this->row->product_weight, 2) . ' ' . $this->row->product_weight_unit; ?>
www.hikashop.com/support/documentation/1...-display.html#layout

The following user(s) said Thank You: ronycmt

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

  • Posts: 8
  • Thank you received: 0
7 years 10 months ago #273113

Thanks, NIC.. really great work...

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

Time to create page: 0.061 seconds
Powered by Kunena Forum