Custom Fields between Characteristics selectors - Customize Display

  • Posts: 38
  • Thank you received: 2
4 years 10 months ago #306779

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.1.29

Our products use a combination of Characteristics and Custom Fields to reduce the number of needed variations because some choices don't affect the price. For example we have a product with many characteristics, one characteristic is for Paper Type: (Classic +0) or (Premium +10). There is a custom field for Classic Paper Choices and another custom field for Premium Paper Choices. Although we do know that we will need to have a bit of JavaScript to display one field or another depending on the Paper Type selection (we know already how to do this), we need to know if there is a way to break out each characteristic and custom field individually so we can place the custom field in between the Paper Type field and another Characteristic (Number of Pages)? We didn't know if you already had a method to do this?

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
4 years 10 months ago #306780

Hi,

There is no easy way to do that. It will require editing the views of the product page to move around the code displaying both.
The main problem you'll have in doing so is that the code to display the characteristics is in the file administrator/components/com_hikashop/types/characteristic.php
So it's not a view and you'll have to move that code to the product page views to be able to insert the custom fields inside the characteristics.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum