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

#   show variants in product-list view

##

- **[cpreen](/forum/user/604-cpreen "View cpreen's Profile")**
- [![cpreen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/604-cpreen "View cpreen's Profile") Topic Author
- [ Offline](/forum/user/604-cpreen)

Less More

- Posts: 98
- Thank you received: 3
-
-

8 years 10 months ago [\#286592](#286592) by [cpreen](/forum/user/604-cpreen "View cpreen's Profile")  *[show variants in product-list view](/forum/26-product-category-display/893591-show-variants-in-product-list-view#286592 "-- url of the page with the problem -- :   connectcad.com/index.php/pricing-purchase  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.32 -- Browser(s) name and version -- : Firefox 5.6.32  Hello, I am trying to show a drop-down list of product variants in product-list view. I made an override in quantity&#95;legacy.php but doesn't seem to work. I actually added the following line of code, where the button &quot;show options&quot; was printed. echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element,$this-&gt;params); Am I missing something? Thank you")* was created by *[cpreen](/forum/user/604-cpreen "View cpreen's Profile")*

-- url of the page with the problem -- : [ connectcad.com/index.php/pricing-purchase](https://connectcad.com/index.php/pricing-purchase)
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 5.6.32
-- Browser(s) name and version -- : Firefox 5.6.32

Hello,
I am trying to show a drop-down list of product variants in product-list view. I made an override in quantity_legacy.php but doesn't seem to work. I actually added the following line of code, where the button "show options" was printed.
echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element,$this-&gt;params);
Am I missing something?
Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTM1OTEtc2hvdy12YXJpYW50cy1pbi1wcm9kdWN0LWxpc3Qtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 10 months ago [\#286594](#286594) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[show variants in product-list view](/forum/26-product-category-display/893591-show-variants-in-product-list-view#286594 "-- url of the page with the problem -- :   connectcad.com/index.php/pricing-purchase  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.32 -- Browser(s) name and version -- : Firefox 5.6.32  Hello, I am trying to show a drop-down list of product variants in product-list view. I made an override in quantity&#95;legacy.php but doesn't seem to work. I actually added the following line of code, where the button &quot;show options&quot; was printed. echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element,$this-&gt;params); Am I missing something? Thank you")*

Hi,

$this-&gt;characteristic doesn't exist on listings. Also, the data needed in $this-&gt;elements from the variants/characteristics isn't there either. And on top of that, the display/displayFE functions of type.characteristic isn't meant to be called more than once on a page.
So you won't be able to do it like that. It would basically require a lot more complex development.
You'd be better off loading the data from the database in the view yourself and displaying the dropdown yourself with custom javascript to replace the id of the product in the form/button.

The following user(s) said Thank You: [cpreen](/forum/user/604-cpreen "View cpreen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTM1OTEtc2hvdy12YXJpYW50cy1pbi1wcm9kdWN0LWxpc3Qtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

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

Time to create page: 0.066 seconds

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