Skip to main content

Insert a Hikashop Module to Replace Category Image

More
14 years 5 months ago #47281 by michael
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.

More
14 years 5 months ago #47395 by Xavier
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:
Code:
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.

More
14 years 5 months ago #47437 by michael
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.

More
14 years 5 months ago #47438 by michael
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.

More
14 years 5 months ago #47458 by nicolas
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.209 seconds
Powered by Kunena Forum