- Posts: 4
- Thank you received: 0
Different custom field for different products
11 years 6 months ago #195762
by EricL
Different custom field for different products was created by EricL
-- HikaShop version -- : 1411161808
-- Joomla version -- : 3.x
Hi,
I run a shop where people subsribe with their dog for a training course. They need to add some data when signing on for the course. This is done with custom fields (6) like dogs name, date of birth, type etc, in the order section. This woks very good. These data entries are mandatory. This data is also used by the trainers.
Now I have a different course and I want them to fill in different data. like their type of car, brand, color etc.
So I have multiple products with multiple mandatory data they have to fill in.
The data needs to be saved because it is needed by the trainers.
is this possible in Hikashop?
Eric
-- Joomla version -- : 3.x
Hi,
I run a shop where people subsribe with their dog for a training course. They need to add some data when signing on for the course. This is done with custom fields (6) like dogs name, date of birth, type etc, in the order section. This woks very good. These data entries are mandatory. This data is also used by the trainers.
Now I have a different course and I want them to fill in different data. like their type of car, brand, color etc.
So I have multiple products with multiple mandatory data they have to fill in.
The data needs to be saved because it is needed by the trainers.
is this possible in Hikashop?
Eric
Please Log in or Create an account to join the conversation.
11 years 6 months ago #195764
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Different custom field for different products
Hi,
In HikaShop 2.4.0 ; it is now possible to have item custom field depending several categories and also depending specific products.
www.hikashop.com/support/support/documen...ashop-changelog.html
Regards,
In HikaShop 2.4.0 ; it is now possible to have item custom field depending several categories and also depending specific products.
www.hikashop.com/support/support/documen...ashop-changelog.html
So you can create custom field and just associate them for one single product.Custom order fields can now be displayed only if a product, or at least one product of a category, is in the cart Custom item/product/contact fields can now be restricted by product.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: EricL
Please Log in or Create an account to join the conversation.
11 years 6 months ago - 11 years 6 months ago #195806
by EricL
Replied by EricL on topic Different custom field for different products
Jerome,
Yes but where is this data stored? And also if I use the "Item" then a maximum of 2 items will be visible with the product. You can make more but they will not be visible with the product.
Also it looks like it is stored with the product and not with the actual purchase, so there is no relationship between purchase and product.
If you use the "order" the data is stored with the initial order which is perfect, but not practical for different type of articles.
The best option would be to have the custom field with choice of categories in the "order". (obviously this will only work with one product at a time)
Eric
Yes but where is this data stored? And also if I use the "Item" then a maximum of 2 items will be visible with the product. You can make more but they will not be visible with the product.
Also it looks like it is stored with the product and not with the actual purchase, so there is no relationship between purchase and product.
If you use the "order" the data is stored with the initial order which is perfect, but not practical for different type of articles.
The best option would be to have the custom field with choice of categories in the "order". (obviously this will only work with one product at a time)
Eric
Last edit: 11 years 6 months ago by EricL.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #195840
by nicolas
Replied by nicolas on topic Different custom field for different products
Hi,
1. The data is stored in the hikashop_cart_product table before the order is created. After that the data is stored in the hikashop_order_product. So the data is available below the product name in the checkout cart, the order details page, the invoice, the email notifications...
2. There is no limit to the number of custom item fields to be displayed on a product page. We have other users of HikaShop with tens of custom item fields on the same product page. I don't see why it would be different for you.
3. That's wrong. If you use item fields, the data is stored with the purchase, not with the product. That's how the custom item field value can be displayed on the order details page, etc.
4. If nevertheless you want to use custom order fields, as Jerome wrote in his message, custom order fields can be restricted to products and/or categories since HikaShop 2.4.0. And it can even work with several products at a time.
1. The data is stored in the hikashop_cart_product table before the order is created. After that the data is stored in the hikashop_order_product. So the data is available below the product name in the checkout cart, the order details page, the invoice, the email notifications...
2. There is no limit to the number of custom item fields to be displayed on a product page. We have other users of HikaShop with tens of custom item fields on the same product page. I don't see why it would be different for you.
3. That's wrong. If you use item fields, the data is stored with the purchase, not with the product. That's how the custom item field value can be displayed on the order details page, etc.
4. If nevertheless you want to use custom order fields, as Jerome wrote in his message, custom order fields can be restricted to products and/or categories since HikaShop 2.4.0. And it can even work with several products at a time.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #195858
by EricL
Replied by EricL on topic Different custom field for different products
Hi,
Nicolas/Jerome, yes I figured this out also. Thx.
Eric
Nicolas/Jerome, yes I figured this out also. Thx.
Eric
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds