Two different product listing menus

  • Posts: 634
  • Thank you received: 16
8 years 9 months ago #230115

-- HikaShop version -- : 2.6.1
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.4.8

I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.

But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...

But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?



This is the link associated

http://mydomain.com/administrator/index.php?option=com_hikamarket&ctrl=menus&fromjoomla=1&task=edit&cid[]=511

Attachments:
Last edit: 8 years 9 months ago by PeterChain.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #230118

Hi,

It is "right" yes.
But I will remove that tab (and link) in the next release.
There is currently no option for the "vendor product listing" ; it is just pointing to the "product listing" for vendors and there is no options for that menu.
Currently, only the "vendor listing" menus have settings.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: PeterChain

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

  • Posts: 634
  • Thank you received: 16
8 years 9 months ago #230125

Thank you Jerome,

and could there be some trick like using ReReplacer to change something in the output HTML so I can force only the view of a certain category in the otree representation?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #230151

Hi,

I'm afraid I cannot.
The tree is generated dynamically using the oTree lib and the data provided by the view.
I don't see how you can perform replacements without breaking the JSON...
No ; you'll need to perform a view override if you want to do something like that..

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 634
  • Thank you received: 16
8 years 9 months ago #230191

So you mean like by creating an override of the listing.php I could change the way Otree.js is invoked and force only a certain category to be shown?

if so, could you suggest the code that should be tweaked?

thank you.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #230193

Hi,

In the view "productmarket | listing", you can find the code

<?php echo $this->shopCategoryType->displayTree('hikam_categories', $this->rootCategory, null, true, true); ?>
Thanks to that, the view is displaying the category tree and use the "rootCategory" has the root category.
You can use another value for the rootCategory if you want.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 634
  • Thank you received: 16
7 years 11 months ago #256512

I want to add some modification to this OTree functionality.

With your advise I maanged to make OTree start showing form the category I like

<?php echo $this->shopCategoryType->displayTree('hikam_categories', 2 , null, true, true); ?>

in this case this is Product Category but not root nor vendor nor other categories that are of no interest to my frontend users.

Now I need to add a second category to that is in the same level as product category, I mean that is also a son of Root.

I would like to do something like this:
<?php echo $this->shopCategoryType->displayTree('hikam_categories', array(2, 157) , null, true, true); ?>

Of course this might look ridiculous, but I don't know where to start from...

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #256526

Hi,

It could be an interesting addition in the HikaShop "category sub" Type.
But please note that this type is provided by HikaShop and not HikaMarket ; that's why the variable starts with "shop" in the HikaMarket view.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.053 seconds
Powered by Kunena Forum