Different custom field for different products

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #195762

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

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195764

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

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.

So you can create custom field and just associate them for one single product.

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

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

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #195806

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

Last edit: 9 years 8 months ago by EricL.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 8 months ago #195840

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.

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

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #195858

Hi,

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.063 seconds
Powered by Kunena Forum