How to edit template on category display?

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #46859

Hi Nicholas,

I have spent some times for learning about Hikashop and now has much improved :D

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.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #46946

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.

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

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47023

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

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #47107

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
}

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

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47143

Many Thanks :cheer:

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.

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47157

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!

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #47177

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.

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47194

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!

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #47620

just like that:
echo 'TAG';

where TAG is replaced by the tag of module anywhere.

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

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47893

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

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #47985

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.

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

  • Posts: 131
  • Thank you received: 3
13 years 1 month ago #47988

Ok, thanks!

But hope the quote not too high :D

I will contact you soon.


Regards
Michael

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

Time to create page: 0.122 seconds
Powered by Kunena Forum