Vendor selection custom field error

  • Posts: 163
  • Thank you received: 11
5 years 3 months ago #309782

-- HikaShop version -- : 4.2.1
-- HikaMarket version -- : 3.0.2
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2.21
-- Browser(s) name and version -- : Firefox 68.0.1
-- Error-message(debug-mod must be tuned on) -- : Call to a member function setQuery() on null
[...]/administrator/components/com_hikamarket/types/vendor_selection.php:38

Hi,

I can not create a custom field with Vendor Selection type (in order table).

I just updated HikaMarket but the latest version does not fix the problem. The patch corrects the problem for the item table, but does it also correct the problem for order table?

Best regards

Edit : On item table, the problem also occurs.

Last edit: 5 years 3 months ago by nossibe63.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 3 months ago #309786

Hello,

You are referring to that forum thread ?
www.hikashop.com/forum/22-market-bug-rep...election.html#308502

Would it be possible to have more details about your custom field configuration ?

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: 163
  • Thank you received: 11
5 years 3 months ago #309800

I did several tests, here is the last one :

Table : order
Column name : pointretrait5
Label : Points retrait 5
Field type : Checkbox
Required : no
Front-end :no
Back-end Form : yes
Backend Listing : no
Published :yes
Core : no

Regards :)

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 3 months ago #309826

Hello,

If your field is a "checkbox", it cannot be a "vendor selector" ; you did not select the right type.

Regards,

PS : Screenshot can be easier than text for custom field settings.


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: 163
  • Thank you received: 11
5 years 3 months ago #309828

Sorry, it's not a checkbox... :blush:

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 3 months ago #309831

Hello,

Please provide a screenshot of the full configuration, when you edit the item.
The listing do not allow to see if the field will be displayed during the checkout, etc.

Afterwards, please check that you configured the "allow vendor selector" in the HikaMarket configuration :
www.hikashop.com/support/documentation/1...onfig_market_general

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: 163
  • Thank you received: 11
5 years 3 months ago #309851

Here is the creation (the hidden Display Back-end Form is set to yes) :




Here is the edition of the custom field that has just been created :




Neither this custom field nor any other is available on Allow vendor selector :



Regards

Attachments:
Last edit: 5 years 3 months ago by nossibe63.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 3 months ago #309854

Hello,

You have to follow the instructions from that forum post :
www.hikashop.com/forum/22-market-bug-rep...election.html#308530

It means, applying the patch AND using the right "vendor selector type"

Regarding the issue, the vendor selection type is deprecated and should use a namebox instead.


If you're not following these instructions, the bug will continue.

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

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

  • Posts: 163
  • Thank you received: 11
5 years 3 months ago #309875

$db = JFactory::getDBO();
do not work.

I added to the constructor
$this->db = JFactory::getDBO();
and it work fine !

Does it will be fixed or must I overide properly the file ?

Thank you Jerome ! Regards

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 3 months ago #309881

Hello,

The fix will be include in the coming release.
Please note that the vendor selector type you're using is deprecated ; only the namebox type will be supported in the future.
Only the namebox allow to have a good interface when having a lot of vendors ; the dropdown mode was switching to a popup which is not good enough.

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: 163
  • Thank you received: 11
5 years 3 months ago #309891

Great ! Thank you Jerome :)

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

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