A static block is a normal block of code enclosed in braces, { }, and preceded by the static keyword.
Questions tagged [static-block]
166 questions
0
votes
1 answer
static block doesent show in email in magento
I made a custom template in System->transactional email, I want to show expiration time of the order, I added a static block and when I preview the template works fine, but when I make an order it does not show in my the static block. Can anyone…

dritan
- 13
- 2
0
votes
0 answers
Magento, how to move static blocks?
I'm new in magento and i'm using a theme(name: awesome) and i have several static blocks in a specific order
in html i can see my static blocks with this order:

ePascoal
- 2,362
- 6
- 26
- 44
0
votes
3 answers
Preprocess a variable before static initialization list
I want to do a pre-processing activity before I pass a value to an initialization list.
(for example: to do assertion checking)
Here's some context to my question: suppose I have,
1. class B {
2. private:
3. int b_value;
4. …

jm'
- 107
- 9
0
votes
1 answer
How do I position the Static Block defined in the Category admin page?
In the category admin under Display settings I have assigned a static block. This is displaying fine but I need to position it further down the page. I've been looking for a callback like the generic getChildHtml but for blocks.
I was also thinking…

Adam Hughes
- 2,197
- 20
- 31
0
votes
1 answer
magento configurable product filter
I made a new static block containing featured products. (type = configurable product)
Each product is based on that configurable product (different colors)
For each configurable product in my static block, I want to put a select box where I can…
user1668664
0
votes
1 answer
Magento display static block in container2
I have to many custom options on product page.
I would like to fill out the empty space on the left with a static block that appear only if more there is more than 4 custum options in product view.
http://goo.gl/Y7JMQf

Italus
- 11
- 4
0
votes
2 answers
Magento display static block and products not working
I am using the category Display Mode of "static block and products" for my site. It displays my static block just fine, however it only displays my last sub-category's products, not all of the products. I've double checked all of my "anchor" options…

Dave1064
- 1
- 3
0
votes
1 answer
Create 2 Separate Randomly Generated Banners using PHP and Magento Static Blocks
Is there a way to display 2 banners (without duplicating the same banner?)
In other words, I can’t just repeat the "echo" code, because then it can randomly select the same banner twice. Is there a way to make an array of 2 randomly selected…

GJDesigns
- 485
- 1
- 4
- 7
0
votes
1 answer
Magento static blocks disappear on homepage when query parameters present
I'm quite new to Magento and I'm trying to understand what'S happeing with the static blocks on the homepage of one of our clients (http://www.coveops.com). When query parameters are passed (like ?utm_source...), the static blocks simply…

werfu
- 382
- 1
- 11
0
votes
2 answers
Magento remove left side panel from static block page
I created a subcategory name "NEW" from manage category option in admin.In the "Display Settings" tab of this category, I select a CMS block which I created earlier.
This block is displaying when click on the navigation menu link "NEW".I am using…

Neeraj Garg
- 695
- 3
- 17
- 38
0
votes
1 answer
Product attribute to show inside of static block on product page?
I have a magento template which has placed some static blocks on the product view pages. I have created some additional product attributes such as "product compatibility" for example, and would like to display this product attribute within a static…

user1411281
- 33
- 1
- 1
- 4
0
votes
3 answers
display custom block in product detail page content magento?
I need to add static block between media and product-description-tabs .
I have set in product edit under design tab "Custom Layout Update"

Dolly
- 1,042
- 4
- 27
- 47
0
votes
1 answer
magento add wysiwyg block to cms page
Using Magento, I need to offer my clients the public use of a wysiwyg editor on my website to simply generate html code for them to copy and paste. My idea is to add a static block to a cms page... the block being a wysiwyg editor. Anyone know if…

Andy Mattila
- 11
- 5
0
votes
1 answer
Calling right block in Magento 1.6.2 of static html
I am creating a CMS page in magento as a teaser for an upcoming product. I am using two columns with a right bar and using the layout update XML in the backend to call some custom blocks I make for the right side.
Well right now I am loading just…

Dan
- 41
- 5
0
votes
1 answer
What are the advantages and disadvantages of creating an Object in static block in Java?
This question might be blunder to some of the Java Experts. But I would like to know why we create the objects in a static method like main but not in static block.
I understand that its going to create the object unnecessarily if we instantiate in…

Puru
- 8,913
- 26
- 70
- 91