Sometimes we only have one mysql database, and we have several domain names. How to install wordpress for each domain under one database then?
Here is an example, say: www.eyewearsaver.com, www.opticalsaver.com, www.eyeglassessaver.com, www.eyewearsave.com, and www.glassessaver.com. Continue reading How to install multi wordpress blog under one database?
Today I found a funny thing, when I visit www.bestpriceglasses.com, the site shows: “Sorry, the product was not found.”, at the same time, the homepage jump to a detailed product page, the url is: bestpriceglasses.com/index.php?main_page=product_info&products_id=35. Continue reading Zen-Cart Homepage Shows “Sorry, the product was not found.”
If there is no default homepage, such as index.htm, index.html, index.php, and so on, all the documents and files will be listed. Hackers often use this to find backdoor for them to hack a web site.
If you are using a linux related web hosting, you can use .htaccess to disable directory browsing. Just add the following code at the beginning of .htaccess: Continue reading Disable Directory Browsing with .htaccess
If you lost your zen-cart admin password, and you can not reset the new passwords via email either, how to do then? We can reset the admin passwords via phpmyadmin.
If your zen-cart is v1.3.9.h or older, open your phpMyAdmin (supplied by your hosting company), select your store’s database, then click the “SQL” tab and run this query:
DELETE FROM admin WHERE admin_name = 'Admin'; INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level) VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1); Continue reading How to reset zen-cart admin password?
We need to 2 steps to set Customer Also Bought of X-cart. Fist login admin panel and go to Settings –> Appearance –> Count of columns in simple product list, and Fill in 2, then the products will display in 2 columns.
Second aslo at admin panel, go to Settings –> Modules –> Recommended Products, and click “Configure”, “Number of products to be displayed in recommended products list”, fill in 6, if you like to show 6 products.
The above method is tested successfully under X-Cart Gold V4.4.4
If there are so many spam products reviews, we can not delete them one by one. We will spend a lot of time if we do so. We can using mysql command to delet the spam or un-approved zen-cart reviews in bulk.
The product review id is save at 2 tables: reviews and reviews_description, the review status is save in pres_reviews, if the status is “0”, it means the review is not approved yet. And the reviews details is saved in reviews_description. Continue reading How to delete Zen-Cart un-approved Product Reviews in Bulk?
After a long time of the installaction, we may have fogor the Auth Code, then we can not reinstall the old x-cart. Is there any way I can change this Auth Code then?
The answer is yes!
You can edit …/store/include/install.php.
Open install.php under include, $installation_auth_code = “xxxx”; xxxx will be your Auth Code.
Note: Perhaps it would be best to delete or otherwise make inaccessible the www.yoursite.com/xcart/install.php file.
If you do not like others to register your drupal based websites, login your drupal based website admin panel. Go to User management -> User settings.
Under Public registrations, choose “Only site administrators can create new user accounts.”
Save and done. I have tested Drupal 6.22.
I have used SimplePie for 2 years, and found it very useful, here are 2 skills I’d like to share with you.
Skill 1: Prevent show disordered characters if your goal site is using non-UTF8 code, such as iso-8859-1. Befor $feed->init() add the following code:
Skill 2: Show multiple feeds ( feeds sort by time and date)
At X-cart V4.1.9 Product Detail page, it does not display Market Price. We can add Marke Price there ourselves.
Just add the follow varible in the file skin1/customer/main/product.tpl
Continue reading Display Market Price on X-cart V4.1.9 Product Detail page