- Posts: 158
- Thank you received: 6
Ordering Vendors via Menu Item
- artisanwebandprint
-
Topic Author
- Offline
-- HikaShop version -- : 3.6
-- HikaMarket version -- : 1.6.6
-- Joomla version -- : 3..5
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : n/a
Hello,
I am trying to order the vendors in my hikamarket store: artrageus1.com/members
Based upon your recommendation, I added a "Custom Field" radio button with 6 options. I ordered them within the custom field:
Then I setup the menu to show these vendors according to the custom field "membertype".
If I change it from ascending to descending it doesn't modify the order. Furthermore, it is showing Artists 10% before Artists 25% which is not how it's ordered within the "value" area of the custom field type. Therefore, I'm not getting any logical result from the Ordering field.
May I request the following be considered:
1. Add the ability to create modules that only display vendors that meet the selected "values" from the custom field. This way I can stack the vendors in filtered modules that will have headers. (ie: all artists vendors in one module with the title "Artists", authors in a second module, and authors in a third module).
2. Add the ability to display the custom field under the vendors name. You can see from my configuration that I've set all views to Yes so the custom field shows, but nothing is turning up on the front-end. I also have it set within the global configuration to show.
Please Log in or Create an account to join the conversation.
In the file "components/com_hikamarket/views/vendormarket/view.html.php" please replace
For the rest, the selection of the column is working fine.
Please understand that it is far better to use numeric values instead of text if you want to perform a sort ; because that is made directly by the database.
So please use numeric data for the "value" of the "values".
About your requests.
1. I understand your request but I can't add that feature directly in the HikaMarket settings.
But it is already possible to create such kind of feature thanks to a custom plugin, using the trigger "onBeforeVendorListingDisplay".
The plugin "HikaMarket / Vendor Location" is a sample of plugin which is using that filter in order to filter the vendors depending the location given by the user.
Future version of HikaMarket will also have trigger to allow to extends the settings of the menus/modules, like HikaShop currently have. The design of the menu/module edition will also be improved in order to have the same look that HikaShop one.
2. I'm sorry but your configuration looks wrong to me.
You're using an "Access Level" so that's logical that the customer field is not display for everybody in the front-end.
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.
- artisanwebandprint
-
Topic Author
- Offline
- Posts: 158
- Thank you received: 6
Jerome wrote: In the file "" please replace
Which File?
Jerome wrote: I'm sorry but your configuration looks wrong to me.
You're using an "Access Level" so that's logical that the customer field is not display for everybody in the front-end.
Ah, that makes sense. I thought Access Level meant who could actually configure these custom fields. Of course it's for who can see them. Facepalm.
Please Log in or Create an account to join the conversation.
I have edit my previous message ; little mistake with the clipboard
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.
- artisanwebandprint
-
Topic Author
- Offline
- Posts: 158
- Thank you received: 6
I have now updated the file "components/com_hikamarket/views/vendormarket/view.html.php" with the code you provided and when I change the order from ascending to descending, it does change the order. This is an improvement. The next problem is that I have sorted the members in the menu item based on a custom field called "Membertype". In membertype I have the Types sorted in the order that I want them to appear on the menu item page. The problem is that the menu item display is not acknowledging that order. Instead it is sorting them by the custom field membertype using alphabetical sorting. I would like it to be sorted the way I have them ordered in the custom field, like this:
Instead I am getting Artists-10% first and the rest of the Types alphabetically.
Thanks for you help on this.
Dawn
Please Log in or Create an account to join the conversation.
Please understand that it is far better to use numeric values instead of text if you want to perform a sort ; because that is made directly by the database.
So please use numeric data for the "value" of the "values".
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.
- artisanwebandprint
-
Topic Author
- Offline
- Posts: 158
- Thank you received: 6
Please Log in or Create an account to join the conversation.
Please understand that it is far better to use numeric values instead of text if you want to perform a sort ; because that is made directly by the database.
So please use numeric data for the "value" of the "values".
What I am trying to explain you is that you have to use numeric values :
The other part is ; did you update your vendors after modifying the custom field values ?
Because if in the database, the stored value is still "Artist 25%" and "Author", but not "1. Artist 25%" and "6. Author" ; the sorting won't change.
The display of the custom fields is using the HikaShop custom field class and will convert the value (so, a number) into the corresponding "Title".
The value is just the data to store in your database.
After that, I see that you are still using HikaMarket 1.6.6 ; we have release HikaMarket 1.6.7 few weeks ago and that version is now stable.
www.hikashop.com/support/documentation/1...arket-changelog.html
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.
- artisanwebandprint
-
Topic Author
- Offline
- Posts: 158
- Thank you received: 6
Please Log in or Create an account to join the conversation.