- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 18.03.19, 15:40
- Opened by: Łukasz
- Closed by: Marek
- Closed on: 01.05.19, 15:39
- Reason: Closed
- Comment: Glad to help!
Ticket #13976 - Product brand on homepage by the module from addons
I bought the module https://addons.prestashop.com/pl/bloki-zakladki-banery/31125-sliders-banners-products-manufacturers-home-cat.html,
which displays the product slider on the main page, loading the display method as in category, from the tpl file –
{if $content.product_slider.type === 'products'} {if $usesListStyle} {foreach $responsivelayout->getProductInfosByIds($content.product_slider.products) as $product} {include file='catalog/_partials/miniatures/product.tpl' product=$product} {/foreach} {/if} {/if}
however, the product brand, product_manufacture field is not displayed on the home page, what could be the reason for this?
I am sending the module’s tpl file
Home page where products are displayed - https://daars.pl/
an exemplary category where the brand is visible - https://daars.pl/miksery-wideo-49
the other parameters are downloaded correctly like meta tags, etc.
greetings
Comments
the module’s author suggests to ask
how he implements the manufacturer’s name in the category page? Does he go through an override? A js file?
I read your message several times but I do not understand what I have to do.
There is no any overrides, we just show manufacturer name what available in the category page variables.
I’m trying to set up why the module does not display the producer name for products displayed on the home page by this module, since it uses a template file for that. Displays the remaining variables. Is it possible that this variable $product.manufacturer_name is in some way blocked for display on the home page? Or other modules can not use it?
The code looks like this in the template file
I suppose because your code is broken, here is clear code
the $ space appeared probably by formatting the forum. I’ve copied your code again and it still does not work.
Where that file is located, I’ll try to paste it myself
I am sending you the _product_slider.tpl file, which is in the module, and the proct.tpl template file that this module uses, and the whole module zip file
The products are now displayed by this module on the website - https://daars.pl/
Try to remove condition:
and the end
to leave only
Unfortunately, it did not help
Please show me at the screenshot where do you want to have manufacturer name?
Screen in the attachment, I would like to add over the product name, on the home page https://daars.pl, as it is now in the category page
I’m not able to connect to your server through FTP
What email address can I send you access to?
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile
ok, corrected
No success:
I connect via filezilla and this data works, but I do not specify a port there, try maybe by 21?
port 21 used by default. Maybe you have some restrictions by IP?
I do not see such settings, I also logged in from another place and ip and it worked.
I have following configuration http://take.ms/NCMyg
change the protocol to FTP
my config
Now I can connect.
I have figured out your module doesn’t return brand name. You can make sure in that with the code below what will show you all product data
http://take.ms/HGCgL
it shows everything except the brand name
yes
What do I have to do to display the brand?
the module has to provide it first to let you display
the module gets information from the file “include file = ‘catalog / _partials / miniatures / product.tpl” , it should also display the brand because it is in this file , in the same way as meta tags and others show
no that’s not right. The module gives data to the file catalog / _partials / miniatures / product.tpl to display it there
And what should I add in the module file to display product brand on the home page?
Ask module developer