Skip to main content

Display | Custom Fields | Item | Main Attributes

9 years 9 months ago #260974 by ElectronicCarpenter
-- url of the page with the problem -- : varsitysportshop.com/lawnwood/product/in...al-customized-jacket
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.6

What is the purpose for the Attributes in the main attributes section of a custom field?

I know I can make a radio button to ask would you like this option.
I f the customer answered yes.
Then a 2nd custom field that happens to be a text field will appear.

I need this to happen and add 5$ to the option costs when this is selected.
How do Ido this?
PJ

Loving the new updates..

Sell more, sell better, do not cheapen your brands.

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

9 years 9 months ago #261012 by nicolas
Hi,

1. It's to add HTML attributes to the field. For example, you could write :
autocomplete="off"
and that would disable the browser autocomplete on the text field.

2. Two ways are possible:
- options allow you to add such fee, so you could use an option instead of a custom field for the fee. However, there is no setting to link the display of a custom field to an option. So you would have to add some custom javascript on the page to handle that yourself. It should be a matter of a few lines of basic javascript so any developer should be able to do that.
- You could keep using custom fields, and have a price override plugin developed to change the product price in the cart based on the value of the custom fields (basing yourself on the donation plugin in HikaShop). It should also only require a few lines of PHP code.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum