<?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>Whitebunnywabbit &#187; Magento</title>
	<atom:link href="http://www.whitebunnywabbit.com/category/ecommerce/magento/feed" rel="self" type="application/rss+xml" />
	<link>http://www.whitebunnywabbit.com</link>
	<description>General Whitebunnywabbit is Watching you</description>
	<lastBuildDate>Thu, 12 Jan 2012 08:58:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Magento Delete Products and Categories</title>
		<link>http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html</link>
		<comments>http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html#comments</comments>
		<pubDate>Thu, 23 Dec 2010 23:57:01 +0000</pubDate>
		<dc:creator>calhoun</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[mass delete]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://www.whitebunnywabbit.com/?p=877</guid>
		<description><![CDATA[<p><p><a href="http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html">Magento Delete Products and Categories</a>%%</p><p>The database structure used in Magento can be very complex to new starts &#8211; hence why recently I outsourced a major database manipulation project. Part of this project involves wiping the database of products and categories frequently. So I decided to put this post into place &#8211; not because its nesessary original discovered or particuarily [...]</p></p><p>Created by <a href="http://www.whitebunnywabbit.com"> Whitebunnywabbit </a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html">Magento Delete Products and Categories</a>%%</p><p><a href="http://www.whitebunnywabbit.com/wp-content/uploads/2010/12/home-magento2.png"><img class="alignleft size-medium wp-image-880" title="home-magento" src="http://www.whitebunnywabbit.com/wp-content/uploads/2010/12/home-magento2-300x194.png" alt="Magento Logo" width="300" height="194" /></a>The database structure used in Magento can be very complex to new starts &#8211; hence why recently I outsourced a major database manipulation project.</p>
<p>Part of this project involves wiping the database of products and categories frequently. So I decided to put this post into place &#8211; not because its nesessary original discovered or particuarily interesting. I created it simply so I can easily come back to the information I need when I am cleaning the database on test runs I got bored having to google each time and as you&#8217;ll see this is not exactly easy to remember.</p>
<p>Delete Categories:</p>
<pre><code class="sql">
TRUNCATE TABLE `catalog_product_bundle_option`;
TRUNCATE TABLE `catalog_product_bundle_option_value`;
TRUNCATE TABLE `catalog_product_bundle_selection`;
TRUNCATE TABLE `catalog_product_entity_datetime`;
TRUNCATE TABLE `catalog_product_entity_decimal`;
TRUNCATE TABLE `catalog_product_entity_gallery`;
TRUNCATE TABLE `catalog_product_entity_int`;
TRUNCATE TABLE `catalog_product_entity_media_gallery`;
TRUNCATE TABLE `catalog_product_entity_media_gallery_value`;
TRUNCATE TABLE `catalog_product_entity_text`;
TRUNCATE TABLE `catalog_product_entity_tier_price`;
TRUNCATE TABLE `catalog_product_entity_varchar`;
TRUNCATE TABLE `catalog_product_link`;
TRUNCATE TABLE `catalog_product_link_attribute`;
TRUNCATE TABLE `catalog_product_link_attribute_decimal`;
TRUNCATE TABLE `catalog_product_link_attribute_int`;
TRUNCATE TABLE `catalog_product_link_attribute_varchar`;
TRUNCATE TABLE `catalog_product_link_type`;
TRUNCATE TABLE `catalog_product_option`;
TRUNCATE TABLE `catalog_product_option_price`;
TRUNCATE TABLE `catalog_product_option_title`;
TRUNCATE TABLE `catalog_product_option_type_price`;
TRUNCATE TABLE `catalog_product_option_type_title`;
TRUNCATE TABLE `catalog_product_option_type_value`;
TRUNCATE TABLE `catalog_product_super_attribute`;
TRUNCATE TABLE `catalog_product_super_attribute_label`;
TRUNCATE TABLE `catalog_product_super_attribute_pricing`;
TRUNCATE TABLE `catalog_product_super_link`;
TRUNCATE TABLE `catalog_product_enabled_index`;
TRUNCATE TABLE `catalog_product_website`;
TRUNCATE TABLE `catalog_product_entity`;

TRUNCATE TABLE `cataloginventory_stock`;
TRUNCATE TABLE `cataloginventory_stock_item`;
TRUNCATE TABLE `cataloginventory_stock_status`;

insert  into `catalog_product_link_type`(`link_type_id`,`code`) values (1,'relation'),(2,'bundle'),(3,'super'),(4,'up_sell'),(5,'cross_sell');
insert  into `catalog_product_link_attribute`(`product_link_attribute_id`,`link_type_id`,`product_link_attribute_code`,`data_type`) values (1,2,'qty','decimal'),(2,1,'position','int'),(3,4,'position','int'),(4,5,'position','int'),(6,1,'qty','decimal'),(7,3,'position','int'),(8,3,'qty','decimal');
insert  into `cataloginventory_stock`(`stock_id`,`stock_name`) values (1,'Default');
</code></pre>
<div>Delete Categories:</div>
<pre><code class="language">
TRUNCATE TABLE `catalog_category_entity`;
TRUNCATE TABLE `catalog_category_entity_datetime`;
TRUNCATE TABLE `catalog_category_entity_decimal`;
TRUNCATE TABLE `catalog_category_entity_int`;
TRUNCATE TABLE `catalog_category_entity_text`;
TRUNCATE TABLE `catalog_category_entity_varchar`;
TRUNCATE TABLE `catalog_category_product`;
TRUNCATE TABLE `catalog_category_product_index`;

insert  into `catalog_category_entity`(`entity_id`,`entity_type_id`,`attribute_set_id`,`parent_id`,`created_at`,`updated_at`,`path`,`position`,`level`,`children_count`) values (1,3,0,0,'0000-00-00 00:00:00','2009-02-20 00:25:34','1',1,0,1),(2,3,3,0,'2009-02-20 00:25:34','2009-02-20 00:25:34','1/2',1,1,0);
insert  into `catalog_category_entity_int`(`value_id`,`entity_type_id`,`attribute_id`,`store_id`,`entity_id`,`value`) values (1,3,32,0,2,1),(2,3,32,1,2,1);
insert  into `catalog_category_entity_varchar`(`value_id`,`entity_type_id`,`attribute_id`,`store_id`,`entity_id`,`value`) values (1,3,31,0,1,'Root Catalog'),(2,3,33,0,1,'root-catalog'),(3,3,31,0,2,'Default Category'),(4,3,39,0,2,'PRODUCTS'),(5,3,33,0,2,'default-category');
</code></pre>
<div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=181089105257561&amp;xfbml=1" type="text/javascript"></script><fb:like href="http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div><p>Created by <a href="http://www.whitebunnywabbit.com"> Whitebunnywabbit </a></p>]]></content:encoded>
			<wfw:commentRss>http://www.whitebunnywabbit.com/ecommerce/magento/0877/magento-delete-products-categories.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The One Page Checkout.</title>
		<link>http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html</link>
		<comments>http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 12:49:35 +0000</pubDate>
		<dc:creator>calhoun</dc:creator>
				<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[one page checkout]]></category>
		<category><![CDATA[single checkout]]></category>

		<guid isPermaLink="false">http://www.whitebunnywabbit.com/?p=67</guid>
		<description><![CDATA[<p><p><a href="http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html">The One Page Checkout.</a>%%</p><p>Over the last three weeks I have been developing a onepage checkout for Magento for our client. Today I am happy that the biggest problem seems to possibilly be done. I just placed an order with it and got a sucess page. The Requirements: Card Storage Capability Verification of Card CV2 on using stored card [...]</p></p><p>Created by <a href="http://www.whitebunnywabbit.com"> Whitebunnywabbit </a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html">The One Page Checkout.</a>%%</p><p>Over the last three weeks I have been developing a onepage checkout for Magento for our client. Today I am happy that the biggest problem seems to possibilly be done. I just placed an order with it and got a sucess page.</p>
<p>The Requirements:</p>
<ul>
<li>Card Storage Capability</li>
<li>Verification of Card CV2 on using stored card</li>
<li>Add new Card</li>
<li>Integration with SagePay</li>
</ul>
<p>The Problems</p>
<ul>
<li>Shipping Methods are not availible</li>
<li>Format of data for Sage Pay</li>
<li>Built in Card Form not sutible for workign with payment storage</li>
<li>PCI-DSS as we&#8217;ll store the card information.</li>
<li>Magento fighting with us.</li>
</ul>
<p>The strategy taken was to load each block from the standard one page checkout into the new single page one page checkout and display those all at the same time. Then for processing the order just reuse the built in continue button function calls. This of course did have its own unique set of issues.</p>
<p>For example, the saving of the payment sees the card number as being empty when we use a stored one so we need to get around that. Not to forget we can display the full card information either. So have to overwrite the checks on the card form to allow partly submitted form (display CV2 request but not main form).</p>
<p>I think today we will finally be able to call this project complete.</p>
<div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=181089105257561&amp;xfbml=1" type="text/javascript"></script><fb:like href="http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div><p>Created by <a href="http://www.whitebunnywabbit.com"> Whitebunnywabbit </a></p>]]></content:encoded>
			<wfw:commentRss>http://www.whitebunnywabbit.com/ecommerce/067/the-one-page-checkout.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

