VB.NET dropdown or listbox, remove all items
[code]
ddlMyDropdownList.Items.Clear()
[/code]
[code]
ddlMyDropdownList.Items.Clear()
[/code]
I added downloadable products to a store, but wasn’t able to check out with them. They were straight-forward products with a single pdf as the sample and downloadable product. Everything looked fine, but when I added the product to the cart, it threw this error: Look at /app/code/core/Mage/Downloadable/Product/Type.php line 326 [sourcecode language=”php”] /** * Check…
So, Google analytics is pretty simple to install. Just put a piece of javascript in the footer of your site, and in no time Google is telling you all sorts of information about the site visitors. I’ve had this blog up and running a few days now, so I figured I would install analytics to…
Like all software, Magento 1 likes to log a lot of actions. That is usually useful information and not a problem, but it can make for a larger database that you would like. Especially if you need to copy the site to a new server or a local development environment. Honestly, in my experience, I…
So you want to run a few stores from one master admin in magento. Luckily, they make it easy to do. First thing’s first, secure the urls you need for your store. For my example, I’m gonna use www.evermoremagento.com as the main store and www.substore1.com as the secondary store. I’m assuming you want to keep…
Log cleaning in Magento is great, and they even provide a shell script for cleaning log tables. But sometimes I just want to do it the fast way through the MySQL cli. To do that I run this script. [sql]TRUNCATE TABLE dataflow_batch_export; TRUNCATE TABLE dataflow_batch_import; TRUNCATE TABLE log_customer; TRUNCATE TABLE log_quote; TRUNCATE TABLE log_summary; TRUNCATE…
Sometimes your local branch name isn’t the same as the remote branch you want to push to. This recently came up for me because I needed to push to a specific branch to trigger a deployment. Instead of the standard git push origin branch-name, it’s easy enough to specify the remote branch you want using…