Problem: In Shopp (1.1.9) the default variations drop-down list shows prices. This isn’t always desired. This is the default usage: Continue reading “Remove prices from Variation drop-downs in Shopp WordPress plugin”
Capture last viewed category in product view in Shopp Plugin for WordPress
Problem: I’m using the Shopp 1.1.9 ecommerce plugin for WordPress, and my client wanted to display specific background images while showing certain products. Shopp is very complete, but one thing that is missing in the current version ‘out of the box’ is the ability to pull the ‘last viewed’ category name when viewing a product. Obviously a product can belong to more than one cat, so it can’t know which one to display… Continue reading “Capture last viewed category in product view in Shopp Plugin for WordPress”
What is Notice: unserialize() [function.unserialize]: Error at offset then?
Problem: While doing some Shopp Plugin support work earlier, one customer was getting this error…
Notice: unserialize() [function.unserialize]: Error at offset 111 of 118 bytes in /home/maxwell4/public_html/main/wp-content/plugins/shopp/core/model/Settings.php on line 228
Continue reading “What is Notice: unserialize() [function.unserialize]: Error at offset then?”
.htaccess hidden on Rackspace Cloud Sites (in FTP, with Filezilla)
Problem: When connecting to a Rackspace Cloud site via FTP, hidden files are.. uh.. hidden. Usually Filezilla shows everything.
Fix: There is a setting in Filezilla called ‘Force showing hidden files’ that does exactly that. To activate that, go to the ‘Server’ menu item and select it. Like this: Continue reading “.htaccess hidden on Rackspace Cloud Sites (in FTP, with Filezilla)”
Remove pistons from brake calipers without fluid/tools
Project: I want to restore my old GT6 brake calipers and the old chipped paint us very VERY tough so I plan to use paint stripper. To do this without harming the seals and soft alloys I need to split each caliper and remove pistons.
Problem: The pistons are stuck in, and will only come out under pressure. Continue reading “Remove pistons from brake calipers without fluid/tools”
Sherbet fountains are a menace!
Problem: Every time I open a Sherbet Fountain in the car while driving I always get some on my trousers! Continue reading “Sherbet fountains are a menace!”
Set date.timezone in PHP without using php.ini
Problem: I needed to set default timezone for a site to get Zen Cart installed. The usual way would be to call date_default_timezone_set from a globally included script, or to use the date.timezone option in a php.ini file. The problem is that I don’t have access to the php.ini file and there is no script that will be called across the board. Continue reading “Set date.timezone in PHP without using php.ini”
Add ‘Related Products’ to the Product Template in the Shopp WordPress Plugin
Problem: Today I needed to add some code to a Shopp (ver 1.1.9) product.php template so that related products (that have same ‘Tag’) would show up at the bottom. The ‘Related Products‘ template tag was not behaving as I expected it to.. i.e. it was stopping the product page rendering anything at all. Continue reading “Add ‘Related Products’ to the Product Template in the Shopp WordPress Plugin”
Type a degrees symbol “°” on an iPhone
Fix: You don’t need to enable Japanese input languages or anything like that, just press and hold the zero ‘0’ key and a ° symbol will pop up.
Flush DNS Cache on OS X (10.5+)
- Open Terminal
- type “sudo dscacheutil -flushcache” (without double quotes)
- press Return, you’re done.