Setting up "Allow vendor selector"

  • Posts: 43
  • Thank you received: 0
8 years 5 months ago #241540

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.5.1

I'm trying to setup a vendor selection option at the checkout and am having difficulty trying to figure out what the process is to get this working.

I've looked at the documentation but it hasn't got much detail about how to set it up.
This is the documentation

I've set up my vendors and checked all the settings but I'm unable to find what I'm looking for. Any help would be great!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #241553

Hi,

If you want to have a vendor selector during the checkout ; you need first to create an "order" custom field with the type "vendor selector".
Then you will be able to select that custom field in the HikaMarket configuration so the value that your customer will choose during the checkout will be used by HikaMarket to assign the product to the vendor.

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: 43
  • Thank you received: 0
8 years 5 months ago #241620

Thanks for that. I've got the vendor selector to work. I'm now getting an error message every time I place an order.

Notice: Undefined property: stdClass::$order_tax_info in /websites/mc/mywebsite.com/administrator/components/com_hikamarket/classes/order.php on line 1270

Notice: Undefined property: stdClass::$order_tax_info in /websites/mc/mywebsite.com/administrator/components/com_hikamarket/classes/order.php on line 1270
Thank you for your purchase.

I also found another issue while logged into the front end of the website as a vendor when trying to view the vendors products. Whenever I try to view the list of vendor products either through the vendor control panel or via a direct menu link I get a 403 error saying access forbidden. I've checked all the ACLs and user rights but there isn't anything that is stopping the vendor from viewing their products.

Last edit: 8 years 5 months ago by wernejo.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #241640

Hi,

Please check that you still right have the setting "front-end editing" configured to "yes".
www.hikashop.com/support/documentation/1...tml#config_main_main

About the notice message ; it is not a blocking error.
On production sites, the PHP notices should not be displayed but they are useful in test/development in order to perform some debug in the code.
We already put in patch in HikaMarket few weeks ago and that patch would be include in the next release.
In the order class, for the line 1270, you can replace

$n = is_string($order->$k) ? $order->$k : serialize($order->$k);
By
if(!isset($order->$k))
	continue;
$n = is_string($order->$k) ? $order->$k : serialize($order->$k);
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: 43
  • Thank you received: 0
8 years 5 months ago #241659

Thanks for that code but now I'm getting another error message.

Notice: Undefined property: stdClass::$order_payment_price in /websites/mc/mywebsite.com.au/administrator/components/com_hikamarket/classes/order.php on line 1286

but at least I'm getting the thank you message appearing now.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #241671

Hi,

In the file, for your line 1286 ; you can put the same kind of patch that the previous one.
Your line 1286 should be that one:

$v = $order->$k;
And you can place that code
if(!isset($order->$k))
	continue;
$v = $order->$k;

As the previous patch ; it is already in HikaMarket and will be include in the next release.

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: 43
  • Thank you received: 0
8 years 5 months ago #242905

Thanks for your help but I've realized that I've been getting another error appearing on the view order details page when I've logged in as a vendor.

This is the error I'm getting

Warning: Invalid argument supplied for foreach() in /websites/mc/website.com.au/components/com_hikamarket/views/ordermarket/view.html.php on line 453

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #242932

Hi,

Thanks for the report.
I will continue my investigation in order to understand why you do not have any tax order info.
Temporally, in order to avoid that problem, please add just before the line 453 and his "foreach"

if(empty($order->order_tax_info)) $order->order_tax_info = array();
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.071 seconds
Powered by Kunena Forum