Profile
Achievement
hotdiggity's Recent PHP Snippets
- All /
« Prev 1 Next »
Set up a basic template:
<html>
<head>
<title>[[++site_name]] - [[*pagetitle]]</title>
<base>
<meta>​
</head>
<body>
[[*content]]
</body>
</html>
Content:
<div>
<h4>The ACME web site is currently under development</h4>
<p>Please...
0
468
posted 12 years ago by hotdiggity
Writes to a text file, test.txt, instead of email for the purposes of testing.
0
567
posted 12 years ago by hotdiggity
Lastly, in order to make magento connect to work correctly edit the pear.ini (downloader/pearlib/pear.ini) and update al the paths that you see in this file. Otherwise magentoconnect will try to upgrade your old site when you use it.
(the files do...
0
532
posted 12 years ago by hotdiggity
Say you don’t want to reset ALL your orders, maybe you want to PRUNE a production database. if that’s the case, this php file (added to a crontab, or ran from your magento root directory) will DELETE all cancelled orders (5000 limit per instance)...
0
518
posted 13 years ago by hotdiggity