Hi i have tried to add a product in slide show on magento home page but it not working can you please give suggestion for How to add a product on slide show in magento?
What you need to do is :
Create a static block (something/filename.phtml).
Load product collection in the static block and filter the products which you would want to see on the slider.
Create appropriate HTML markup for the section of the page.
Use a suitable jQuery / JavaScript plugin to render the slider.
Call the static block that was created in step 1, from the CMS Page meant for homepage. This can be done using Layout Updates Section.
Related
I'm using Shopper Queldorei Magento Theme which it uses Revolution Slider, and I want to add a slideshow in category page like this: ultimo theme
What should I doing please.
Best regards
Not sure how slideshow is implemented in Shopper, but you can use slider Revolution from NWDthemes and create different slideshows for different categories.
Basically all you need is update Custom Layout Update field in Custom Design tab to add slideshow block to the header or instead of category image.
Check this article for reference - http://nwdthemes.com/2015/04/29/slideshow-for-category-page-with-slider-revolution-magento-extension/
I am trying to display categories on magento home page. I know how to do it in a normal way using magento collections. I want to have it like a widget, if you insert a category link widget in static block or cms page, you can see the following:
{{widget type="catalog/category_widget_link" template="catalog/category/widget/link/link_block.phtml" id_path="category/3"}}
Now, here the id_path indicates which category to display. Can we modify it somehow to show a list of specified categories. For example like this: id_path = '3,4,5,6' so it will display all these specified categories. Can anybody guide me a way to do this? I don't know much about widget coding stuff in magento.
You can add as many as widgets inside the static block by selecting the widget as many as times you want.
By using this code in the product description WYSIWYG editor, you can display a CMS block
{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="01"}}
I am wondering, is there any way i can do the same with a CMS Page ?
Can i display a CMS page inside the product description from the WYSIWYG editor?
This will not work, since the product description is not passing the magento template filter system!
You could create your own widget, see Creating a Magento Widget
Then implement your logic to get cms content
protected function _toHtml()
{
//get cms content from db
}
there is a work around for it..you can try to pull the content of the cms page in your product view template file... ie in catalog/product/view.phtml file
refer here (How to call a cms page in a phtml file in magento?)
I want to display a text only for a specific language in a cms page which contains a placeholder. So I cannot use the way with the translate.csv. (see http://jagdeepbanga.com/blog/magento_how_add_translation_ability_into_cms_page_or_static_block.html) It would just display the placeholder in plane text. And since it's a CMS-Page from an plugin I can't change to a specific store view.
Is it possible to do an if query in the cms page like displayed below? (Or sort of) It should work in the cms page without the need to use or editing a phtml template.
if (store view = norsk)
{
<p>bla...</p>
{{some placeholder}}
};
I made an extension with this topic, feel free to use it or modify it!
https://github.com/miguelbalparda/MB_Translate
You can use a CMS block with a different version for each store view, and include it in your CMS page with {{block type="cms/block" block_id="your_block_id"}}
I am new to magento .
I want to create a right sidebar on product view page such that this is visible only on product view page not on other pages.
How can I do this.Please Help.
Thanks.
To have a right sidebar only on the product page you need to to a few things:
in the admin panel set the product pages to have 2 columns with right sidebar
create a block and template file (or just edit one that is available)
in catalog.xml (this is in your themes's layout folder) find the handle called and within that section find in there you can add your block / template file.
For more info on how you can create blocks and templates see here.
In magento almost every postion is handled by catalog.xml, (if you go the proper way) You can place any static block , in catalog.xml you will find the postioning of blocks for every page (be it category, product or home page) just you need to place the block in the right reference.