- Posts: 131
- Thank you received: 3
Insert a Hikashop Module to Replace Category Image
14 years 5 months ago #47281
by michael
Insert a Hikashop Module to Replace Category Image was created 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!
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.
14 years 5 months ago #47395
by Xavier
Replied by Xavier on topic Re: Insert a Hikashop Module to Replace Category Image
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:
By the functionality wanted.
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.
14 years 5 months ago #47437
by michael
Replied by michael on topic Re: Insert a Hikashop Module to Replace Category Image
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
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.
14 years 5 months ago #47438
by michael
Replied by michael on topic Re: Insert a Hikashop Module to Replace Category Image
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
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.
14 years 5 months ago #47458
by nicolas
Replied by nicolas on topic Re: Insert a Hikashop Module to Replace Category Image
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