Magento: How do I get attribute set name & id?
Whenever you have a product object, you can access its attribute set like this: This will give you the name of the attribute set, which you can then compare using…
Whenever you have a product object, you can access its attribute set like this: This will give you the name of the attribute set, which you can then compare using…
Works for me if I use the native setAttribute(). Also, remember that you need quotes around the selector. the final html will be Also remember to define foo in the…
One issue with Magento is the overhead involved in importing/exporting data which can cause timeouts when run from the web. Here is a script which will run from the command…
Here’s how to un-ban yourself: Log into your cPanel or website database administration panel Enter phpMyAdmin Look for a database ending in _whmcs Browse that database Browse the table named tblbannedips Refer…
The CEILING function is used to round a number upwards to the nearest multiple of a specified value. For example, the function can be used to round up the costs…
Important This procedure replaces the numbers in the range with the result of the multiplication. In an empty cell, enter the number that you want to multiply by. Select the…
We could make an entire div tag clickable by redirecting the click to a page and by changing the cursor sytle to a pointer. This is good if you want…
I have found that it is very useful to be able to get attributes from the system and use them in places other than a products category page. I always forget the exact syntax to use so, this is going to be my unofficial cheat sheet.
This is how to get a drop down lists options. I don’t think it will work for a mulit-select attribute. I stick the value/label pairs into an array to use how I please.
(more…)
Performs a cURL-Request to check, if a website exists / is online Source: http://css-tricks.com/snippets/php/check-if-website-is-available/
Problem: how to retrieve product attributes by group id. See here: http://www.magentocommerce.com/boards/viewthread/79694/ Possible solution: Source: http://marius-strajeru.blogspot.com/2010/03/retrieve-attributes-by-groupid.html