I had an issue where Magento was not picking up translation of “Free Shipping – Free” on my Checkout page. I got round this by adding a function inside /app/code/core/Mage/Sales/Model/Quote/Address/Total/Shipping.php inside the collect() function:
Posts Categorized: Frameworks/CMS
In app/config/config.php change the following vars: And in add a file in app/libraries called MY_Input.php with the following content:
Trying to import a Magento table into a database (drop table if exists) I got an error: The way to get round this is to remove the foreign key constraint CHECK, delete the table, then add the check again:
DESPATCH Here’s a link to a PDF detailing despatch process, NOT ZF2.x. http://nethands.de/download/zenddispatch_en.pdf APPLICATION.INI https://github.com/feibeck/application.ini STANDARD METHODS http://www.iostream.eu/wp-content/uploads/2012/11/zend_cheat_sheet.html
Thanks to Jon Bishop for this one:
Here are the SQL queries to update a WordPress database from one domain to another: # define var for old site SET @old_path = ‘http://oldsite.com’; # set var for new site SET @new_path = ‘http://newsite.com’; UPDATE wp_options SET option_value = replace( option_value, @old_path, @new_path ) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts… Read more »
Here’s where to look: http://ottopress.com/2009/wordpress-settings-api-tutorial/
Thanks to Jaygilford.com Also note, you can use vsprintf to supply an array as an argument, and also take a look at the WordPress function $wpdb->prepare():
I need a script to extract the database details from the wp-config.php file so I could keep the logon details in one location when I was coding something outside the WP framework. I came up with a class that does this, connects to mysql and selects the database. There are three connection options: PDO, mySQLi… Read more »
Well I thought I would try XML-RPC publishing in a WordPress blog. The main advantage I see in using RPC vs. email publishing is the use of font–styles. It also works with my SyntaxHighlighter plugin… I’m using the ScribeFire plugin for Firefox to write this blog, but Microsoft Live Writer looks like a good desktop… Read more »
Use the following link and just change the category id: index.php?option=com_content&view=category&id=1&format=feed&type=rss See this link… there might be a better way in Joomla 1.5.22+ but this works fine. Link
I was recently trying to upload a plugin to WordPress and found that the plugin could not create a directory. The problem was not directory permissions – it was user/group ownership. PHP running as fastCGI is running as user nobody on my VPS. I tried changing directory perms to 777 for wp-content/uploads and wp-content/plugins but… Read more »
It’s useful to know that you can easily hack a Joomla module by opening the relevant module in the /modules directory. Edit the XML file for admin panel entries. Edit the mod_xxx.php file and the helper.php files for the PHP, or edit the file in the tmlp directory for the page HTML. Realy simple!
If you’re Joomla 1.5 back-end suddenly displays bullets everywhere… you’ve enabled debug mode in the system Global Settings… duh!