Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 146

Denotes questions related to HTML code in Magento.

1 vote
Accepted

How to add class in 2 sets of list items in PHP

Change your if statement from if($i++ %2 == 0){ To if($i++ % 4 < 2){
Marius's user avatar
  • 199k
2 votes

Add Google Ads code

You don't need to add it in any file. you can simply use the System->Configuration->Design->HTML Head->Miscellaneous Scripts section in the config and add your code int here. …
Marius's user avatar
  • 199k
6 votes
Accepted

I want to change the html of breadcrumb?

The file is app/design/frontend/{package}/{theme}/template/page/html/breadcrumbs.phtml As a future reference, when you cannot find a template, turn on the template path hints …
Marius's user avatar
  • 199k
3 votes

Where can I customize the HTML invoice found in the customer's account page?

The invoice template is app/design/frontend/{package}/{theme}/template/sales/order/invoice.phtml. the invoice items are rendered by app/design/frontend/{package}/{theme}/template/sales/order/invoice/i …
Marius's user avatar
  • 199k
7 votes

How to copy a product's attributes value to another attribute?

You can do this with a sql query. But First you need to identify the attribute ids for your attributes and their types. SELECT attribute_id, attribute_code, backend_type FROM eav_attribut …
Marius's user avatar
  • 199k
6 votes
Accepted

hook into magento's output to the client

You can use the event controller_action_layout_render_before if you want to alter the html for all the pages. … Inside your observer you can access the html like this: $html = Mage::app()->getLayout()->getOutput(); and you can change it using Mage::app()->getLayout()->setOutput($html); …
Marius's user avatar
  • 199k
1 vote
Accepted

display the tier prices text in a single line in product view page

The text does not fit on the same row because there is no room for it. You have 2 boxes with classes Quick_1 and Quick_2. THe first one is 40% wide and the second one 55% wide. Make them 49% (or 48..s …
Marius's user avatar
  • 199k
2 votes

Inserted code in footer and product dissappere

I think the problem is that the footer is cached. Since you want that image on certain on certain pages, maybe you first hit a page that should not have the image, the footer gets cached and it is nev …
Marius's user avatar
  • 199k
0 votes

Is it possible to use superscript in a category title?

getIsWysiwygEnabled()) { if (Mage::helper('catalog')->isUrlDirectivesParsingAllowed()) { $attributeHtml = $this->_getTemplateProcessor()->filter($attributeHtml); } } So you are allowed to use html
Marius's user avatar
  • 199k
1 vote
Accepted

Image(s) are missing width and/or height attributes in magento

Look in your templates for <img> tags and where you find one that you are sure it has some fixed size, just add width=".." height=".." on it. For sections where the product images are displayed (pr …
Marius's user avatar
  • 199k
1 vote
Accepted

Choose between 2 designs on product page

products (and categories) support different designs. All you have to do is to create 2 different magento themes. They don't need to be completely different. One can inherit the other and you can only …
Marius's user avatar
  • 199k
2 votes
Accepted

Cannot find the register link phtml file

Parent class is Magento\Framework\View\Element\Html\Link and the method looks like this: protected function _toHtml() { if (false ! …
Marius's user avatar
  • 199k