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

#   Showing variant codes &amp; characteristics in listing

##

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

Less More

- Posts: 30
- Thank you received: 0
-
-

15 years 3 weeks ago [\#28700](#28700) by [duponsa](/forum/user/1291-duponsa "View duponsa's Profile")  *[Showing variant codes &amp; characteristics in listing](/forum/4-how-to/28700-showing-variant-codes-characteristics-in-listing#28700 "Hi, I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:  variant code would be W051 and characteristic 40 x 40  please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing&#95;list  thank you.")* was created by *[duponsa](/forum/user/1291-duponsa "View duponsa's Profile")*

Hi,
I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Image.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Image.jpg "&#91;img")

variant code would be W051 and characteristic 40 x 40

please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing_list

thank you.

- [ ![Image.jpg](/forum/attachment/1971) ](/forum/attachment/1971 "Image.jpg") [ ](/forum/attachment/1971?download=1 "Image.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NzAwLXNob3dpbmctdmFyaWFudC1jb2Rlcy1jaGFyYWN0ZXJpc3RpY3MtaW4tbGlzdGluZz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

15 years 3 weeks ago [\#28723](#28723) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Showing variant codes &amp; characteristics in listing](/forum/4-how-to/28700-showing-variant-codes-characteristics-in-listing#28723 "Hi, I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:  variant code would be W051 and characteristic 40 x 40  please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing&#95;list  thank you.")*

Hi,

That's quite complex to do.
That information is not loaded from the database on listings of products. So you would have to first load all the variants of the products and their characteristics values before being able to display them.
You will need to know PHP quite well to do that...

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

15 years 3 weeks ago [\#28734](#28734) by [duponsa](/forum/user/1291-duponsa "View duponsa's Profile")  Replied by *[duponsa](/forum/user/1291-duponsa "View duponsa's Profile")* on topic *[Re: Showing variant codes &amp; characteristics in listing](/forum/4-how-to/28700-showing-variant-codes-characteristics-in-listing#28734 "Hi, I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:  variant code would be W051 and characteristic 40 x 40  please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing&#95;list  thank you.")*

I'm new to php but quite excited about it so I'll give it a go, just 2 questions. Do you have a class in hikashop to call the db or can just use the joomla one? would it be a security issue if I did the script in the Display&gt;views&gt;product&gt;listing_list file? (probably at least very bad practice).
with that I will give it a shot.

thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NzAwLXNob3dpbmctdmFyaWFudC1jb2Rlcy1jaGFyYWN0ZXJpc3RpY3MtaW4tbGlzdGluZz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

15 years 3 weeks ago [\#28738](#28738) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Showing variant codes &amp; characteristics in listing](/forum/4-how-to/28700-showing-variant-codes-characteristics-in-listing#28738 "Hi, I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:  variant code would be W051 and characteristic 40 x 40  please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing&#95;list  thank you.")*

Yes, you can do it directly in the view. It's not clean but the edition of views is there so that you can easily customize them so it's better than hacking directly in the core files ![:)](/media/kunena/emoticons/3.png ":)")

You can use directly the db class of joomla: $db =&amp; Jfactory::getDBO();
That's what we use everywhere in HikaShop.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

15 years 3 weeks ago [\#28780](#28780) by [duponsa](/forum/user/1291-duponsa "View duponsa's Profile")  Replied by *[duponsa](/forum/user/1291-duponsa "View duponsa's Profile")* on topic *[Re: Showing variant codes &amp; characteristics in listing](/forum/4-how-to/28700-showing-variant-codes-characteristics-in-listing#28780 "Hi, I would like to show the variants codes and characteristics on the listing for each available characteristics like on this image:  variant code would be W051 and characteristic 40 x 40  please give me some direction on how I would pull the right data from the db and what file I should edit, I assume Display&gt;views&gt;product&gt;listing&#95;list  thank you.")*

Thank you Nicolas. I really like hikashop (I keep saying that in all my posts but that's because, I really like hikashop).
I apologies for taking your time with my silly questions. your answers are always very fast and precise. thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NzAwLXNob3dpbmctdmFyaWFudC1jb2Rlcy1jaGFyYWN0ZXJpc3RpY3MtaW4tbGlzdGluZz90bXBsPW1hcmtkb3du) 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.055 seconds

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