Display manufacturers name in product list (Prestashop 1.7) - smarty

I'm trying to display manufacturer in category view using Prestashop 1.7.
Prestashop 1.7 uses a new file system with partials, the file I'm trying to edit is located in /themes/your_theme/templates/catalog/_partials/miniatures/product.tpl
I've been researching and trying a few things like {$product.manufacturer_name} which seems to be correct, It's declared in Product Class, but somehow it doesn't works.
Any clue about this?
Thank you!

Finally found the solution, this .tpl view has access to id_manufacturer but not manufacturer_name, thats weird, but I finally managed to get the manufacturer name using this code:
{Manufacturer::getNameById((int) $product.id_manufacturer)}
You have to be inside this file:
/themes/your_theme/templates/catalog/_partials/miniatures/product.tpl
Hope it helps

Related

How customer can upload the image in product magento?

I want to upload the image at the front end of the product view page
but i don't know how to do these so if anybody know the answer then replay me.
I see the some extension but its not work properly
Thanks in advance.
Magento has out of the box custom options. You can add new custom options with type file.
Check it, possible it helps in your case.

Article Content formatting Issue with modules

I faced a strange issue with Joomla default Articles option with custom module.
In joomla article section when I enter some text like
Price is $20 its not displaying on the site front end. When I use with a space $ 20 It works fine.
This article is showing on the front end with custom module,
Like this article content is reading from DB using a custom module and out put like
echo $fullArticle = JHtml::_('content.prepare', $values->introtext);
This module is loading inside another article with {loadposition mypostion}
When I put $20 directly in any other article its works fine, I think using custom module and loading position time the Joomla thinks $20 as a variable or something ?
Please help me to resolve this issue!
Solved the issue myself,
I created a content plugin and in that all $ symbol replaced with $ I its works!
something like,
$article_content = str_replace('$','$',$article->text);
Hope this may help someone else in future.

Magento : Fatal error : Call to a member function getFrontend() on a non-object

Hi i am a fresher in magento. I have installed a new theme in magento and it was working fine. but when i navigate to products individual page, an error was showing
'Call to a member function getFrontend() on a non-object'.....
Thanks for support in Advance
This was ask a long time ago, but I wanted to provide my input.
I had this same error and it was from moving code that I new worked in production to a staging server. It turns out there was a custom attribute added to my attribute set that didn't get transferred over to staging and was causing the error.
in you new theme there may be error in code of list.phtml
you can check that page located in app/design/frontend/default or your theme /catalog/product/list.phtml
you can compare the code with your previous theme by following the above location and do the required modifacation.
try use default magento theme, if no problem found maybe there is missing files on your theme

Change admin module title joomla

When I installed the module that I developed and in the module manager screen of the backend I can see the title like this.
Module Manager: Module mod_examplemodule
So I want to change it into something like this. Module Manager: Module Example Module
I have developed few Joomla modules but so far I didn't realize how to do this.
Your help on this would really appreciated.
Thank you.
Im using Joomla 2.5.8. I have just added the screen shot. Perhaps it would be more helpful.
In my modules I use:
<name>Module Title</name>
<description>MOD_MODULE_TITLE_XML_DESCRIPTION</description>
I then add an entry in the language file for the description. This normally covers my needs
I have solved this:
You can change name tag in mod_examplemodule.xml file and install again
OR
If you have database access then in [prefix]_modules table find the record of this module and change the name field as per your requirement

Get Top/Best Rated Product in Magento

I want to best rated product on a magento homepage. I have product reviewing module configured on my site.
i have tried following this http://www.odino.org/84/retrieve-top-rated-products-in-magento
but am unable to get it working.
My homepage is formed my calling one block from the cms home page {{block type="page/html" template="page/html/home.phtml"}}
and i have tried putting the php code in home.phtml
The link i have posted asks to create a helper, but i don't know how to go about that, so what i did was wrote a normal function within the page and called it.
Any help would be seriously appreciated :)
Thanks
Look at this module from Inchoo, explained with all the required changes you need to make with screenshots. Hopefully this will be helpful
http://inchoo.net/ecommerce/magento/bestseller-products-in-magento/

Resources