Select variants when making orders

  • Posts: 9
  • Thank you received: 0
1 month 23 hours ago #314207

-- HikaShop version -- : 2.0.1
-- HikaMarket version -- : 4.2.2
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.2

It is possible when vendor create orders, can choose variants of products? In Hikamarket?

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
1 month 8 hours ago #314209

Hello,

In the HikaMarket order edition, when you add an existing product, you can select the main product but also its variants.
There is a "+" like for the categories and it will display the products' variants, so the vendor will be able to choose the one he wants.
HikaMarket will retrieve the product price and details automatically to fill the form.

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: 9
  • Thank you received: 0
4 weeks 2 days ago #314217

Please, can you send me screenshot of "+" button, i can't find it

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
4 weeks 2 days ago #314229

Hello,

Since there is no variants for the demo account in the demo website, I can just show you how the "+" is displayed.
It's the same for the selection of variants than the folders : pasteboard.co/IN4vtRk.png
But instead of showing the folder icon, the main product still have the "product icon" with the "+" just near so you can see its variants.

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

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

  • Posts: 9
  • Thank you received: 0
4 weeks 1 day ago #314248

Thanks, it was helpfull for me, but when you search by product_code of variants (for example product_code of variant is 1234_20), nothing appear in search result, but it works when you search by product_code of main product (for example product_code of main product is 1234), it detect only the main product not variants in order section in Hikamarket, please can you solve this problem, you may write any php code

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
4 weeks 6 hours ago #314252

Hello,

We will look into it.
The namebox system is part of HikaShop and HikaMarket ; since you're using the search, it filters the content and it also filter the variants under the product.
We have to see how we can improve that behavior in all components.

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: 9
  • Thank you received: 0
3 weeks 1 day ago #314355

can you do something to enable this function, i'm ready to pay for it (to enable searching by product_code of variants in namebox system in hikamarket order edition)

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
2 weeks 6 days ago #314368

Hello,

Can you please clarify your request ?
The search on "product code" should work on variants too if their product code is what you're looking for.

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: 9
  • Thank you received: 0
2 weeks 6 days ago #314383

When you type product_code of variants in namebox field, not finding the variant, but it work when you type product_code of main product, it finds only main product

I need function that when you type product_code of variants, it should find the variant of product (see the attachment)
It work on you?

Attachments:

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
2 weeks 5 days ago #314385

Hello,

We were able to understand and reproduce the issue.
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the content

	if($load_variants) {
		$typeConfig['options']['tree_url'] .= '&variants=1';
	}
By
	if($load_variants) {
		$typeConfig['options']['tree_url'] .= '&variants=1';
		$typeConfig['url'] .= '&variants=1';
	}
And it should fix the issue.
You can use the same patch for the HikaShop product class ; it will affect the namebox search in the HikaShop backend.

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

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

  • Posts: 9
  • Thank you received: 0
2 weeks 5 days ago #314426

Thans it's worked!
U can write me ur e-wallet, i'll donate)


By adding this code we are able to select "+" button after typing in search area, it's good

But is it possible when you paste or type product_code of variants, would it appear only one variant of product? without selecting "+" button


See video:
drive.google.com/file/d/1yL1HNkCDTwMHHHz...tBR/view?usp=sharing

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

  • Posts: 23870
  • Thank you received: 3705
  • MODERATOR
2 weeks 4 days ago #314438

Hello,

In order to allow the search directly on variants, it requires more modifications in the class ; to load the main product when a variant is found.
It would be possible to it will require some time to develop the appropriate patch ; it would be more than a few lines of code.

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

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

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