I would like to be able to access a list of vendor

  • Posts: 8
  • Thank you received: 0
9 years 8 months ago #195331

-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.1
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.4.38
-- Browser(s) name and version -- : Firefox 36.0.1

Hello
I would like to be able to access a list of vendors on the basis of their state
Example: francecomm.org/index.php?option=com_hika...arket&layout=listing and add address_state = state_70Haute_Saone
How to do this?
Thanks for your reply

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

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

Hi,

Even if there is no such filter in the HikaMarket vendor listing ; it is something that you can add thanks to a plugin.
HikaMarket have a trigger called "onBeforeVendorListingDisplay" which allow you to modify the SQL query made to list the vendors.
www.hikashop.com/support/documentation/1...VendorListingDisplay

Thanks to that trigger, you can modify the filters ; something like that

public function onBeforeVendorListingDisplay(&$view, &$sql_params) {
  if(JRequest::getString('state', '') == 'hautesaone') {
    $db = JFactor::getDBO();
    $slq_params['filter']['vendor_address_state'] = 'vendor.vendor_address_state = ' . $db->Quote('state_70Haute_Saone');
  }
}
You can also check the menu item id or access to the view object to read some parameters (see if you're listing the menu or a module, etc).

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: 8
  • Thank you received: 0
9 years 8 months ago #195420

Too complicated for me, I drop
Thank you

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

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

Hi,

We have in our TODO list the support of the filters like HikaShop Business propose for the products.
But the current filter system in HikaShop need some modifications in order to be extensible and be used by HikaMarket ; so it won't be for tomorrow but I hope we will be able to add it soon.

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: ssnobben

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

  • Posts: 8
  • Thank you received: 0
9 years 8 months ago #195434

OK I'll wait
Thank you

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

  • Posts: 29
  • Thank you received: 1
9 years 2 months ago #213685

Hello,

I was wondering if there was any update on this. As I expect my shop will have over 100 vendors, so I need a way to filter them.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #213694

Hi,

How do you want to filter them ?

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: 29
  • Thank you received: 1
9 years 2 months ago #213763

It would be great to have

Sort by : name (asc/des)

Filter by custom field : Premium/Standard

Or perhaps another custom field: Local/International

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #213810

Hi,

Thanks for the example.

I want to use the HikaShop filter system in HikaShop but unfortunately, it has been made long before HikaMarket and the team didn't think that it could be use in an add-on.
So, I can't use the HikaShop filters for the vendor listing for the moment.
That's mostly why I made the plugins "vendor location" in HikaMarket, to have a special filter for the vendor listings and also for the product listings.

One idea was to perform a re-factoring of the filters, to add new features, some flexibility and the possibility to use it in external components (like HikaMarket). It is an important development and I'm currently working on other big development for HikaShop (refactoring of the cart & checkout).
Another solution would be to make a light filter system directly into HikaMarket, if I do so, it could be a full filter system because using the HikaShop system will be the best for everyone.

I updated the feature request in the HikaMarket TODO list ; I will see with the HikaShop team how and when we could work on that re-factoring and will decide if I create a lite version or not.

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: ssnobben

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

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