Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
0
votes
1answer
927 views

How do I disable a static block on my home page?

This one has me baffled. I have a static block situated at the bottom of my home page and just above the footer labelled. The static block is titled ‘Recommended’. It is a sliding product block and ...
0
votes
1answer
1k views

How can I create static blocks via a module install script?

I have a number of static blocks which I would like to add to my Magento 2 store via a module install script. I have seen an example here: http://www.learnmagento.com/magento-2-create-cms-static-...
1
vote
3answers
1k views

hide cms block on checkout page if customer logged in

I want to hide my CMS block if customer is logged in. This is how my block is added to OPC page via local.xml file. <opc_index_index> <reference name="content"> <block type=...
0
votes
1answer
468 views

Show Category CMS block only on first category page

I'm using Magento 1.9 and struggling on one thing. I have a CMS block in my category page but I want it to show only on the first page! So if I scroll down and move to page 2 on the same category I ...
0
votes
1answer
352 views

How to display the static block inside tab content?

I want to insert a cms block in a tab content. So I inserted the below code in catalog.xml: <block type="cms/block" name="care" as="care" > <action method="addToParentGroup"><...
1
vote
1answer
192 views

Magento controller override not working in other systems

I have installed Magento CE 1.9.2.4 in my local system. Now I have successfully overrided the Admin >> CMS >> Static Block controller in my local system in such a way that when I save any ...
2
votes
3answers
3k views

Block type not working

I cannot insert blocks in the CMS editor in the form {{block type="isfeatured/isfeatured" template="isfeatured/featureblock.phtml"}} The Magento version is 1.9.0.1 patched. The patched were applied ...
0
votes
1answer
44 views

product_count dont work when calling product to frontpage

