- Posts: 29
- Thank you received: 0
Multi Select Option in Variants Drop Down list
We are ready to launch our project demo.aappakadai.com but struck with a new change request from the client side.
There are two change requests from client
1) Can we give multi select option in Variants Drop Down (Characteristics selection method) list or checkboxes instead of radio button for the selection of multiple characteristics ? - Let me know if we can do this using some code change /configuration change in hikashop
2) Can we give a booking/ordering remarks in checkout page as we are using Cash on delivery to method. So the Remark (Text Area) will help the customer to give more details on the shipping address or any other message they want to convey to us.
Please help me in handling/implementing these change requests.
Regards,
Binoy
Please Log in or Create an account to join the conversation.
1. That's not possible. No amount of modifications would allow that. It would require an important recoding of the code handling the characteristics.
2. You can do that by creating a custom field of the table "order" (business edition) via the menu Display->Custom fields
Please Log in or Create an account to join the conversation.
Please let me know if we could use checkboxes instead of radio button to achieve our requirement. Also let me know the files (display and controller) handles the characteristics feature so that i can try to do some code changes as my own.
Regards,
Binoy
Please Log in or Create an account to join the conversation.
The file used to display the characteristics is : administrator/components/com_hikashop/types/charactersitic.php
Changing the HTML to display checkboxes instead of radios is easy. The problem is that all the javascript behind the radio buttons will have to be rewritten to handle checkboxes. And that's really complex.
Please Log in or Create an account to join the conversation.
Please let me know the Javascript related to the Characteristics radio button. Let me try to modify the javascript to achieve the requirement.
Regards,
Binoy
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
We don't plan on changing the characteristics dropdowns to checkboxes as I don't see why someone would want to select all the blue variants of a product to add all of them in the cart at once. In such cases, custom fields are probably more appropriated.
Please Log in or Create an account to join the conversation.
Here's an example :
Columns of table -> product_name | product_code | product_price | product_quantity |
-> Sheath dress Deffinesse | cocktail dress-R | $ 55.00 | 1 |
Then it should withdraw this product varint
Columns in table -> Code | Size | Color | Quantity
-> cocktail dress-2_35_40 | M | white | 1 |
-> Cocktail dress-2_33_40 | S | white | 1 |
In general, the request must give such kind of output
Product Name -> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 1 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 2 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 3 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 4 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
Product Name -> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 1 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 2 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 3 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It outputs this product variant 4 -> + + + + + + + + + + + + + + + + + + + + + + + + + + +
It should output all these information above. Could you write me correct sql code for this, please?
Best regards,
Please Log in or Create an account to join the conversation.
In order to load all the data of all the main products you can use such SQL:
SELECT * FROM #__hikashop_product WHERE product_type='main';
In order to load all the data of all the variants of a main product you can use such SQL:
SELECT * FROM #__hikashop_product WHERE product_parent_id=XXX;
Then, to know the characteristic values of a variant you an use such SQL:
SELECT * FROM #__hikashop_variant AS var LEFT JOIN #_hikashop_characteristic AS char ON var.variant_characteristic_id=char.characteristic_id WHERE var.variant_product_id=XXX;
Please Log in or Create an account to join the conversation.
$sql = 'SELECT *
FROM i1gmn_hikashop_product, i1gmn_hikashop_product_category, i1gmn_hikashop_price
WHERE i1gmn_hikashop_product.product_id = i1gmn_hikashop_product_category.product_id
AND i1gmn_hikashop_product.product_id = i1gmn_hikashop_price.price_product_id
AND i1gmn_hikashop_product_category.category_id = 97 ';
There is selectet product_name, product_code, product_price
Table displays like this
|Produc name|SSSSSSSS|$100|
And i want that here display like this:
Product information->|Produc name|SSSSSSSS|$100|
Product variants->|XXXXXXXXX|SSSS_111| 35 |
Product variants->|XXXXXXXXX|SSSS_111| 35 |
And hier shows with variants product and how i can select one product and his variants->(product_code)
and can you here add your sql code for this:
$sql = 'SELECT *
FROM i1gmn_hikashop_product, i1gmn_hikashop_product_category, i1gmn_hikashop_price
WHERE i1gmn_hikashop_product.product_id = i1gmn_hikashop_product_category.product_id
AND i1gmn_hikashop_product.product_id = i1gmn_hikashop_price.price_product_id
AND i1gmn_hikashop_product_category.category_id = 97 ';
I am try do but i can't it make help me please thank you.
Please Log in or Create an account to join the conversation.
You cannot do what you want in one SQL query. You'll need several of them with PHP in order to handle all that.
That's because variants are not linked to categories but only to their main product via the product_parent_id column.
So you would have to do as I said in my previous email with the first query on the product table for the main products and a second one for the variants of these products.
Please Log in or Create an account to join the conversation.
product_name | product_code | size | color |
SSSSSSSSSS |SSSSSSSS_5 | 35|
SSSSSSSSSS |SSSSSSSS_5 | red|
There is in one column size contains color and size because table i1gmn_hikashop_characteristic build uncorrect i want get result like this
product_name | product_code | size | color |
SSSSSSSSSS |SSSSSSSS_5 | 35| red|
SSSSSSSSSS |SSSSSSSS_5 | 38||white|
So and my question how i can divide column characteristic_value from table i1gmn_hikashop_characteristic because this is column contains color and size please can you give me php or sql code or tell me idea how i can divide this please?
Please Log in or Create an account to join the conversation.
Please explain how you get these results.
Otherwise it will be too difficult to help you correctly.
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.
this is link for site www.sevenrow.com/en/women/dresses there if you use price filter all name products translated on russian language how i can fix this error?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Are you using any SEF module ? if yes can you disable it and try it again ?
If it still doesn't work, can you give me a temporary access to your back through a private message so that I can directly test it ?
Thank you.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Sorry for the delay.
We are not able to reproduce the problem on our end. We would need a FTP access in order to debug the issue directly on the website.
Would it be possible for you to provide that via our contact form ?
www.hikashop.com/contact-us.html
Please Log in or Create an account to join the conversation.