Insert a Hikashop Module to Replace Category Image

  • Posts: 131
  • Thank you received: 3
12 years 9 months ago #47281

Hi, have an idea to add a Hikashop module (only 1 product) to replace the category image on the category listing, please see here - wanggouredian.com/index.php/en/products (it is main category link show on top, and sub cat links listed on the right column in the box)

I wish to use a module (eg, related product) to replace the barcode png. About setting of module is ok with me, but, having problem to find the exact location to edit the code for above to work. As well not sure how to write this code to make the module work.

Thanks you!

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

  • Posts: 13201
  • Thank you received: 2322
12 years 9 months ago #47395

Hi michael,

To replace the image in the category listing edit the view in HikaShop > Display > Views, "category / listing_img_desc.php" (or listing_img.php ... depends of the view used)

And replace the line:

echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name), '' , '' , $this->image->main_thumbnail_x,  $this->image->main_thumbnail_y);

By the functionality wanted.

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

  • Posts: 131
  • Thank you received: 3
12 years 9 months ago #47437

Thank you Xavier!

But how to write the replacement codes to call out the module?

Sorry was looking lots of examples but still cannot find it.


Best Regards
Michael

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

  • Posts: 131
  • Thank you received: 3
12 years 9 months ago #47438

Thank you Xavier!

But how to write the replacement codes to call out the module?

Sorry was looking lots of examples but still cannot find it.


Best Regards
Michael

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47458

You could add just a module anywhere tag as that extension allows you to replace its tags anywhere on your website by modules.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum