Move the "related products" to...

  • Posts: 1
  • Thank you received: 0
11 years 3 months ago #116541

I want to fill some space on product pages. So one way would be to move the related products or random product slider to the sidebar on the left of the product pages for example in that big white space...http:// http://rokstarwebdesign.com/scaleitro/index.php?option=com_hikashop&ctrl=product&task=show&cid=23&name=cantar-carlig-macara-mcwn&Itemid=244
(I know how to turn on related products to show on the bottom)

Is it doable? I know that I have to edit a php file probably in the views/products folder, but which one? What code? and where exactly in the file do I put the code? Can anyone help?

2 - Let's say I ONLY want that sidebar mod on SOME of the product pages, (I realize the above solution is all or nothing)
Obviously I have to create a menu item, but I don't have DIRECT menu items to my products, hence the urls look like this: http:// http://rokstarwebdesign.com/scaleitro/index.php?option=com_hikashop&ctrl=product&task=show&cid=23&name=cantar-carlig-macara-mcwn&Itemid=244

If I make a hidden menu item linking directly to the SAME product and assign the side mod to it, it does NOT go to the same url...
http:// rokstarwebdesign.com/scaleitro/index.php?option=com_hikashop&view=product&layout=show&Itemid=250 (as you now see the slider mod on the left) This is really how I want SOME of the longer product pages to look... thank you SO much if anyone has a moment to look at this issue for me...

Last edit: 11 years 3 months ago by staceyx.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 3 months ago #116655

Hi,

It's actually quite easy to display the related products listing module to a template position.
You need to remove it from the option "modules under the product page" of the configuration and then simply enable it and set it to your left position.
The issue you will have though is that it will display on other pages, not just the product page. That restriction can be added with the extension Advanced Modules Manager. It has advanced options to say on which pages modules should display so I guess that you can probably allow a module only on some product pages and not others and thus, no need to mess with the menu items.

You can also put the random product there. as it's a normal module, you can simply configure it to display in the position you want in your template.

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

  • Posts: 103
  • Thank you received: 7
10 years 3 months ago #166189

Hello - I was pleased to find this thread, because the original post outlined exactly what I wanted to do, and the response from Nicolas helped me do it - almost.

I am able to display the related products on the side (in my case, the right side) instead of below the main product list. When I enable this module, it shows on all pages, as Nicolas indicated. So, I restricted the pages through the advanced options to only the store. That's fine, too. It only shows up on the store pages (main store and products).

The problem is that on the main store page, where it lists all of my products (i only have 7 of them, so I'm not using categories), I also get the full list of other products under the related products heading. I don't want it to display then - I only want it to display when I'm actually looking at a product. I can't figure out how to make the related products list NOT show on the main store page, but then still show on the individual product pages.

I've attached a screen shot. The test website where I am playing with this is:
www.stutteringtherapyresources.com/stutt...t=listing&Itemid=186



I'll appreciate any help you can offer. Thanks!
Scott

Attachments:
Last edit: 10 years 3 months ago by jsyaruss. Reason: screen shot didn't attach

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

  • Posts: 103
  • Thank you received: 7
10 years 3 months ago #166190

An added complication (in addition to the issue raised above)...

When I select a book from the main store page, I get the related products to the right, just as I want.

If I select a book from one of the related products listings (or from anywhere else, e.g., a link in an article), however, the related products do not show up.

Is there some way to make the related products module activate in its new location for all of the products but not for anything else?

Thanks!
S

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 3 months ago #166226

Hi,

From what you're describing it looks like a configuration issue of the module restrictions in Advanced Modules Manager.

I don't know very well Advanced Modules Manager, but wouldn't the "page types" option there allow you to display the module only on product pages and not on listings ? Otherwise, you can probably use the URL match option of Advanced Modules Manager so that the module displays only if the URL contains ctrl=product&task=show (which indicates that the current page is a product page).

But the best would actually be to contact the support of Advanced Modules Manager so that they can tell you exactly what setting you should use for the restriction so that it works like you want since they know their extension much better than us :)

The following user(s) said Thank You: jsyaruss

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

  • Posts: 103
  • Thank you received: 7
10 years 3 months ago #166314

Aaah. Excellent. I didn't have the advanced module manager installed...just the regular one. With the advanced, I get exactly the option you mentioned, and that solved the problem. Thank you for your help - i didn't realize that the issue was with the module manager and not with Hikashop (i'm a beginner). But, now all is well. Thank you!

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

  • Posts: 103
  • Thank you received: 7
10 years 3 months ago #166318

Thanks again for your help on moving the related products module. I've got that working just fine.

Only MINOR issue is that the related product figures are not centered any more. They're right-justified, I guess. Any suggestions on how to get them centered? (I see a way to change the text alignment, but not the picture.)

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 3 months ago #166355

Hi,

I'm not sure why this is happening (apparently a conflict with some CSS of the template), but you can prevent that by adding such CSS code on your website:
#hikashop_module_187 .hikashop_product_image_subdiv{
margin-left: -25px !important;
}

www.hikashop.com/support/support/documen...ize-the-display.html

The following user(s) said Thank You: jsyaruss

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

Time to create page: 0.086 seconds
Powered by Kunena Forum