Skip to main content

Select variants when making orders

More
6 years 9 months ago #314207 by javabek
-- 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.

More
6 years 9 months ago #314209 by Jerome
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.

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

More
6 years 9 months ago #314217 by javabek
Please, can you send me screenshot of "+" button, i can't find it

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

More
6 years 9 months ago #314229 by Jerome
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.
The following user(s) said Thank You: javabek

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

More
6 years 9 months ago #314248 by javabek
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.

More
6 years 9 months ago #314252 by Jerome
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.

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

More
6 years 8 months ago #314355 by javabek
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.

More
6 years 8 months ago #314368 by Jerome
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.

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

More
6 years 8 months ago #314383 by javabek
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?

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

More
6 years 8 months ago #314385 by Jerome
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
Code:
if($load_variants) { $typeConfig['options']['tree_url'] .= '&variants=1'; }
By
Code:
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.
The following user(s) said Thank You: javabek

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

More
6 years 8 months ago #314426 by javabek
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.

More
6 years 8 months ago #314438 by Jerome
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.
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.212 seconds
Powered by Kunena Forum