Custom Fileds - Product and Checkout user data

  • Posts: 5
  • Thank you received: 1
9 years 10 months ago #185099

-- url of the page with the problem -- : not yet upline
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.13
-- Browser(s) name and version -- : Firefox, chrome, IE
-- Error-message(debug-mod must be tuned on) -- : No error message

Scenario:

Customers are Guest checkout - not registered users

Product is worth $100

If customer is a member of an outside organisation (eg CMI) they can get the product for $20 less = $80 as long as they provide their CMI member number.

How can I have the product show as the normal price, then when the customer selects that they are a CMI member, it lowers the price and shows a field for them to enter their CMI member number and is mandatory.

Then the details are able to be seen in the Order and are stored in the database.

I have been looking at Options and Custom fields with Categories but cannot seem to get exactly what I am trying to achieve.

I have read:

www.hikashop.com/support/documentation/i...p-field-listing.html

www.hikashop.com/support/support/documen...shop-field-form.html

www.hikashop.com/support/documentation/75-entry-listing.html

www.hikashop.com/support/support/documen...ct-form.html#options

and numerous forum items.

Thanking you for your assistance.

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

  • Posts: 5
  • Thank you received: 1
9 years 10 months ago #185109

In Virtumart 1.1.7 this is done by the following:

Create product
Create 2 variants (Non CMI Member, CMI Member) with their respective prices
In CMI Member variant add custom field called CMI Member Number and make it mandatory


Customer selects product, has choice of Non CMI Member or CMI Member. If customer chooses CMI Member the custom field appears and the customer cannot click next until the field is filled in.

If customer then clicks back to variant Non CMI Member, the custom field disappears and they can then click next.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 10 months ago #185167

Hi,

I see two solutions:
- Create custom item fields (one for the CMI/Non CMI choice, one for the CMI member) and use the "Display limited to" and "required" option of the CMI number field to have the exact same display that you want.
The only thing with that method is that you can't set a different price for the different choices like you would with variants so it would require a small plugin to be developed to modify the price of the product based on the selection. Any PHP developer should be able to easily do that.

-Another solution would be to have the two prices on the product but attached to different user groups. Then, create your two custom fields of the type "user" so that they appear on the checkout during the registration and use this extension extensions.joomla.org/extensions/extensi...oup-ftw-for-hikashop to force the user group of the customer to the user group with the lower price. That way, once the user login/register on the checkout, the prices of the products with the CMI member discount would all get their CMI member prices instead of their public prices. So if you have several products and that the customers can purchase several products with a CMI member discount, it's actually a better approach as they only have to enter their number once, and on top of that it doesn't require any coding.

Note that both of these solutions will require the use of the Business edition of HikaShop.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum