- Posts: 640
- Thank you received: 16
Two different product listing menus
- PeterChain
-
Topic Author
- Offline
Less
More
10 years 7 months ago - 10 years 7 months ago #230115
by PeterChain
Two different product listing menus was created by PeterChain
-- 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
-- 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
Last edit: 10 years 7 months ago by PeterChain.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #230118
by Jerome
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.
Replied by Jerome on topic Two different product listing menus
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,
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.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
10 years 7 months ago #230125
by PeterChain
Replied by PeterChain on topic Two different product listing menus
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?
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.
10 years 7 months ago #230151
by Jerome
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.
Replied by Jerome on topic Two different product listing menus
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,
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.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
10 years 7 months ago #230191
by PeterChain
Replied by PeterChain on topic Two different product listing menus
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.
if so, could you suggest the code that should be tweaked?
thank you.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #230193
by Jerome
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.
Replied by Jerome on topic Two different product listing menus
Hi,
In the view "productmarket | listing", you can find the code
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,
In the view "productmarket | listing", you can find the code
Code:
<?php echo $this->shopCategoryType->displayTree('hikam_categories', $this->rootCategory, null, true, true); ?>
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.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
9 years 9 months ago #256512
by PeterChain
Replied by PeterChain on topic Two different product listing menus
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
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:
Of course this might look ridiculous, but I don't know where to start from...
With your advise I maanged to make OTree start showing form the category I like
Code:
<?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:
Code:
<?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.
9 years 9 months ago #256526
by Jerome
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.
Replied by Jerome on topic Two different product listing menus
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,
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.173 seconds