<?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>Coyne Technology Systems &#187; Zen-Cart</title>
	<atom:link href="http://www.coynetechsystems.com/blog/topics/zen-cart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coynetechsystems.com/blog</link>
	<description>The Technology Station</description>
	<lastBuildDate>Mon, 28 Jun 2010 15:36:52 +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>Changing the Default Product Type in Zen Cart</title>
		<link>http://www.coynetechsystems.com/blog/zen-cart/changing-the-default-product-type-in-zen-cart-110/</link>
		<comments>http://www.coynetechsystems.com/blog/zen-cart/changing-the-default-product-type-in-zen-cart-110/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 16:32:28 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[product type]]></category>

		<guid isPermaLink="false">http://www.coynetechsystems.com/blog/?p=110</guid>
		<description><![CDATA[Many times when developing websites we use Zen Cart eCommerce system with either a custom product type or one of the pre-defined product types in the generic installation (Music, Document, Free Shipping, etc) and the site is built entirely around that particular product type (i.e. we only sell music types on the music site, with [...]]]></description>
			<content:encoded><![CDATA[<p>Many times when developing websites we use Zen Cart eCommerce system with either a custom product type or one of the pre-defined product types in the generic installation (Music, Document, Free Shipping, etc) and the site is built entirely around that particular product type (i.e. we only sell music types on the music site, with no or very little document types). Having a way to change which type is selected by default in the admin area of Zen Cart when entering a new product would be handy since it is easy to overlook the dropdown and use the default &#8216;Product &#8211; General&#8217; type.<span id="more-110"></span></p>
<p>The changes to the files are for Zen Cart version 1.3.8a and may be different for your system depending on what version you are running.</p>
<p>For this change we will be editing the core Zen Cart files and since there are no overrides for the admin area as discussed in <a href="http://tutorials.zen-cart.com/index.php?article=159">this article</a>, be sure to <strong>make backups and to remake the changes if you upgrade or overwrite the core files for whatever reason.</strong></p>
<p>In the the file:<br />
[admin]/includes/modules/category_product_listing.php<br />
using the name you used for your Zen Cart admin directory in place of [admin] <a href="http://tutorials.zen-cart.com/index.php?article=33">(you DID rename your Zen Cart admin directory, right!?)</a>.</p>
<p>At around line 843, the function zen_draw_pull_down_menu is called with two parameters:</p>
<p><code>zen_draw_pull_down_menu('product_type', $product_restrict_types_array);</code></p>
<p>Using phpMyAdmin or some other way of accessing the zen database, browse the [zen_prefix]product_types and get the value for the type_id of the product type that you want to set as the default.  For this example, we want the &#8216;Product &#8211; Music&#8217; to be default which has the type_id=2.  Now in the category_products_listing.php file, add a comma and the type_id value like so:</p>
<p><code> zen_draw_pull_down_menu('product_type', $product_restrict_types_array,2);</code></p>
<p>And your done!  Now you can add &#8216;Product &#8211; Music&#8217; types without the step of selecting the type.  Also, if you wanted to add products of other types as well, just change the selection in the drop down.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coynetechsystems.com/blog/zen-cart/changing-the-default-product-type-in-zen-cart-110/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
