- Posts: 131
- Thank you received: 3
How to edit template on category display?
14 years 5 months ago #46859
by michael
How to edit template on category display? was created by michael
Hi Nicholas,
I have spent some times for learning about Hikashop and now has much improved
Thank you to Hikashop for the excellence software!
But, still have a little problem with template. Plaese see: wanggouredian.com/index.php/en/products
Currently there are 2 categories, I wish to move each the category image (will upload later) to the left within the box and display the text links on the right within same box in each category. Then, main category link on top, and follow by subcategories go downward.
I have been searching high and low but cannot find the location to edit them.
Thank you!
I have spent some times for learning about Hikashop and now has much improved

Thank you to Hikashop for the excellence software!
But, still have a little problem with template. Plaese see: wanggouredian.com/index.php/en/products
Currently there are 2 categories, I wish to move each the category image (will upload later) to the left within the box and display the text links on the right within same box in each category. Then, main category link on top, and follow by subcategories go downward.
I have been searching high and low but cannot find the location to edit them.
Thank you!
Please Log in or Create an account to join the conversation.
14 years 5 months ago #46946
by nicolas
Replied by nicolas on topic Re: How to edit template on category display?
Hi,
You will have to edit the file "listing_img_title" of the view "category" via the menu Display->Views in order to change that.
You will have to edit the file "listing_img_title" of the view "category" via the menu Display->Views in order to change that.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47023
by michael
Replied by michael on topic Re: How to edit template on category display?
Thank you Nicholas! It is wonderful :laugh:
But, please see here wanggouredian.com/index.php/en/products and wanggouredian.com/index.php/en/country .
The bottom border line cut through the image! How to set the border height to full ?
Secondly, I wish to insert a Hikashop module with only 1 product image in this wanggouredian.com/index.php/en/products
to replace the default image, so that each category will show one product image in that category with link to the product; but don't effect the setting of the other page with the default image uploaded - wanggouredian.com/index.php/en/country ??
Best Regards
Michael
But, please see here wanggouredian.com/index.php/en/products and wanggouredian.com/index.php/en/country .
The bottom border line cut through the image! How to set the border height to full ?
Secondly, I wish to insert a Hikashop module with only 1 product image in this wanggouredian.com/index.php/en/products
to replace the default image, so that each category will show one product image in that category with link to the product; but don't effect the setting of the other page with the default image uploaded - wanggouredian.com/index.php/en/country ??
Best Regards
Michael
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47107
by nicolas
Replied by nicolas on topic Re: How to edit template on category display?
You can do that with CSS:
#hikashop_category_information_menu_35 .hikashop_subcontainer ,#hikashop_category_information_menu_42 .hikashop_subcontainer {
height: 200px;
}
For your second question, you could use the extension "module anywhere" to replace the image.
You can do a check like that:
if($_GET==35){
//use module anywhere
}else{
//normal image display
}
#hikashop_category_information_menu_35 .hikashop_subcontainer ,#hikashop_category_information_menu_42 .hikashop_subcontainer {
height: 200px;
}
For your second question, you could use the extension "module anywhere" to replace the image.
You can do a check like that:
if($_GET==35){
//use module anywhere
}else{
//normal image display
}
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47143
by michael
Replied by michael on topic Re: How to edit template on category display?
Many Thanks 
The border is perfect now! But about insert module anywhere , hope can get more information:
The location to insert: display > Views > Category > listing_div ?
The syntax to edit: //use module anywhere & //normal image display
Sorry, though the module anywhere is not your product.
Thank you!
The border is perfect now! But about insert module anywhere , hope can get more information:
The location to insert: display > Views > Category > listing_div ?
The syntax to edit: //use module anywhere & //normal image display
Sorry, though the module anywhere is not your product.
Thank you!
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47157
by michael
Replied by michael on topic Re: How to edit template on category display?
Sorry to make it clearer, I know about the use of syntax in module anywhere >> {module name|rounded}
But, when I tried entering in display > Views > Category > listing_div with echo, or get, just don't appear? or either simply with {module name|rounded}; also not work.
As well about normal image display, sorry has also tried some syntax but break the site.
Thank you!
But, when I tried entering in display > Views > Category > listing_div with echo, or get, just don't appear? or either simply with {module name|rounded}; also not work.
As well about normal image display, sorry has also tried some syntax but break the site.
Thank you!
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47177
by nicolas
Replied by nicolas on topic Re: How to edit template on category display?
Make sure that you're editing the view file for the correct template. The normal image display is already in the file listing of the view category, no need to guess it. That's where you should add your module anywhere code.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47194
by michael
Replied by michael on topic Re: How to edit template on category display?
ok, but how to add this line:
if($_GET==35){
???????????????? //use module anywhere
}else{
//normal image display
}
Still cannot get the module anywhere working ?
Thanks!
if($_GET==35){
???????????????? //use module anywhere
}else{
//normal image display
}
Still cannot get the module anywhere working ?
Thanks!
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47620
by nicolas
Replied by nicolas on topic Re: How to edit template on category display?
just like that:
echo 'TAG';
where TAG is replaced by the tag of module anywhere.
echo 'TAG';
where TAG is replaced by the tag of module anywhere.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47893
by michael
Replied by michael on topic Re: How to edit template on category display?
Thank you for the reply!
However, still can't get it works, or either break the site
I will email you the access details, hope you can access my site and do the necessary. Will show you the module name to be inserted.
Thank you very much!!
Michael
However, still can't get it works, or either break the site
I will email you the access details, hope you can access my site and do the necessary. Will show you the module name to be inserted.
Thank you very much!!
Michael
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47985
by nicolas
Replied by nicolas on topic Re: How to edit template on category display?
The access you provided does not work.
Also, please understand that this is already outside the support we provide for HikaShop. Even more considering that we already provided the information to do it and that the issue is with another extension. We can do such kind of customization work for a small fee. If interested, let us know via our contact form and we'll give you a quote.
Also, please understand that this is already outside the support we provide for HikaShop. Even more considering that we already provided the information to do it and that the issue is with another extension. We can do such kind of customization work for a small fee. If interested, let us know via our contact form and we'll give you a quote.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #47988
by michael
Replied by michael on topic Re: How to edit template on category display?
Ok, thanks!
But hope the quote not too high
I will contact you soon.
Regards
Michael
But hope the quote not too high

I will contact you soon.
Regards
Michael
Please Log in or Create an account to join the conversation.
Time to create page: 0.297 seconds