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

#   Showing the vendor products - layout issues

##

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

Less More

- Posts: 48
- Thank you received: 0
-
-

13 years 7 months ago [\#93989](#93989) by [theweasel68](/forum/user/13135-theweasel68 "View theweasel68's Profile")  *[Showing the vendor products - layout issues](/forum/23-market-how-to/79190-showing-the-vendor-products-layout-issues#93989 "Hi, I am having a product listing of a particular category. The refering page is product / listing&#95;table.php I have commented the image code as I don´t want to show the product image.  1) I would like to show the &quot;sold by: vendor&quot; field on the page, tried to find the code on the product detail page, but couldn´t find it. What would I have to include in order to include the &quot;sold by: vendor&quot; info  2) How can I change the width of the product title in the table? (no description shown, only the title.  3) The buttons are in white - I cant find the CSS to change in Hikashop, but also not in the CSS of my template. Any idea, where to change?  Pls. see also screenshot Thx")* was created by *[theweasel68](/forum/user/13135-theweasel68 "View theweasel68's Profile")*

Hi,
I am having a product listing of a particular category.
The refering page is product / listing_table.php
I have commented the image code as I don´t want to show the product image.

1)
I would like to show the "sold by: vendor" field on the page, tried to find the code on the product detail page, but couldn´t find it. What would I have to include in order to include the "sold by: vendor" info

2)
How can I change the width of the product title in the table? (no description shown, only the title.

3)
The buttons are in white - I cant find the CSS to change in Hikashop, but also not in the CSS of my template. Any idea, where to change?

Pls. see also screenshot
Thx

- [ ![productlistingtable&#95;page.jpg](/forum/attachment/9049) ](/forum/attachment/9049 "...table&#95;page.jpg") [ ](/forum/attachment/9049?download=1 "...table&#95;page.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 7 months ago [\#94084](#94084) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Showing the vendor products - layout issues](/forum/23-market-how-to/79190-showing-the-vendor-products-layout-issues#94084 "Hi, I am having a product listing of a particular category. The refering page is product / listing&#95;table.php I have commented the image code as I don´t want to show the product image.  1) I would like to show the &quot;sold by: vendor&quot; field on the page, tried to find the code on the product detail page, but couldn´t find it. What would I have to include in order to include the &quot;sold by: vendor&quot; info  2) How can I change the width of the product title in the table? (no description shown, only the title.  3) The buttons are in white - I cant find the CSS to change in Hikashop, but also not in the CSS of my template. Any idea, where to change?  Pls. see also screenshot Thx")*

Hi,

The "sold by: vendor" is displayed by HikaMarket itself using an HikaShop trigger.
During the product listing or the product page display, HikaShop call a trigger and HikaMarket stored some extra data in the product objects which would be displayed by HikaShop just after.

You can easily retrieve the vendor of a product with a little part of code. Code:

// Include HikaMarket include_once rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikamarket'.DS.'helpers'.DS.'helper.php'; // Get the vendor class $vendorClass = hikamarket::get('class.vendor'); // Retrieve the vendor object from the "product_vendor_id" $vendor = $vendorClass-&gt;get( $product-&gt;product_vendor_id );

The width should be changed using CSS. I guess with a link to the page, I could give you more information.

The button color is made by your template CSS, you have to add a new CSS rule in order to change the color for this specific button (using the class or the id of the parent container).
[ www.hikashop.com/en/support/documentatio...ize-the-display.html](http://www.hikashop.com/en/support/documentation/153-customize-the-display.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 48
- Thank you received: 0
-
-

13 years 7 months ago -  13 years 7 months ago [\#94223](#94223) by [theweasel68](/forum/user/13135-theweasel68 "View theweasel68's Profile")  Replied by *[theweasel68](/forum/user/13135-theweasel68 "View theweasel68's Profile")* on topic *[Showing the vendor products - layout issues](/forum/23-market-how-to/79190-showing-the-vendor-products-layout-issues#94223 "Hi, I am having a product listing of a particular category. The refering page is product / listing&#95;table.php I have commented the image code as I don´t want to show the product image.  1) I would like to show the &quot;sold by: vendor&quot; field on the page, tried to find the code on the product detail page, but couldn´t find it. What would I have to include in order to include the &quot;sold by: vendor&quot; info  2) How can I change the width of the product title in the table? (no description shown, only the title.  3) The buttons are in white - I cant find the CSS to change in Hikashop, but also not in the CSS of my template. Any idea, where to change?  Pls. see also screenshot Thx")*

Hi Jerome,
button color solved, thx...

*The width should be changed using CSS. I guess with a link to the page, I could give you more information.*
The site is: [ www.club.schuch.at/index.php?option=com\_...t=listing&amp;Itemid=135](http://www.club.schuch.at/index.php?option=com_hikashop&view=product&layout=listing&Itemid=135)
There you will see the product listing table

*You can easily retrieve the vendor of a product with a little part of code.*
Don´t really know how to add a trigger call ![:(](/media/kunena/emoticons/22.png ":(") Do you have a tutorial somewhere or could you point me to a good description, from where i could get and learn how to? Many thx.

Last edit: 13 years 7 months ago by [theweasel68](/forum/user/13135-theweasel68 "View theweasel68's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 7 months ago [\#94229](#94229) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Showing the vendor products - layout issues](/forum/23-market-how-to/79190-showing-the-vendor-products-layout-issues#94229 "Hi, I am having a product listing of a particular category. The refering page is product / listing&#95;table.php I have commented the image code as I don´t want to show the product image.  1) I would like to show the &quot;sold by: vendor&quot; field on the page, tried to find the code on the product detail page, but couldn´t find it. What would I have to include in order to include the &quot;sold by: vendor&quot; info  2) How can I change the width of the product title in the table? (no description shown, only the title.  3) The buttons are in white - I cant find the CSS to change in Hikashop, but also not in the CSS of my template. Any idea, where to change?  Pls. see also screenshot Thx")*

Hi,

About your table, the first column is bigger because the last line have a long text.
The table is automatically adjust by the cell contents so, you have to force some width in order to adjust it.

Like: Code:

.hikashop_products_listing .hikashop_products_table .hikashop_product_add_to_cart { width: 130px; }

About the vendor, you don't have to make the trigger. It is already made by HikaShop.
But I see that the extradata is not display in the table view so.

Please update in the view "product &#124; listing_table" the content Code:

&lt;td class="hikashop_product_name_row"&gt; &lt;span class="hikashop_product_name"&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt; &lt;?php } echo $this-&gt;row-&gt;product_name; if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;/span&gt; &lt;!-- Begin of the part to add in the view --&gt; &lt;?php if(!empty($this-&gt;row-&gt;extraData-&gt;afterProductName)) { echo implode("\r\n",$this-&gt;row-&gt;extraData-&gt;afterProductName); } ?&gt; &lt;!-- End of the part to add in the view --&gt; &lt;/td&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzkxOTAtc2hvd2luZy10aGUtdmVuZG9yLXByb2R1Y3RzLWxheW91dC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.084 seconds

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