Im trying to call 3 products from each category on my frontpage. im using this code to call one category {{block type="catalog/product_list" product_count="3" category_id="3" template="catalog/...
0
votes
2answers
316 views

How to create a static block to get other products from the current page PRODUCT MANUFACTURER

I need to create a static block and place the block in view.phtml. Static block should collect and display 5 random products from the Manufacturer. Is it possible? if yes anybody give me the code?
1
vote
1answer
243 views

Magento 1.9.1 Static Block not visible in Front End

I have created the static block in cms/static blocks Then added the following code to catalog/product/view.phtml <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘...
0
votes
1answer
70 views

In product page right sidebar gets misplaced after adding cms block

I used below code in local.xml to add the cms block at the end of the product content, but it will push the right sidebar down (2columns-right is the template)! <catalog_product_view> ...
1
vote
1answer
1k views

Magento 1.9 - Store Hours of Operation not available for CMS

Under Admin->System->Configuration->General, there is a field called Store Hours of Operation. Referencing to this field using {{config path="general/store_information/hours"}} in a static ...
1
vote
2answers
446 views

CMS Pages and static blocks not editable

I am not sure, but I guess this problem appeared after installing the latest Magento 1.9.1.0. When I want to edit a CMS page or a static block in the admin interface, the area that should display the ...
0
votes
1answer
221 views

Trying to add an icon to a CMS static block inline with a banner

I'm trying to add an icon inline with the banner text in a CMS static block. So far, all I've been able to do is use relative positioning to move it there on the page, but that is easily affected by ...
1
vote
1answer
3k views

How do I add a css class to a CMS static block?

Currently working on a magento homepage layout that includes a static block widget through the CMS (as opposed to referencing it through XML layouts) but no matter what I do I can't alter the classes ...
4
votes
1answer
4k views

Magento 2 Load - Block (CMS Static Block in Magento 1 terms)

I am attempting to load a static block from my controller - but am having trouble locating the right syntax for doing this. What is the proper syntax to load a CMS block by identifier or block id and ...
0
votes
1answer
81 views

Trying to add a static CMS block to each item in cart

I'm trying to add a static block that will display beneath each item's price on Magento's checkout page. I created a simple CMS block with the following settings in the admin area: Title: Free ...
0
votes
1answer
38 views

Displaying products in category code no longer working after SUPEE-6788 patch

We added the SUPEE-6788 patch and this code that we used to display products from a category no longer works: <?php $_productCollection=$this->getLoadedProductCollection(); $_helper = $...
0
votes
1answer
66 views

Update cms/pages for multistore

I need to update one cms page, but I have the same identifier 'home' for three pages in different stores. How can I update one page with need store. My script has error: 'A page URL key for specified ...
0
votes
1answer
67 views

Magento 2 migeration

i was able to successfully migrate from 1.9 to magento 2 using data migration tool, from github. the tools migrates everything except for cms pages, and cms blocks. I dump the pages and blocks tables ...
2
votes
1answer
166 views

Currency not changing in magento cms page

I am using a custom theme for my Magento Store. On home page, I am using 2 carousal( For Products ) one from CMS block and one from Static block. I have 2 currencies one is INR and second one is USD. ...
0
votes
1answer
1k views

{{block type…}} in CMS not visible in frontend [duplicate]

I use Magento 1.9.2.3 and I have a problem when I insert this code inside a CMS block: {{block type="filterproducts/featured_home_list" name="latest_list" product_count="10" template="filterproducts/...
1
vote
2answers
3k views

The use of “function setData ()” in the blocks on CMS pages

I can not understand why variable transmission does not work, when the block is called, the display categories on the home page. in the template file I pass a variable to a different template file ...
1
vote
1answer
46 views

Use link to CMS page that will not break when title of CMS page is changed

I am struggling with the following Magento: 1. I have created a link in the content of a CMS block. Let's call this block-A.html 2. The link refers to another CMS block or page, say block-B.html 3. ...
0
votes
1answer
648 views

Magento Custom Module in CMS Page Not Working

I am trying to create a custom module and enabling it in a CMS Page. I've already done this before and everytime some issue comes up and I could figure this out anyhow. I couldn't figure out what's ...
1
vote
1answer
152 views

Magento connected to git

I installed magento on my ubuntu local machine, and I connected that to github, when I make changes to the magento CMS for example, on my local machine I changed the content of the home page, I ...
1
vote
1answer
202 views

Caching saves not the context

I've managed to display the sub categories in my own block. <?php $category = Mage::getSingleton('catalog/layer')->getCurrentCategory(); $categories = $category->getCollection() ->...
2
votes
2answers
5k views

Calling to custom block from cms page display blank page

I've created a custom block, however when calling the block from cms page displays nothing. Even the content of cms page does not displat that is above the call to custom block Here is How i'm ...
14
votes
3answers
42k views

Magento2 - How to show a block content on homepage

How to show a block content on homepage? After install magento2 without sample data, I chose 'Magento Luma' theme and add 'Home Page Block' block and copy the code from the sample store. but nothing ...
33
votes
6answers
49k views

Add a static image on PHTML page and CMS Blocks : Magento2

How I can Add a static image on PHTML page and CMS Blocks into Magento2? in Magento 1.x it was possible using $this->getSkinUrl('images/xyz.jpg') I am trying following method into Magento2 In ...
3
votes
1answer
1k views

How to edit the sorting order of New Products displayed on Magento homepage

I am showing new products on homepage with the code {{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}} Now the results ...
16
votes
4answers
31k views

Magento 2 : Adding static blocks to specific section of pages with custom module layout xml file

In magento 1.x it is possible to add a static block using xml layout file. <reference name="root"> <block type="cms/block" name="name"> <action method="setBlockId"&...
1
vote
3answers
1k views

Layered navigation (Shop by) not showing on every category

I hope you can help me out here.. I tried every possible solution given on the forum / internet, but nothing helps. Maybe I'm overseeing something here. I'm using the default RWD template with ...
0
votes
2answers
4k views

How to add left sidebar to CMS pages?

I am using Magento 1.9.2.1 with "porto" theme. I have created a few CMS info pages for things like "reasons to buy" etc. I have the pages set to 2 column with left sidebar but there is nothing ...
1
vote
1answer
868 views

Add CMS static block after add to cart

I've been trying to add a static block to individual product pages, below the add to cart button, using "Product > Design > Custom Layout Update". I've tried various versions of the code below, but ...
1
vote
1answer
120 views

Can't select cms page/blog or product/category widget

I realy hope you can help me with this... I have installed a brand new Magento at GoDaddy. Everything but Widgets works fine... The button that should appear in Plugin Detail are simply missing. No ...
1
vote
1answer
718 views

Adding date-check functionality to CMS Static Block

I want to add the ability to do a date check inside a CMS Static Block. Something like this: {{if date == '2015-12-25'}}Merry Christmas!{{else}}It's not Christmas{{/if}} However, I'm not sure how to ...
2
votes
1answer
248 views

Copy/import or migrate joomla articles to Magento [duplicate]

i am looking to migrate article of joomla to magento. We can display articles of joomla in cms or static blocks. Is there any way or method to achieve this? Magento: 1.9.2.1 Joomla: 2.5.27 Is it ...
0
votes
2answers
1k views

Change CSS in CMS block

Need to change the styles of a category without using the CSS sheet. Could you help me?
0
votes
1answer
442 views

How to find the list of blocks that must be added to white list after patch 6788 is applied

In our multi store magento we have many blocks which some are disabled. Is there any way that provides the list of blocks which need to be added to white list instead of going through all cms blocks ...
2
votes
1answer
1k views

Added block to whitelist, but blocks still not showing (6788)

I also have a problem with custom blocks on my home page CMS after 6788. The CMS page uses a slider, which is on the backwards incompatible list because of the old router config. I used supee-6788-...
1
vote
1answer
2k views

Conditional Layout Blocks in CMS Page depending if logged in

I would like to add login block only if customer are not logged in. So in my cms.xml page i change this code <reference name="content"> <block type="core/template" name="...
3
votes
1answer
215 views

Add current url as variable in CMS content

Is there a way to add current url in CMS content? Just like when I add the store name, something like this {{config path="general/store_information/name"}}
4
votes
1answer
977 views

Is it possible to add child blocks to a block that has been defined in a static block?

In layout.xml you can define children like this <block...><block... /></block> Is the same possible if I add a block in a static block? I only know this notation: {{block type="...
0
votes
1answer
391 views

Can i add static block dynamically in page?

I am managing now 5 stores in my magento and in future the numbers of store may be increase. My problem is here whenever i create the new store the whole layout dismissed. I only added the sliders ...
0
votes
1answer
886 views

How to create a blank page without any header,footer blocks?

Am creating a cms page for sellers, like www.mysite.com/seller with unique nav-bar,footer,header,logo etc..but it all shows under my default theme's header,footer blocks.I planned to show those cms as ...
1
vote
1answer
892 views

Change layout just for one cms page - for instance “customer-service”

I'm using the pages that come with the default installation of Magento. The customer wants to have different contents on the right column of those pages. For instance, on the "customer-service" page ...
0
votes
1answer
330 views

Trying to add static block to customer logout page, block is displaying twice

How do I add a static CMS block to the customer logout page? I have it somewhat working, but the content of my CMS block shows twice: I setup a CMS block called logout_message with a bit of html in ...
3
votes
2answers
3k views

Contact form block in CMS page not working

I made custom layout page for CMS page and i want to add Contact form in that CMS page. For this i am using following code in CMS page content : {{block type=”core/template” name=”contactForm” ...
0
votes
2answers
2k views

Magento CMS Page vs Static Blocks

I am setting up a Magento store and it has a lot of CMS content. I have been fiddling between: Creating categories and actual CMS page with corresponding URL then rewrite the categories url to the ...