CAT | development
25
A Big Saving from one Magento Hosting Provider
No comments · Posted by leo in development, magento
I just got this email from one Magento Hosting Provider – SimpleHelix which I mentioned before:
Dear XXXX,
Can you believe that Thanksgiving is already here? Thanksgiving is an American holiday that celebrates the spirit of giving. Thanksgiving is this Thursday (November 26th, 2009) and we at SimpleHelix hope you have a Happy Thanksgiving!
In the spirit of giving, we want to offer you a special “Black Friday” deal. This Friday, we are offering 50% of EVERYTHING! You heard right, EVERYTHING from shared hosting, dedicated servers, domain registration, domain transfers, SSLs, IPs, upgrades, and more. If you want to take part in this great savings event, just use the promotional code “SUPERsavings” during checkout. This will take 50% off of your first month’s payment! Don’t miss out!
Happy Holidays,
Simple Helix, LLC
19
How To Setup Multiple Magento Stores (Part 3)
No comments · Posted by leo in administration, development, magento
Subdirectory Method
This is the same scenario as above, except all of the shops will be in subdirectories, e.g.:
- mall.com/shoes
- mall.com/shirts
Here’s how we would set this up for the shoes subdirectory:
- Login to your site via SSH, and create a subdirectory where your second store will be:
- cd public_html
- mkdir shoes/
- cd shoes/
- Copy the index.php and .htaccess file from the directory where Magento is installed, which would be in our root web directory:
- cp ../public_html/index.php ../public_html/.htaccess .
- Open up the index.php file that we just copied over and replace the following line of code:
1
$mageFilename = 'app/Mage.php';
…with the following:
1
$mageFilename = '../public_html/app/Mage.php';
- With the index.php file still open, replace the following line of code:
1
Mage::run();
…with the following:
1
Mage::run('shoes', 'website');
development · magento · multi · multiple · store
19
How To Setup Multiple Magento Stores (Part 2)
2 Comments · Posted by leo in administration, development, magento
Adding Another Store In Magento
The first thing we need to do is setup our second store in Magento.
We’re going to do a hypothetical here for the naming conventions, and assume we own shirts.com. Adjust the values accordingly for your own store.
- Login to the Magento admin.
- Go to the Catalog tab, and select Manage Categories.
- Click on the Add Root Category button on the left.
- On the right, for the Name, we’ll enter Shoes.com. Set the dropdown to Yes for both Is Active and Is Anchor.
- Click the Save Category button.
19
How To Setup Multiple Magento Stores (Part 1)
No comments · Posted by leo in administration, development, magento
As I mentioned before, I am doing a multi-language and multi-currency website at that moment. So I found a lots information about how to setup the multiple store from internet. Here is a good one:
From crucialwebhost.com
———————————————————————————————————
There are numerous ways to setup multiple Magento stores that all share the same codebase and backend, but what method you use depends on your needs.
This article is written with cPanel in mind, though the methodologies listed below apply no matter what control panel you’re using.
5
How to determine Store ID for multi-type Magento site
3 Comments · Posted by leo in design, development, magento, module
Here is a quick reference for you, if you run Magento under Multi-language, Multi-Currency or Multi-Domain (Multi-Website).
Sometime you need pick up the Store ID do some (IF…ELSE…) work. Here is the code:
1 | <?php $store_id = $this->helper('core')->getStoreId(); echo $store_id; ?> |
I am busy on a big project about Magento.
I will update the blog as my work notes.
We will add four fields into Account/Registration Page.
Four core files:
app/design/frontend/default/yourtheme/template/customer/form/register.phtml – Has the HTML form for initial registration Note: this file will also be used for a one-shot database extension
app/design/frontend/default/yourtheme/template/customer/form/edit.phtml – Has the HTML form for edit by customers
app/code/core/Mage/Customer/Model/Entity/Setup.php – Has an array full of customer attributes to use for registration
app/code/core/Mage/Customer/etc/config.xml – Has a description of fields to be used in the forms
app/code/core/Mage/Customer/controllers/AccountController.php – For checkbox option
(more…)
15
Some Methods to Speed up Magento – a Guide to Making Magento Faster
3 Comments · Posted by leo in administration, development, magento
Some Methods to Speed up Magento – a Guide to Making Magento Faster
1. Install Fooman Speedster
This one made a massive difference to page loads for the first site I am testing.
http://www.magentocommerce.com/extension/457/fooman-speedster
2. Enable Gzip Compression in .htaccess
http://www.magentocommerce.com/boards/viewthread/7100/
To do this, uncomment this part in the .htacess: (Line 52)
#php_flag zlib.output_compression on
(ie Remove the # save and reupload)
(Next are from – http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/)
8
Headache about Magento SEF URL Identifier
No comments · Posted by leo in development, magento
As I said before, I am developing a new multi-language website.
One is English, and another one is German.
But, on the SEF URL Identifier part, I only can use one language as SEF URL Identifier.
So .. for the SEO, it only can help on one language….
I am still keep searching the solution.
22
About Integrity constraint violation: 1062 Duplicate entry PROBLEM
3 Comments · Posted by leo in development, magento
I moved my one MAGENTO site from test side to the live side.
But when we did test for the website, we were trying to add some item to the shopping bag, but we got the message said:
Integrity constraint violation: 1062 Duplicate entry ’6′ for key 1
After some research, here is solution:
Go to PHPMyAdmin, find out all tables like Log_*,
Delete all the contents in Log_* except the Log_Summary_type one.
The problem solved.
16
Small tips for multi-language translation
4 Comments · Posted by leo in development, magento, template
Many people know, on the /app/locale/language pack folder, you can add translation which you want into the .csv files (for example, mage_page.csv).
But, sometime, we added/changed something on the .csv, but nothing happen.
Especially the words which you add/edit on the template files.
What is wrong?
If you want some word can automatic translate, you need write them as PHP FORMAT, not directly writing.
For example, you add one line in the homepage…
<h1>i am homepage</h1> this word can show on the page, but can not translate by Magento.
you must write word like below:
<h1><?php echo $this->__(‘i am homepage‘) ?></h1>
Done.
