product listing on full width page

  • Posts: 141
  • Thank you received: 3
5 years 6 months ago #312452

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2.14

Hello, I am looking for the solution to use full width page size for Hkashop product listing but for other Hikashop pages (including product page and checkout) I would like to keep page size (container) same as for default page content

Is it possible to indicate that Hikashop product listing should be displayed not in the main page content container but in a different section ? I am using template with Gantry 5 and I can set different sections for different modules but I cannot find a way how to use different section for Hikashop product listing

Regards,
Greg

Last edit: 5 years 6 months ago by Greg_C.

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
5 years 6 months ago #312459

Hi,

I'm afraid this would require to do modifications in your Joomla template to be able to have the "main" area (where the current component displays itself) moved outside the HTML structure of the template.
Doing the change only for the HikaShop products listing pages is easy.
You can just add such code :

if(@$_REQUEST['option'] == 'com_hikashop' && @$_REQUEST['ctrl'] == 'product' && @$_REQUEST['task'] == 'listing') {
// The page is currently displaying a products listing in the main area of the template
}
The hard part is to place that code in the template code with the correct modifications to adapt the template. I'm afraid you'll have to seek help at your template provider for that.

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

  • Posts: 141
  • Thank you received: 3
5 years 6 months ago #312472

Hi, Nicolas, Thank you for your hint. I am trying to solve this problem by using module for product listing and simply assign this module to full width position. I created New Hikashop Content Module and assigned this module to Menu Item with Item Type Featured Articles. However this solution is not working with Hikashop Filter Module because I need to indicate in Hikashop Filter Module id of the Hikashop product listing menu. Is it possible to somehow solved this problem and use Hikashop Content Module together with Hikashop Filter Module ?

Regards,
Greg

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
5 years 6 months ago #312479

Hi,

No, you can't do this with a module. The filter system can only show its results in the main area of the template.

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

  • Posts: 141
  • Thank you received: 3
5 years 6 months ago #312509

Hi Nicolas, understood, so I need to analyze scenario with adding a code to the template code as you proposed - could you give me a hint where it should be placed in case of Prostar Template to give me a better picture how the change should looks like ?

Regards,
Greg

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

  • Posts: 141
  • Thank you received: 3
5 years 6 months ago #312514

Hi Nicolas, Problem is solved :) I got the information that I can solved this problem by assignment of the Hikashop Product Listing Menu Item to the copy of the template, which includes full width page size for content main area

Regards,
Greg

The following user(s) said Thank You: nicolas

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

Time to create page: 0.108 seconds
Powered by Kunena Forum