- Posts: 100
- Thank you received: 1
displaying variant name instead of characteristics
- paddyrolls
-
Topic Author
- Offline
-- Joomla version -- : 3.3
-- PHP version -- : x5x
HI
I have a main product with 1 characteristic showing in a drop down. I would like the drop down to show the "variant name" instead of the "characteristic" value.
Could you advise which file i would edit for this.
Thanks
Patrick
Please Log in or Create an account to join the conversation.
You would have to edit the file administrator/components/com_hikashop/types/characteristic.php
You'll have to change that line which is where the characteristic value is set in the dropdown :
$values[$k]=$value->characteristic_value;
Please Log in or Create an account to join the conversation.
- paddyrolls
-
Topic Author
- Offline
- Posts: 100
- Thank you received: 1
Changing this file would mean that when I update it would be over written. I am not sure but could you tell me if there is an override option for this file?
Thanks
Patrick
Please Log in or Create an account to join the conversation.
That's indeed the case.
You can use the "characteristic display override" system as explained on our developer documentation if you want to do an override:
www.hikashop.com/support/support/documen...r-documentation.html
Please Log in or Create an account to join the conversation.
Im using 3.2.1 version.
Thank you
Please Log in or Create an account to join the conversation.
Please provide screenshots of what you want to do so that we can better understand your situation and what you want to change where.
Also, the change I was talking about was in the PHP part of that file, so the javascript code in that file was not concerned. Even now, you can ignore it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You want to remove the line:
Please Log in or Create an account to join the conversation.
PHP File attached.
link:
dfus.jls.co.il/%D7%9E%D7%9B%D7%A9%D7%99%...9E%D7%97%D7%95%D7%A7
Please Log in or Create an account to join the conversation.
Then it means that you have the display out of stock products setting activated in your HikaShop configuration.
Either turn off that setting, or also change the line:
if(!$config->get('show_out_of_stock',1)){
to:
if(true){
in that same file.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Then try using the line:
Please Log in or Create an account to join the conversation.
Thank you!
Please Log in or Create an account to join the conversation.