I want to add a field in all my products

  • Posts: 9
  • Thank you received: 0
9 years 2 months ago #245690

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

Attachments:

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

  • Posts: 26275
  • Thank you received: 4045
  • MODERATOR
9 years 2 months ago #245700

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,


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.

  • Posts: 9
  • Thank you received: 0
9 years 1 month ago #245802

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?

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

  • Posts: 9
  • Thank you received: 0
9 years 1 month ago #245805

I have added screen shots of the custom field created.

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #245806

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.


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: 9 years 1 month ago by lousyfool.

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

  • Posts: 9
  • Thank you received: 0
9 years 1 month ago #245814

Hi

I have attached a full screen grab.:)

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #245815

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?


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.

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 1 month ago #245804

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.

The following user(s) said Thank You: Spark@jumpstart

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

  • Posts: 9
  • Thank you received: 0
9 years 1 month ago #245882

Thanks guys - it works now.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum