- Posts: 24
- Thank you received: 0
Show manufacturer on product listing table
- tampasounds
-
Topic Author
- Offline
-- Joomla version -- : 3.3
-- PHP version -- : 5.3
-- Error-message(debug-mod must be tuned on) -- : How to show manufacturer on product listing table ?
How to show manufacturer (brand) on product listing table ?
Example
Product Name Product Code {Manufacturer} Vote Price [Add to Cart]
Please Log in or Create an account to join the conversation.
The best is to create a view override for the view product listing table.
Thanks to that you can add a new column and display the manufacturer in the cells.
www.hikashop.com/support/support/documen...ize-the-display.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- tampasounds
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
I took this code from another thread because i do not know how to display the manufacturer url.
I see nowhere in your document where this is described ""How to show manufacturer url on listing_table""
I try this but does not work
<td>
<?php echo JText :: sprintf('MANUFACTURER_URL', '<a href="' . $this->element->product_url . '" target="_blank">' . $this->element->product_url . '</a>');?>
</td>
It only display words ""Brand Url: ""
How do show the manufacturer in each row on product listing_table ?
Thanks in advance
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Using that code through the file "listing_img_title" of the view "product" of your front-end template via "Hikashop->Display->Views" will probably help you :
Please Log in or Create an account to join the conversation.
- tampasounds
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
$manufacturerClass = hikashop_get('class.category');
$manufacturer = $manufacturerClass->get($this->row->product_manufacturer_id);
echo $manufacturer->category_description;
?>
This does not return manufacturer on Products Listing_Table either ....
Please Log in or Create an account to join the conversation.
Are you sure that you are editing the view in the correct template ?
Please try: echo $manufacturer->category_name; instead of echo $manufacturer->category_description;
Please Log in or Create an account to join the conversation.
- tampasounds
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
That was the solution.
I was so tired I didn't even realize that I was calling the wrong column(description)
Thank you so much for the extra attention and noticing the little details. It saved my day
Thanks again
Please Log in or Create an account to join the conversation.
I add this code and it works.
How can we add link to manufacture name?
Please Log in or Create an account to join the conversation.
- tampasounds
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
<th class="hikashop_product_code_title" align="center">
<?php echo "Manufacturer"; ?>
</th>
Worked for me
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Where do you exactly want your customer to be redirected by using this link ?How can we add link to manufacture name?
Please Log in or Create an account to join the conversation.
Mohamed Thelji wrote: Hello,
Where do you exactly want your customer to be redirected by using this link ?How can we add link to manufacture name?
Hello
I want the customer redirected to manufacture products list.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
$manufacturer_id : your manufacturer ID
Please Log in or Create an account to join the conversation.
I have created the following for a link back to a products listing in listing_img_title.php ( as an override)
This almost works...It shows the list of products for the brand but for some reason it goes to a random product category in the URL ( so it shows that random category modules ( banners etc) ).
How would I change this so that the Link URL starts with "brands/" instead of the random category?
Thanks
Please Log in or Create an account to join the conversation.
I suppose that the "start of the URL" is the alias of the menu item.
That's because you have that code:
And then, Joomla's SEF systme uses that id to get the alias of the menu item and use it at the beginning of the URL.
So if you want to have a specific text there, you should create a menu item of the type HikaShop category configured to display the brands, set in it the alias you want (brands) and use such code:
$Itemid = XXX;
where XXX is the id of that menu item.
Please Log in or Create an account to join the conversation.