<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Magento - Shopping Cart &#187; Magento</title>
	<atom:link href="http://www.magento.cn/category/magento-shopping-cart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magento.cn</link>
	<description>Magento template, Design, Hosting</description>
	<lastBuildDate>Mon, 26 Jul 2010 03:52:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Magento Bestsellers Special Promotion Show On Homepage</title>
		<link>http://www.magento.cn/242/magento-shopping-cart/magento-bestsellers-special-promotion-show-on-homepage/</link>
		<comments>http://www.magento.cn/242/magento-shopping-cart/magento-bestsellers-special-promotion-show-on-homepage/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 11:12:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Bestsellers]]></category>
		<category><![CDATA[Homepage]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Promotion]]></category>
		<category><![CDATA[Show]]></category>
		<category><![CDATA[Special]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=242</guid>
		<description><![CDATA[Magento Bestsellers Another Easy Resolve Way This way don&#8217;t need install any extension or module. Useful Magento Tips. Creat a catalog  on your magento admin panel,  Set the status to  &#8220;NO&#8221;  don&#8217;t show on your magento  store. and check from URL find out this catalog&#8217;s ID. OK you could enter this ID to Refer those [...]]]></description>
			<content:encoded><![CDATA[<p>Magento Bestsellers Another Easy Resolve Way</p>
<p>This way don&#8217;t need install any extension or module. Useful Magento Tips.</p>
<p>Creat a catalog  on your magento admin panel,  Set the status to  &#8220;NO&#8221;  don&#8217;t show on your magento  store. and check from URL find out this catalog&#8217;s ID. OK you could enter this ID to Refer those best sellers or special promotion products:</p>
<p><span style="font-family: ???;">&lt;h3&gt;Bestsellers&lt;/h3</span><span style="font-family: ???;">&gt;<br />
{{block  type=&#8221;catalog/product_list&#8221; category_id=&#8221;49&#8243; template=&#8221;catalog/product/list.phtml&#8221;}}</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/242/magento-shopping-cart/magento-bestsellers-special-promotion-show-on-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Database Diagram Table List</title>
		<link>http://www.magento.cn/221/magento-shopping-cart/magento-database-diagram-table-list/</link>
		<comments>http://www.magento.cn/221/magento-shopping-cart/magento-database-diagram-table-list/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:41:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Database Diagram]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento Database]]></category>
		<category><![CDATA[Table List]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=221</guid>
		<description><![CDATA[Magento Database Analytics Magento Database Diagram Table List Click to see large picture. The above image is only a low-resolution diagram example table list. Its usefull for you learn magento database diagram.]]></description>
			<content:encoded><![CDATA[<p>Magento Database Analytics<br />
Magento Database Diagram Table List<br />
<a href="http://www.magento.cn/wp-content/uploads/2010/05/magentodatabasediagram.png"><img class="aligncenter size-medium wp-image-222" title="magento database diagram table" src="http://www.magento.cn/wp-content/uploads/2010/05/magentodatabasediagram-300x216.png" alt="magento database" width="300" height="216" /></a>Click to see large picture.</p>
<p>The above image is only a low-resolution diagram example table list. Its usefull for you learn magento database diagram.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/221/magento-shopping-cart/magento-database-diagram-table-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Magento MySQL database from one server to another remote server</title>
		<link>http://www.magento.cn/197/magento-shopping-cart/copy-magento-mysql-database-from-one-server-to-another-remote-server/</link>
		<comments>http://www.magento.cn/197/magento-shopping-cart/copy-magento-mysql-database-from-one-server-to-another-remote-server/#comments</comments>
		<pubDate>Wed, 05 May 2010 11:43:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento hosting]]></category>
		<category><![CDATA[Magento Database]]></category>
		<category><![CDATA[Magento phpadmin]]></category>
		<category><![CDATA[remote server]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=197</guid>
		<description><![CDATA[Copy MySQL database from one server to another remote server Our Magento Shop working some period usually coming with very large Datebase.When you need transfer hosting its big problem on transfer this database to your new hosting. Follow is introduce my experience on how transfer Magento Mysql Database from one server to another remote server: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Copy MySQL database from one server to another remote server</strong><br />
Our Magento Shop working some period usually coming with very large Datebase.When you need transfer hosting its big problem on transfer this database to your new hosting.</p>
<p>Follow is introduce my experience on how transfer <strong>Magento Mysql Database</strong> from one server to another remote server:</p>
<p>Option A<br />
Click the database that you wish to backup (eg. d01234567)<br />
Click Export<br />
Click the appropriate option:<br />
-Structure only<br />
-Structure and data (recommended)<br />
-Data only<br />
Click the &#8220;Save as File&#8221; option<br />
Click the &#8220;Go&#8221; button</p>
<p>This is for small database file transfer.</p>
<p>Option B<br />
If your database is too large to backup via phpMyAdmin, you may backup the database through an SSH session if your plan supports it (SSH available on Advantage and Business plans):<br />
Your MySQL databases can be administered through an SSH session via command line (especially if you have large sized data to import/export):</p>
<p>First, turn SSH on for your account:</p>
<p>1. Login to the Control Panel<br />
2. Click Hosting<br />
3. Click Settings<br />
4. In the SSH section, use the pull-down menu to enable SSH if it&#8217;s not yet enabled</p>
<p>5. Then find an SSH client such as WinSCP (available for free from http://prdownloads.sourceforge.net/winscp/winscp380.exe?download )</p>
<p>SSH connections can be established with the following login credentials:</p>
<p>Username<br />
Password<br />
Host: Your hosting IP(port 22)</p>
<p>6. Using Netfirms File Manager or the touch command in SSH, create a file called dbBackupFile.sql. The file may reside anywhere inside your /www folder.</p>
<p>7. To make a backup copy of your mysql magento database via a SSH session:</p>
<p>%/usr/local/nf/bin/mysqldump -e &#8211;force &#8211;quick -h mysqlhost -u Username -pPassword DatabseID &gt; dbBackupFile.sql</p>
<p>(You will then be prompted to enter your database password.)</p>
<p>Option C<br />
You may use a PHP or Perl script to backup your <strong>Magento MySQL data</strong>.</p>
<p>The following sample codes (you can name the file dbBackupFile.php in place it inside your www folder) will create a backup .sql file of your database inside your www folder:</p>
<p>PHP</p>
<p>backup.sql&#8221;;<br />
exec($command,$error);<br />
if ($error) {<br />
echo &#8220;Error: &#8220;. $error;<br />
}<br />
?&gt;</p>
<p>Perl/CGI</p>
<p>#!/usr/bin/perl<br />
print &#8220;Content-type: text/htmlnn&#8221;;<br />
$cmd=system &#8220;/usr/local/nf/bin/mysqldump -uu70459875 -p8c2f28 d60417018 &gt; perldbbackup.mysl&#8221;;<br />
if ($cmd)<br />
{<br />
print &#8220;Error!!!!&#8221;;<br />
}<br />
else<br />
{print &#8220;Sucess!!!!&#8221;;<br />
}</p>
<p>Option D</p>
<p>SCHEDULING YOUR MAGENTO DATABASE BACKUPS<br />
To create a cron job to schedule your database backups please click here for further instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/197/magento-shopping-cart/copy-magento-mysql-database-from-one-server-to-another-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Performance Optimization with Zend Server Webinar</title>
		<link>http://www.magento.cn/150/magento-shopping-cart/magento-performance-optimization-with-zend-server-webinar/</link>
		<comments>http://www.magento.cn/150/magento-shopping-cart/magento-performance-optimization-with-zend-server-webinar/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 05:03:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Performance Optimization]]></category>
		<category><![CDATA[Server Webinar]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=150</guid>
		<description><![CDATA[Magento]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.magento.cn">Magento</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/150/magento-shopping-cart/magento-performance-optimization-with-zend-server-webinar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Latest Official Magento User Guide</title>
		<link>http://www.magento.cn/144/magento-shopping-cart/the-latest-official-magento-user-guide/</link>
		<comments>http://www.magento.cn/144/magento-shopping-cart/the-latest-official-magento-user-guide/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 05:27:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[E book]]></category>
		<category><![CDATA[Official Magento]]></category>
		<category><![CDATA[The Latest]]></category>
		<category><![CDATA[User Guide]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=144</guid>
		<description><![CDATA[The Latest Official Magento User Guide Chapter 1: Introducing Magento What is Magento Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. With Magento, never feel trapped in your eCommerce solution again. Since it is open-source, Magento‘s code is available free for download. Just go to www.magentocommerce.com/download to download your copy [...]]]></description>
			<content:encoded><![CDATA[<p>The Latest Official Magento User Guide</p>
<p><strong>Chapter 1: Introducing Magento</strong></p>
<p>What is Magento<br />
Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. With Magento, never feel trapped in your eCommerce solution again.<br />
Since it is open-source, Magento‘s code is available free for download. Just go to www.magentocommerce.com/download to download your copy today. In this guide we will introduce key concepts and walk you through setting up your Magento store, from installing Magento, to entering products.<br />
Elements and Terminologies of Magento Sites<br />
Magento is made up of a few different elements which define the functionality, design and business logic of the site. In order to follow along with the User Guide it is crucial that you have a good grasp of the terminologies used to describe these elements of the Magento system. The terminologies introduced in this chapter are most likely new territory for you, so take your time and read through them thoroughly. But most importantly, don‘t be discouraged if you can‘t fully grasp the concept of all these new terminologies &#8211; This chapter merely serves to introduce them, and further chapters will dig deeper into, and expand upon, these simple definitions.<br />
Websites and Stores<br />
One of the most powerful features of Magento is the ability to manage multiple websites and stores from one back-end. This allows store owners to manage stores on different URLs, display the same products in different languages on the same URL, along with a variety of other setups. If you will only be selling your products from one URL in one language you will not need to use this functionality, but the ability to easily expand into additional languages makes Magento scalable as your business grows out of your home market.<br />
Websites<br />
A website is made up of one or more stores which share the same customer information, order information and shopping cart. This is a very broad term that can be adopted to define the unique needs of individual merchants.<br />
Stores<br />
Stores can be setup in a variety of ways, but remember that if they are part of the same website they will share certain information.</p>
<p>Store Views<br />
Store Views are mainly used for different languages, so if you wanted to have a store displayed in English and Spanish, for example, you could create the store once and create two different store views for that store. A few scenarios to define the different uses of website and store are as follows:<br />
Scenario 1: One Website with multiple stores<br />
Scenario 2: Two Stores with two store views each<br />
Scenario 3: One Website with one store and one store view The most common setup will be a one website and one store setup, but understanding the functionality of multiple websites and stores will help you understand why certain values are</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/144/magento-shopping-cart/the-latest-official-magento-user-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Database,Integrity constraint violation: 1452 Cannot add or update a child row</title>
		<link>http://www.magento.cn/142/magento-shopping-cart/magento-databaseintegrity-constraint-violation-1452-cannot-add-or-update-a-child-row/</link>
		<comments>http://www.magento.cn/142/magento-shopping-cart/magento-databaseintegrity-constraint-violation-1452-cannot-add-or-update-a-child-row/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 03:22:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[1452]]></category>
		<category><![CDATA[constraint violation]]></category>
		<category><![CDATA[Integrity]]></category>
		<category><![CDATA[update a child row]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=142</guid>
		<description><![CDATA[This kind problem usually happen after change host and can&#8217;t save product. its show: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`/catalog_product_ website`, CONSTRAINT `FK_CATALOG_PRODUCT_WEBSITE_WEBSITE` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE) You could try follow query to find out [...]]]></description>
			<content:encoded><![CDATA[<p>This kind problem usually happen after change host and can&#8217;t save product. its show:</p>
<p>SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`/catalog_product_</p>
<div id=":11j" class="ii gt">website`, CONSTRAINT `FK_CATALOG_PRODUCT_WEBSITE_WEBSITE` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE)</div>
<div class="ii gt">You could try follow query to find out some incorrect product:</div>
<div class="ii gt">
<div class="codeblock"><code> <span style="color: #0000bb;">SELECT<br />
</span><span style="color: #007700;">*<br />
</span><span style="color: #0000bb;">FROM<br />
catalog_category_product_index<br />
LEFT<br />
JOIN<br />
catalog_product_entity<br />
ON catalog_category_product_index</span><span style="color: #007700;">.</span><span style="color: #0000bb;">product_id </span><span style="color: #007700;">= </span><span style="color: #0000bb;">catalog_product_entity</span><span style="color: #007700;">.</span><span style="color: #0000bb;">entity_id<br />
WHERE<br />
catalog_product_entity</span><span style="color: #007700;">.</span><span style="color: #0000bb;">entity_id IS NULL</span></code></div>
<p>deleted all the incorrect products to try. good luck</p>
<p><a title="magento" href="http://www.magento.cn">magento</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/142/magento-shopping-cart/magento-databaseintegrity-constraint-violation-1452-cannot-add-or-update-a-child-row/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Use Guide Ebook &#8211; Magento Modules</title>
		<link>http://www.magento.cn/140/magento-shopping-cart/magento-use-guide-ebook-magento-modules/</link>
		<comments>http://www.magento.cn/140/magento-shopping-cart/magento-use-guide-ebook-magento-modules/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:47:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Ebook]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento Modules]]></category>
		<category><![CDATA[Use Guide]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=140</guid>
		<description><![CDATA[Magento Modules Modules are the core of Magento. Every action on the site, frontend or backend, goes through a module. Modules act as containers for one or more of the following: settings, database schemas, rendering objects, utility helpers, data models, or action controllers. A module can be made of all six of these things, or [...]]]></description>
			<content:encoded><![CDATA[<p><a title="magento" href="http://www.magento.cn">Magento</a> Modules<br />
Modules are the core of Magento. Every action on the site, frontend or backend,<br />
goes through a module. Modules act as containers for one or more of the following:<br />
settings, database schemas, rendering objects, utility helpers, data models, or<br />
action controllers. A module can be made of all six of these things, or just one.<br />
Modules are defined as being on or off in an XML configuration system located in<br />
app/etc/modules/. Each module can specify its own settings in an XML file as well,<br />
located under themodule’s etc/ directory.<br />
Since everything in Magento is a module, and modules have self-contained configuration<br />
and database settings, this allows you, as a developer, to extend Magento<br />
exactly as the core system is built.<br />
Module Structure<br />
Belowyou can see the directory structure of the Catalog module. The catalog module<br />
contains all of the aspects of a module.<br />
- Mage/<br />
|- Catalog/<br />
| |- Block/<br />
| |- Helper/<br />
| |- Model/<br />
| |- controllers/</p>
<p>| |- etc/<br />
| &#8211; sql/<br />
Code Pools<br />
Modules are located in one of three code pools. The code pools are: core, local, and<br />
community. All of the modules distributed with the base Magento are in the core<br />
code pool. All of the custom modules that you develop can be installed in the local<br />
code pool. The community pool was originally designed for installed third-party<br />
modules, but this idea might be phased out, as you can simply install any module in<br />
local as well as community.<br />
- app/<br />
- code/<br />
|- local/<br />
|- community/<br />
- core/<br />
Module Packages<br />
All models exist under a package directory. The package serves no purpose other<br />
than to allow for consistent naming of classes. All Magento modules are part of the<br />
Mage package. Thus, all Magento class names begin with Mage_. It is an acceptable<br />
practice to create a new package for your custom modules that has the name of your<br />
company or organization instead of Mage. There is no functional detriment when not<br />
using Mage as your package.<br />
Models<br />
Models are the muscle ofMagento. They help move data from the database into the<br />
program itself. The output, or rendering, of the data is done by the Blocks, but the<br />
models are mainly responsible for manipulating the data. Models, in any programming<br />
environment, help to identify and shape data domains. What this means is that<br />
models draw boundaries between definitions of data groups and relate data groups<br />
to other data groups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/140/magento-shopping-cart/magento-use-guide-ebook-magento-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Use Ebook &#8211; Exploring Magento</title>
		<link>http://www.magento.cn/130/magento-shopping-cart/magento-use-ebook-exploring-magento/</link>
		<comments>http://www.magento.cn/130/magento-shopping-cart/magento-use-ebook-exploring-magento/#comments</comments>
		<pubDate>Sun, 31 May 2009 12:46:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Exploring Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento ebook]]></category>
		<category><![CDATA[use guilde]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=130</guid>
		<description><![CDATA[Exploring Magento Magento’s administrative interface gives you control over all the standard features of your shopping cart site. Looking at this backend interface can shed some light on what features Magento has to offer. Login to the backend with the admin account which you setup during the installation and you will see something. Figure 3.1 [...]]]></description>
			<content:encoded><![CDATA[<p>Exploring <a title="magento" href="http://www.magento.cn">Magento</a><br />
Magento’s administrative interface gives you control over all the standard features of<br />
your shopping cart site. Looking at this backend interface can shed some light on<br />
what features Magento has to offer. Login to the backend with the admin account<br />
which you setup during the installation and you will see something.</p>
<p>Figure 3.1<br />
Magento provides standard functionality that you would expect from any shopping<br />
cart, including:<br />
• Multiple category trees</p>
<p>• Definable attributes<br />
• Customer and customer groupmanagement<br />
• Discount rules for promotions<br />
• Newsletter management<br />
• Web page manager<br />
• Order review system<br />
• Reporting features<br />
• System configuration and settings<br />
In addition to these features, there are a number of features that would not be provided<br />
by default in other shopping carts. A short list of these impressive features<br />
include:<br />
• Reviewing search terms<br />
• Reviewing customer tags<br />
• Poll manager<br />
• Currency exchange rates<br />
• Google Sitemap integration<br />
• Abandoned shopping cart report<br />
• Layered category navigation<br />
None of these features by themselves are probably that impressive. But to have a<br />
system in which they are all present, by default, with no plugins necessary, is truly a<br />
breath of fresh air in the open source e-commerce arena.<br />
By now, you’ve probably “clicked” around in the backend a little. The remainder<br />
of this chapter will guide you through the basics of what Magento has to offer and<br />
cover Magento specific terms. It is necessary to have a thorough understanding of<br />
Magento’s basic operation in order to better understand the code. Let’s start with<br />
Magento’s product catalog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/130/magento-shopping-cart/magento-use-ebook-exploring-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ebook Magento Use Guilde-Developing For Magento</title>
		<link>http://www.magento.cn/127/magento-shopping-cart/ebook-magento-use-guilde-developing-for-magento/</link>
		<comments>http://www.magento.cn/127/magento-shopping-cart/ebook-magento-use-guilde-developing-for-magento/#comments</comments>
		<pubDate>Wed, 27 May 2009 06:00:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Developing Magento]]></category>
		<category><![CDATA[Ebook]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento Use Guilde]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=127</guid>
		<description><![CDATA[Developing for Magento Prep Your Environment Make sure you have themost up-to-date version ofMagento downloaded. Start by downloading the latest release of Magento from http://magentocommerce.com/. LAMP/WAMP Platform If you are on theWindows platformthe easiest way to install PHP, Apache andMySQL is with the XAMPP family of packages from http://apachefriends.org. Install the XAMPP-lite package anywhere on [...]]]></description>
			<content:encoded><![CDATA[<p>Developing for <a title="magento" href="http://www.magento.cn">Magento</a><br />
Prep Your Environment<br />
Make sure you have themost up-to-date version ofMagento downloaded.<br />
Start by downloading the latest release of Magento from</p>
<p>http://magentocommerce.com/.</p>
<p>LAMP/WAMP Platform<br />
If you are on theWindows platformthe easiest way to install PHP, Apache andMySQL<br />
is with the XAMPP family of packages from http://apachefriends.org. Install the<br />
XAMPP-lite package anywhere on your drive and run the setup.bat file. There is a<br />
version of XAMPP forMac OS X and Linux as well.<br />
Subversion<br />
For developing your own modules, it is recommended that you use Subversion<br />
version control to keep track of all of your code changes. TortoiseSVN from<br />
http://tortoisesvn.tigris.org is the recommended client and server for Windows<br />
users. For Mac and Linux users, the command line svn program plus the PHP package<br />
websvn is recommended. If you are not familiar with the Subversion system, you<br />
can read more about it at the SubversionWeb site (http://subversion.tigris.org/).</p>
<p>MySQL Tools<br />
Apart from the actual MySQL server, it is most useful to have a graphical client to<br />
inspectMagento’s database tables from time to time. TheMySQL Query Browser tool<br />
is the official client provided by MySQL AB and is available for all major operating<br />
systems. Some users prefer mysqlcc or phpMyAdmin over MySQL Query Browser,<br />
though.<br />
Installation<br />
Unzip <a title="magento" href="http://www.magento.cn">Magento</a> into your Web server’s document root (from here on, referenced as<br />
{docroot}). You should see a directory layout like this:<br />
{docroot}/magento/<br />
app/<br />
index.php<br />
js/<br />
lib/<br />
LICENSE.txt<br />
media/<br />
pear<br />
skin/<br />
var/<br />
Database Setup<br />
Magento will not create its required database for you, even if your database user<br />
has proper rights to create a database. Because of this, we will need to create the<br />
database using one of the previously mentioned MySQL tools. A normal database<br />
name, sometimes called a schema, can be “magento”, or “magento_dev”, or you can<br />
even include the version number “magento_10”.<br />
Magento Setup<br />
You should now continue withMagento’s base installation by pointing your browser<br />
to http://localhost/magento/. Here, you will see a basic step-by-step form for in</p>
<p>stalling most PHP Web applications. Follow the on-screen directions and your Magento<br />
installation will be complete.<br />
Sample Data<br />
If this is your first time trying out Magento you should install the optional sample<br />
data. The sample data is provided as a separate download as it is about 35 MB. The<br />
sample data provides some sample products, categories, and product images. Once<br />
you have downloaded the package, copy the media folder over your own media folder<br />
under your Magento installation. Then run the provided SQL file with your MySQL<br />
management tool.<br />
As of the time of thiswriting, the sample data is distributed as a complete database<br />
installation. Therefore, it needs to be inserted before you proceed with the regular<br />
setup. The regular setup will actually upgrade the sample data to the latest version.<br />
Initializing Subversion<br />
Magento has three directories from which modules are executed: core, community,<br />
and local. All the examples in this book assume that you are developing in the local<br />
module directory. Under the local directory, you can group all of your modules together<br />
under one package. This package is called Mage for all magento core modules,<br />
but this book will use Company for all the examples. You can use any package name<br />
besides Company for a package name that represents your company or organization.<br />
Initializing subversion is a bit tricky. First, you need to initialize a repository. Then,<br />
you need to create a folder or directory to import into this new repository. After that<br />
you are not ready to start using subversion. The directory which was imported needs<br />
to be removed, and then checked out of the repository in order for it to be connected<br />
with subversion. Let’s look at the steps in detail.<br />
Picking a subversion repository on the Linux platform is pretty easy. After<br />
installing Subversion from RPM, there usually exists a directory similar to<br />
/var/lib/subversion/repositories/. Initialize a new repository with the command:<br />
svnadmin create /var/lib/subversion/repositories/magento_modules</p>
<p>If you are using TortoiseSVN underWindows, create a folder anywhere on your computer,<br />
right-click that folder, and select Create repository here&#8230; from the TortoiseSVNmenu.<br />
Our goal for setting up Subversion is to have a folder named Company under the<br />
app/code/local directory of Magento. This will allow us to easily add new modules<br />
and save our work to Subversion whenever we want. Create a new directory under<br />
the app/code/local folder called svn_import. Under this temporary svn_import directory<br />
create another folder called Company, or whichever name you’ve decided to use<br />
for your packaging. If you are running on a Unix platform, run this command from<br />
inside the svn_import directory (ignoring the shell prompt):<br />
[svn_import]$ svn import . \<br />
file:///var/lib/svn/repositories/magento_modules/<br />
OnWindows, use TortoiseSVN by right-clicking on the svn_import folder and choosing<br />
the Import&#8230; menu item. A new dialog will appear and ask you to input the<br />
URL of the repository. Click the ellipses button and browse to the folder which you<br />
designated as your repository in the previous step.<br />
Delete the svn_import folder after successfully importing into your new repository.<br />
Next, we need to checkout the folder we just imported to get a Subversion activated<br />
directory. On Unix:<br />
[local]$ svn checkout \<br />
file:///var/lib/svn/repositories/magento_modules/Company<br />
OnWindows, right click on the local folder and choose SVN Checkout&#8230;. Accept the<br />
default settings in the dialog, and confirm Yes when it asks you if you really want to<br />
overwrite the folder.<br />
Covering all Subversion commands is beyond the scope of this book. But you are<br />
now prepared to develop and save your custom Magento modules in a subversion<br />
directory if you so choose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/127/magento-shopping-cart/ebook-magento-use-guilde-developing-for-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who Need This Magento Use Guide</title>
		<link>http://www.magento.cn/124/magento-shopping-cart/magento-use-guide-for-developer-store-woners/</link>
		<comments>http://www.magento.cn/124/magento-shopping-cart/magento-use-guide-for-developer-store-woners/#comments</comments>
		<pubDate>Sun, 24 May 2009 12:12:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Use Guide]]></category>
		<category><![CDATA[Who Need]]></category>

		<guid isPermaLink="false">http://www.magento.cn/?p=124</guid>
		<description><![CDATA[Who Can Use This Use Guide? Developers This book should serve as a thorough introduction for developers to the structure of Magento, as well as provide you with enough examples that you can take any of your coding ideas to fruition. Developers will learn how to write custom modules for Magento for redistribution or for [...]]]></description>
			<content:encoded><![CDATA[<p>Who Can Use This Use Guide?<br />
Developers<br />
This book should serve as a thorough introduction for developers to the structure<br />
of Magento, as well as provide you with enough examples that you can take any of<br />
your coding ideas to fruition. Developers will learn how to write custom modules<br />
for Magento for redistribution or for simply deploying on a corporate installation of<br />
Magento.<br />
Store Owners<br />
If you are not a programmer, but simply want to run a <a title="magento" href="http://www.magento.cn">Magento</a> store, this book<br />
might not be for you, but if you think you might need custom programming for your<br />
shopping cart this book can help you communicate better with your developers.<br />
It’s tough to avoid getting the wool pulled over your eyes when hiring a remote<br />
developer. Armed with the knowledge ofMagento provided by this book, you should<br />
be able to verify any cost estimates you receive and find out if your developers are<br />
stalling or not.<br />
About This Book<br />
This book is organized roughly into two sections. The first section describes how<br />
Magento works from a code perspective and from a general user-interface perspective.<br />
The remaining chapters will walk the reader through building various modules<br />
forMagento by example. Although not a complete detail ofMagento’s API, this book<br />
should give the reader all the learning by examples that he or she should need to<br />
understand all the concepts that driveMagento’s code.<br />
Code Formatting<br />
SinceMagento is built on the Zend Framework the code formatting of the examples<br />
in this book will follow the Zend Framework style guidelines. Sometimes the code</p>
<p>examples in this book are shortened to fit on the pages, so style may suffer in some<br />
instances to conserve space.<br />
When referring to variables, classes, objects, or concepts this book will put the<br />
word or words in question into italics. When specifically referring to the word of a<br />
variable, class name, etc. the words will be formatted as inline code. File names will<br />
also be formatted this way.<br />
When talking about Mage_Core_Model_Abstract the object class italics will be<br />
used, but when talking about why a class is named Mage_Core_Model_Abstract, inline<br />
code formatting will be used.<br />
XML Examples<br />
When referencing XML the ellipses, &#8230;, are used to suggest that other, optional, or<br />
pre-existing XML tags are present. Given the XML structure below:<br />
&lt;config&gt;<br />
&lt;modules&gt;<br />
&lt;Company_RewardPoints&gt;<br />
&lt;version&gt;0.1.0&lt;/version&gt;<br />
&lt;depends&gt;<br />
&lt;Mage_Customer /&gt;<br />
&lt;Mage_Checkout /&gt;<br />
&lt;/depends&gt;<br />
&lt;/Company_RewardPoints&gt;<br />
&lt;/modules&gt;<br />
&lt;global&gt;<br />
&lt;resources&gt;<br />
&lt;rewardpoints_setup&gt;<br />
&lt;setup&gt;<br />
&lt;module&gt;Company_RewardPoints&lt;/module&gt;<br />
&lt;class&gt;Mage_Core_Model_Resource_Setup&lt;/class&gt;<br />
&lt;/setup&gt;<br />
&lt;connection&gt;&lt;use&gt;core_setup&lt;/use&gt;&lt;/connection&gt;<br />
&lt;/resources&gt;<br />
&lt;/global&gt;<br />
&lt;/config&gt;<br />
The section enclosed in the rewardpoints_setup tag may be represented as this:<br />
&lt;config&gt;</p>
<p>&#8230;<br />
&lt;global&gt;<br />
&#8230;<br />
&lt;resources&gt;<br />
&lt;rewardpoints_setup&gt;<br />
&lt;setup&gt;<br />
&lt;module&gt;Company_RewardPoints&lt;/module&gt;<br />
&lt;class&gt;Mage_Core_Model_Resource_Setup&lt;/class&gt;<br />
&lt;/setup&gt;<br />
&lt;connection&gt;&lt;use&gt;core_setup&lt;/use&gt;&lt;/connection&gt;<br />
&lt;/resources&gt;<br />
&#8230;<br />
&lt;/global&gt;<br />
&#8230;<br />
&lt;/config&gt;<br />
Operating SystemConsiderations<br />
When possible, this book will describe technical procedures for Linux,Mac OS X, and<br />
Windows operating systems. However, to keep examples brief, simple references to<br />
file locations will use Windows directory and file naming conventions. When listing<br />
directories, the forward slash (/) will be used as a directory separator as this convention<br />
falls in line with standard Unix behavior (Mac OS X and Linux) plus PHP and<br />
Apache can automatically translate forward slashes to back slashes where need be<br />
onWindows.<br />
Do not be surprised to see a directory like this:<br />
C:/xampp/apache/htdocs/magento/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magento.cn/124/magento-shopping-cart/magento-use-guide-for-developer-store-woners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
