Rick Buczynski
  • Member for 8 years, 10 months
  • Last seen this week
Terms and condition on checkout page
Accepted answer
17 votes

If you're new to Magento, this answer likely will not make sense. So either get an experienced Magento developer on this or start brushing up. With that, here's what you can try. Prerequisites ...

View answer
E-Mail template/variables - taxvat
Accepted answer
11 votes

When an order is placed, a number of fields are copied from the quote and customer into the order. One of those fields comes from the quote, and is the associated customer's tax VAT ID. To the point, ...

View answer
clearing caches individually (product, category, homepage, etc)
Accepted answer
9 votes

EDIT: I should note that this isn't possible via Magento admin interface. You'd have to build/find an extension to add this functionality, else write a script with what I describe below. - Cleaning ...

View answer
"Element with id "path" already exists"
Accepted answer
6 votes

The error means that an element (object) was being added to a form (object), but the form requires uniquely identified elements. In Magento, you typically create a new instance of a form, then a ...

View answer
Find path of Mage::helper on FTP-Server?
6 votes

What you're seeing is Magento's class alias system. What you're asking for is how to translate a class alias into a class name, and subsequently how a class name translates to a file path. TL;DR: The ...

View answer
Call template from controller
Accepted answer
6 votes

Thanks for asking on the site. There are a few problems with the way you're trying to do this. First: your controller, app/code/local/ness/so/indexcontroller.php, should really exist in app/code/...

View answer
Magento layered navigation attribute option sort by name not position
4 votes

Sorting can be done at the template level, but my preference would be to handle this in the block level. To get to the right place, start at the template, like here: File: app/design/frontend/base/...

View answer
How to format weight to display 2 decimal places in Orders Grid?
Accepted answer
4 votes

There are a couple of ways to do it. SQL-level $collection->getSelect() ->columns(array('weight' => new Zend_Db_Expr("DECIMAL(weight, 2)"))); Here we re-define the weight column in the ...

View answer
Insert dynamic HTML block in product description
Accepted answer
4 votes

IMO this is an ideal case for widgets: http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-magento-widget-part-1 Alan Storm's book, No-Frills Magento Layout, has an excellent ...

View answer
Getting the shipping method code in transactional emails
3 votes

Not sure I follow 100%, but I'll take a shot at it. {{var shippingMethod}} is not a standard variable on sales email templates, so it must be something you already inject as custom. Default ...

View answer
magento database file not importing completely
Accepted answer
3 votes

Do you have shell access to the server? If so, you can likely upload the file to it (via FTP or rsync), and then use the MySQL CLI tools to import. Or, if you have remote access to the MySQL server ...

View answer
html tags in widgets breaks edit mode
Accepted answer
3 votes

Note: It's not so simple to solve! I can't mark as a duplicate, but I encountered the same problem and solved it on Stack Overflow: https://stackoverflow.com/questions/23925826/magento-widgets-...

View answer
Get topLinks on page
Accepted answer
3 votes

Your question is a little too generic. What block are you working from in your template example? In a default Magento 1.x CE installation, that block is defined in page.xml as part of the header block ...

View answer
Disable billing address edit
Accepted answer
3 votes

Notice What you're asking for becomes tricky when you consider how Magento manages the billing address. Any address can be a billing address. A customer can simply select it from a menu component at ...

View answer
Site is redirecting from checkout page to cart page
3 votes

I can't say without more information, but I can bet your problem lies somewhere between Mage_Checkout_OnepageController's saveShippingMethodAction and _expireAjax methods. I know this because on the ...

View answer
Memory leak in magento when saving products
2 votes

I took a look into this out of curiosity, and made some interesting observations, though I don't think I can fully answer your question at its core. First, the observations: Most expensive method is ...

View answer
Magento Cache - Product Images
Accepted answer
2 votes

To use images from Magento's cache, you need to apply the logic as seen in most theme templates. Drawing from the base rwd/default theme, you can observe how it works: File: app/design/frontend/rwd/...

View answer
Add conditional statement in the static block in magento
2 votes

Pradeep, I don't believe that the template filter system and the {{if}} directive supports operators (==). If you consult the class, Varien_Filter_Template, you would find that the ifDirective parser ...

View answer
Should I be worried about the latest Zend-Mail RCE Vulnerability similar to the PHP-Mailer/Swift Mailer Vulnerability if I use Magento?
2 votes

To your point about sanitization, the issue for most Magento shops would be introduced if control of the sender was given from a client-side form. Consider this core code: class ...

View answer
Why use createBlock() and setTemplate() methods over creating a block via .xml file in /layout subdir?
2 votes

Great question, although a question like this I don't think has any definitive answer. There are also bound to be a dozen answers on this topic. The only compelling reasons I can give to not use ...

View answer
Observer event not triggering on index
Accepted answer
2 votes

The event you're observing, catalog_product_save_before is not all-encompassing. For example, you mentioned that it doesn't trigger on mass-action changes to products. If you look at the code around ...

View answer
Preventing specific section of home page from being cached Magento CE 1.9
2 votes

Your sample code is a bit confusing. For example, I don't see how your layout update handle cms_index_index relates to the block in question. Your action node on the root block won't serve a purpose, ...

View answer
How do I use the rsync command correctly
Accepted answer
2 votes

Maybe the vote to close is appropriate, but it's used commonly enough for Magento deployments. Try this: rsync -avPzL --exclude='app/etc/local.xml' ./path/to/local/root/ user@remote.com:/path/to/...

View answer
Meta Descriptions - Item Count Appearing on Search Engines
2 votes

These types of information, in the case of Google Search, are called Rich Snippets: About Rich Snippets & Structured Data https://support.google.com/webmasters/answer/99170?hl=en Upon running ...

View answer
Custom Theme Responsive/Mobile Disable and enable Full Site
2 votes

@tecjam Basically gives the right answer in your scenario, but I wanted to add some more detail for a better understanding. Unfortunately this would be a theme-specific feature. You'll have to ...

View answer
How to add telephone number to the Sales Order Grid using an observer
2 votes

A stock sales order grid for Magento 1.9 will prepare its collection in Mage_Adminhtml_Block_Sales_Order_Grid::_prepareCollection, and it won't do much out of the box. In fact the base query for the ...

View answer
Add handle from backend into frontend layout
2 votes

As far as I know, this layout handle will not be available during a frontend request, because Magento does not load layout XML out of app/design/adminhtml/*. See Mage_Core_Model_Layout_Update::...

View answer
$this->getChildHtml('before_body_end') won't render in new page template
2 votes

Do you mean that it doesn't complete the closing body tag? That normally would indicate an exception. I guess it's possible that your errors are being written to a location other than where you expect ...

View answer
Extend multiple classes from single helper
2 votes

Your helper re-write XML is structured just fine, but Magento's namespacing convention and class-mapper does not handle multiple classes within a single PHP file. So, a better approach would be to ...

View answer
How to check day of the week in PHP
Accepted answer
2 votes

This question is technically about PHP (not Magento), and so you should check the docs on working with dates in PHP: http://php.net/manual/en/function.date.php date('w') // 0-6, Sunday - Saturday, ...

View answer