I want to add a field in all my products
- Spark@jumpstart
-
Topic Author
- Offline
- Warren
Less
More
10 years 4 months ago #245690
by Spark@jumpstart
I want to add a field in all my products was created by Spark@jumpstart
-- url of the page with the problem -- :
www.hedgehoglane.co.za
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
I want to add a field in all my products with regard to a 'delivery date'. I have attached a screen grab of what i want. i will need 3 different similar messages. i will need to have a particular message for different product items.
please can i be given guidance to do this. Struggling with the documentation.
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
I want to add a field in all my products with regard to a 'delivery date'. I have attached a screen grab of what i want. i will need 3 different similar messages. i will need to have a particular message for different product items.
please can i be given guidance to do this. Struggling with the documentation.
Please Log in or Create an account to join the conversation.
10 years 4 months ago #245700
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic I want to add a field in all my products
Hi,
You need to create a product custom field.
www.hikashop.com/support/documentation/i...shop-field-form.html
www.hikashop.com/support/documentation/i...p-field-listing.html
You can create a "single dropdown" field so you will propose only your 3 choices in the product edition.
Then you will need a view override to read the value of the field and display the content depending the product value.
www.hikashop.com/support/documentation/1...ize-the-display.html
Regards,
You need to create a product custom field.
www.hikashop.com/support/documentation/i...shop-field-form.html
www.hikashop.com/support/documentation/i...p-field-listing.html
You can create a "single dropdown" field so you will propose only your 3 choices in the product edition.
Then you will need a view override to read the value of the field and display the content depending the product value.
www.hikashop.com/support/documentation/1...ize-the-display.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- Spark@jumpstart
-
Topic Author
- Offline
- Warren
10 years 4 months ago #245802
by Spark@jumpstart
Replied by Spark@jumpstart on topic I want to add a field in all my products
Hi Jerome
The information does not need to be selected by the client. it is just a notice of 'expected time to take to delivery' which is listed as part of the product information.
I have created a product custom field but for reasons not apparent to me they are not visible on any selected products?
The information does not need to be selected by the client. it is just a notice of 'expected time to take to delivery' which is listed as part of the product information.
I have created a product custom field but for reasons not apparent to me they are not visible on any selected products?
Please Log in or Create an account to join the conversation.
- Spark@jumpstart
-
Topic Author
- Offline
- Warren
10 years 4 months ago #245805
by Spark@jumpstart
Replied by Spark@jumpstart on topic I want to add a field in all my products
I have added screen shots of the custom field created.
Please Log in or Create an account to join the conversation.
10 years 4 months ago - 10 years 4 months ago #245806
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic I want to add a field in all my products
Hi,
Your second screenshot is cut off too soon, so one can't see what you entered in the text area, if anything at all. If the field (= in this case its text area) is empty, nothing will be displayed.
Probably you want to enter as "Label" of the field something like "Delivery time" (after all it is the label, not the field content), and enter the field content "Usually dispatched in 3 - 7 working days" into the text area. It should be displayed then, if your restrictions for products/categories/user groups are set correctly (can also not be seen in your screenshot).
A different approach would be to not use text area, but just one field of type "Single dropdown" as Jerome already told you, then entering multiple values (including an "empty" one), so that for each product you can simply select one of multiple "pre-configured" delivery times, or leave it empty for products where you do not want to show any delivery time... because typically one product has only one delivery time.
This approach with "Single dropdown" and an empty value would also make the field restrictions for products or categories unnecessary, because you'd make the selection in the products themselves.
See the links Jerome gave you for more details in the documentation.
Your second screenshot is cut off too soon, so one can't see what you entered in the text area, if anything at all. If the field (= in this case its text area) is empty, nothing will be displayed.
Probably you want to enter as "Label" of the field something like "Delivery time" (after all it is the label, not the field content), and enter the field content "Usually dispatched in 3 - 7 working days" into the text area. It should be displayed then, if your restrictions for products/categories/user groups are set correctly (can also not be seen in your screenshot).
A different approach would be to not use text area, but just one field of type "Single dropdown" as Jerome already told you, then entering multiple values (including an "empty" one), so that for each product you can simply select one of multiple "pre-configured" delivery times, or leave it empty for products where you do not want to show any delivery time... because typically one product has only one delivery time.
This approach with "Single dropdown" and an empty value would also make the field restrictions for products or categories unnecessary, because you'd make the selection in the products themselves.
See the links Jerome gave you for more details in the documentation.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 10 years 4 months ago by lousyfool.
Please Log in or Create an account to join the conversation.
- Spark@jumpstart
-
Topic Author
- Offline
- Warren
10 years 4 months ago #245814
by Spark@jumpstart
Replied by Spark@jumpstart on topic I want to add a field in all my products
Hi
I have attached a full screen grab.
I have attached a full screen grab.
Please Log in or Create an account to join the conversation.
10 years 4 months ago #245815
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic I want to add a field in all my products
Ok, and now it's also obvious from the preview in the bottom right corner that this field has only a label but no content and, hence, will not be displayed ever.
Why don't you scrap and delete this text area custom field completely and use a single dropdown instead - as advised by Jerome in his first response as well in mine here above?
Why don't you scrap and delete this text area custom field completely and use a single dropdown instead - as advised by Jerome in his first response as well in mine here above?
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Spark@jumpstart
Please Log in or Create an account to join the conversation.
10 years 4 months ago #245804
by nicolas
Replied by nicolas on topic I want to add a field in all my products
Hi,
As Jerome said, you need to create a custom field of the table "product" and of the type "dropdown" via the menu Display>Custom fields.
Enter the different possible values into it. And then, in each product select the value you want to display in that field (at the bottom of the product edition interface) and save.
Then, you should see it on that product's product page as long as the frontend product page display setting of the custom field is turned on.
As Jerome said, you need to create a custom field of the table "product" and of the type "dropdown" via the menu Display>Custom fields.
Enter the different possible values into it. And then, in each product select the value you want to display in that field (at the bottom of the product edition interface) and save.
Then, you should see it on that product's product page as long as the frontend product page display setting of the custom field is turned on.
The following user(s) said Thank You: Spark@jumpstart
Please Log in or Create an account to join the conversation.
- Spark@jumpstart
-
Topic Author
- Offline
- Warren
10 years 4 months ago #245882
by Spark@jumpstart
Replied by Spark@jumpstart on topic I want to add a field in all my products
Thanks guys - it works now.
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds