[Skip to main content](#vessel-content)

#  Profile for valioba

##

[![valioba's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8122-valioba "View valioba's Profile")

**[ Offline](/forum/user/8122-valioba)**

- **User Type:** User

- **Register Date:** 08 Jul 2012
- **Last login:** 12 years 10 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 16:16

- **Posts:** 2
- **Profile views:** 50

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  valioba's recent posts  (2 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#105237) | [Template override for characteristics](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#105237 "Hi All,  I'm trying to produce a characteristic over-ride to stop out of stock items showing in the drop down. However, I am currently hitting a brick wall.  For the characteristics: - -  Question, if the file is loaded into the class (require&#95;once ($chromePath); ) then why are the parameters $element and $params passed as references. Surely the require&#95;once loads the file and it becomes a part of the class and so has direct access to the class variables.  Note: hikashop&#95;characteristics&#95;html is called passing three variables, but only two are listed in the parameter list of the function.  To get a base to start from I have copied the code from characteristic.php (line 89 onwards) including the 'display' function. To prevent a name clash between this 'display' and the original one in the characteristic.php, I've renamed the function and only call in the new file to 'display&#95;characteristics'.  The theory is that the over-ride now consists of the very same code/functionality to create the characteristics as would occur if the over-ride didn't exist. The problem is that the display breaks.  If I clear $html ( $html=''; ) just before the return, I still get the broken output, so it looks as though there is an issue before that point and the return is somehow happening before hitting the intended exit point but I can't for the life of me, see the cause.  What am I missing? Has anyone got an example of a working over-ride that they are willing to share for customisation?  Regards, Martyn.  Broken display  Expected display")         Category: [General Talk about HikaShop](/forum/2-general-talk-about-hikashop "Suggest your feature requests and ideas for HikaShop")     Topic started 14 years 6 months ago, by [expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")       [Last Post](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#181022 "Hi,  If you want images, I would recommend to follow this tutorial:   www.hikashop.com/support/support/documen...isplay-by-color.html  If you want instead to have a dropdown, you can change the &quot;characteristic display method&quot; option of the configuration to &quot;dropdown&quot;. However, it's not possible to have images inside dropdowns in proper HTML, so you can't have both.") 11 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:14  Views:6018 | [Last Post](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#181022 "Hi,  If you want images, I would recommend to follow this tutorial:   www.hikashop.com/support/support/documen...isplay-by-color.html  If you want instead to have a dropdown, you can change the &quot;characteristic display method&quot; option of the configuration to &quot;dropdown&quot;. However, it's not possible to have images inside dropdowns in proper HTML, so you can't have both.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 11 months ago |
| [](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#105178) | [Template override for characteristics](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#105178 "Hi All,  I'm trying to produce a characteristic over-ride to stop out of stock items showing in the drop down. However, I am currently hitting a brick wall.  For the characteristics: - -  Question, if the file is loaded into the class (require&#95;once ($chromePath); ) then why are the parameters $element and $params passed as references. Surely the require&#95;once loads the file and it becomes a part of the class and so has direct access to the class variables.  Note: hikashop&#95;characteristics&#95;html is called passing three variables, but only two are listed in the parameter list of the function.  To get a base to start from I have copied the code from characteristic.php (line 89 onwards) including the 'display' function. To prevent a name clash between this 'display' and the original one in the characteristic.php, I've renamed the function and only call in the new file to 'display&#95;characteristics'.  The theory is that the over-ride now consists of the very same code/functionality to create the characteristics as would occur if the over-ride didn't exist. The problem is that the display breaks.  If I clear $html ( $html=''; ) just before the return, I still get the broken output, so it looks as though there is an issue before that point and the return is somehow happening before hitting the intended exit point but I can't for the life of me, see the cause.  What am I missing? Has anyone got an example of a working over-ride that they are willing to share for customisation?  Regards, Martyn.  Broken display  Expected display")         Category: [General Talk about HikaShop](/forum/2-general-talk-about-hikashop "Suggest your feature requests and ideas for HikaShop")     Topic started 14 years 6 months ago, by [expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")       [Last Post](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#181022 "Hi,  If you want images, I would recommend to follow this tutorial:   www.hikashop.com/support/support/documen...isplay-by-color.html  If you want instead to have a dropdown, you can change the &quot;characteristic display method&quot; option of the configuration to &quot;dropdown&quot;. However, it's not possible to have images inside dropdowns in proper HTML, so you can't have both.") 11 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:14  Views:6018 | [Last Post](/forum/2-general-talk-about-hikashop/46495-template-override-for-characteristics#181022 "Hi,  If you want images, I would recommend to follow this tutorial:   www.hikashop.com/support/support/documen...isplay-by-color.html  If you want instead to have a dropdown, you can change the &quot;characteristic display method&quot; option of the configuration to &quot;dropdown&quot;. However, it's not possible to have images inside dropdowns in proper HTML, so you can't have both.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 11 months ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.143 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
