characteristic select box override

  • Posts: 36
  • Thank you received: 0
11 years 2 months ago #161461

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I wanted to override the output of a dropdown select box of the characteristic field of a product. But there is no way to override it on the normal way because as far as I can see the select box is created at "com_hikashop/types/characteristic.php".

I want to set the size of the selectbox from 1 to the number of options the selectbox has. How can I do this?

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

  • Posts: 84298
  • Thank you received: 13697
  • MODERATOR
11 years 2 months ago #161484

Hi,

You can override it too.
You need to copy that file to : templates/YOUR_TEMPLATE/html/com_hikashop/administrator/types/characteristic.override.php
Then, in that file, change the class name from hikashopCharacteristicType to hikashopCharacteristicTypeOverride
The system will use automatically your override instead of the type file.

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

  • Posts: 36
  • Thank you received: 0
11 years 2 months ago #162305

del

Last edit: 11 years 2 months ago by svanschu.

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

Time to create page: 0.033 seconds
Powered by Kunena Forum