- Posts: 62
- Thank you received: 0
Custom Fields at checkout for particular product..
11 years 6 months ago #194266
by TheEdge
Custom Fields at checkout for particular product.. was created by TheEdge
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
Hi,
I am selling a number of products in the shop. However for one or two of those products I would like to gather some additional information from the user at time of checkout. Not for all products, only those two.
Is this possible? And if so how do I go about doing it? If you can point me at the necessary views etc. I have to change and provide some sample PHP code that would be great!!
--D
-- Joomla version -- : 3.4.0
Hi,
I am selling a number of products in the shop. However for one or two of those products I would like to gather some additional information from the user at time of checkout. Not for all products, only those two.
Is this possible? And if so how do I go about doing it? If you can point me at the necessary views etc. I have to change and provide some sample PHP code that would be great!!
--D
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 6 months ago #194277
by Mohamed Thelji
Replied by Mohamed Thelji on topic Custom Fields at checkout for particular product..
Hello,
A solution can be to use "Item" custom fields and restrict the displaying of these custom fields these two products by using the "category" restriction.
A solution can be to use "Item" custom fields and restrict the displaying of these custom fields these two products by using the "category" restriction.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194421
by TheEdge
Replied by TheEdge on topic Custom Fields at checkout for particular product..
Hi Mohamed,
That looks promising, but I cannot get it to work.... (More than happy to PM you login details if that is easier?). Basically the newly added custom field does not appear in the fields step of the checkout when I have purchased a product in the category to which it is associated.
This is what I have done:
- Added custom field
- Added Custom fields to the check out process
- Purchased a product from the professional category
I expected to see the custom field displayed in the custom field step but it is not there? Any ideas?
--D
That looks promising, but I cannot get it to work.... (More than happy to PM you login details if that is easier?). Basically the newly added custom field does not appear in the fields step of the checkout when I have purchased a product in the category to which it is associated.
This is what I have done:
- Added custom field
- Added Custom fields to the check out process
- Purchased a product from the professional category
I expected to see the custom field displayed in the custom field step but it is not there? Any ideas?
--D
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194424
by nicolas
Replied by nicolas on topic Custom Fields at checkout for particular product..
Hi,
If you look at the "table" setting of your custom field, you selected the table "product" when you created the field. In that case, the field will appear on the product edition page so that you can add extra data to the product in the backend. So that's not what you want.
What mohamed proposed is to select the table "item" and in that case, the field will actually be displayed on the product page of the frontend so that the customer can fill the field when adding the product to the cart.
Alternatively, if you want the field to display in the "fields" view of the checkout you need to select the table "order" when creating the custom field. The disadvantage of that type of custom fields is that you'll be able to only have one data in the order even if the customer purchase ten times the product, while withe custom fields of the table "item", your customer will be able to enter a different data for the custom field for each product he adds to the cart.
If you look at the "table" setting of your custom field, you selected the table "product" when you created the field. In that case, the field will appear on the product edition page so that you can add extra data to the product in the backend. So that's not what you want.
What mohamed proposed is to select the table "item" and in that case, the field will actually be displayed on the product page of the frontend so that the customer can fill the field when adding the product to the cart.
Alternatively, if you want the field to display in the "fields" view of the checkout you need to select the table "order" when creating the custom field. The disadvantage of that type of custom fields is that you'll be able to only have one data in the order even if the customer purchase ten times the product, while withe custom fields of the table "item", your customer will be able to enter a different data for the custom field for each product he adds to the cart.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194581
by TheEdge
Replied by TheEdge on topic Custom Fields at checkout for particular product..
Hi Nicolas,
Thanks for the detailed response. I have been able to add what I needed by using the "item" table as the basis for what I need.
--D
Thanks for the detailed response. I have been able to add what I needed by using the "item" table as the basis for what I need.
--D
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds