Showing the vendor products - layout issues

  • Posts: 48
  • Thank you received: 0
11 years 1 month ago #93989

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 years 1 month ago #94084

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.

// 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->get( $product->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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 0
11 years 1 month ago #94223

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&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 :( 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: 11 years 1 month ago by theweasel68.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 years 1 month ago #94229

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:

.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 | listing_table" the content
					<td class="hikashop_product_name_row">
						<span class="hikashop_product_name">
							<?php if($this->params->get('link_to_product_page',1)){ ?>
								<a href="<?php echo $link;?>">
							<?php }
								echo $this->row->product_name;
							if($this->params->get('link_to_product_page',1)){ ?>
								</a>
							<?php } ?>
						</span>
		<!-- Begin of the part to add in the view -->
						<?php if(!empty($this->row->extraData->afterProductName)) { echo implode("\r\n",$this->row->extraData->afterProductName); } ?>
		<!-- End of the part to add in the view -->
					</td>

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: theweasel68

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.063 seconds
Powered by Kunena Forum