<?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>Screaming Code Monkey &#187; wp-e-commerce</title>
	<atom:link href="http://screamingcodemonkey.com/tag/wp-e-commerce/feed/" rel="self" type="application/rss+xml" />
	<link>http://screamingcodemonkey.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 21 May 2012 09:16:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>3.8 Developers Beta Release</title>
		<link>http://screamingcodemonkey.com/3-8-developers-beta-release/</link>
		<comments>http://screamingcodemonkey.com/3-8-developers-beta-release/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 03:41:00 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[3.8]]></category>
		<category><![CDATA[releases]]></category>
		<category><![CDATA[wpec]]></category>

		<guid isPermaLink="false">http://screamingcodemonkey.com/?p=391</guid>
		<description><![CDATA[Today I had the priviledge of announcing a 3.8 Developers Beta to the mailing list. What's the hype? Well 3.8 has been 11 months in the making, and has had some great minds slaving away at it....]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been months since I&#8217;ve had time to blog, or work on my wee WP e-Commerce projects as I have been working hard at the WP e-Commerce 3.8 Release. Today I had the priviledge of announcing a 3.8 Developers Beta to the mailing list. What&#8217;s the hype? Well 3.8 has been 11 months in the making, and has had some great WordPress minds slaving away at it.</p>
<h3>Overview</h3>
<ul>
<li>Replaces 18 WP e-Commerce tables with Standard WordPress tables!</li>
<li>Has a more flexible tax system which will be more flexible when the stable 3.8 comes out!
</li>
<li>If your starting from scratch it has the most sexy default WP e-Commerce Theme ever!
</li>
<li>Custom Post Types for Products, Variations, Product Files
</li>
<li>WordPress Media Manager for Product images
</li>
</ul>
<p>I have to say, Im pretty excited! (hence the exclamation marks) So how did we test 3.8 before releasing it to the developers? Well we tested fresh installs over and over and over again, then we upgraded a few sites. Including screamingcodemonkey.com! Yes thats right, screamingcodemonkey.com is running on 3.8 Dev Beta! It&#8217;s a simple site so it was a very easy upgrade, I&#8217;ve also started upgrading vorns site to 3.8 but I won&#8217;t be releasing that until I get the go ahead from him personally.</p>
<p>It&#8217;s been a long time coming so I look forward to seeing 3.8 stable and released soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/3-8-developers-beta-release/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Hide the customer&#8217;s purchase number upon checkout</title>
		<link>http://screamingcodemonkey.com/hide-the-customers-purchase-number-upon-checkout/</link>
		<comments>http://screamingcodemonkey.com/hide-the-customers-purchase-number-upon-checkout/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 20:12:44 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[wpec]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=287</guid>
		<description><![CDATA[I'd like to hide the customer's purchase number upon checkout from the ecommerce plugin for wordpress.]]></description>
			<content:encoded><![CDATA[<p>In wp-e-commerce/transaction_results_functions.php comment these lines out (add // to the front of the lines)<br />
line 205:<br />
<code><br />
$product_list.= "Your Purchase No.: ".$purchase_log['id']."nr";<br />
</code><br />
and line 212:<br />
<code><br />
$product_list_html.= "Your Purchase No.: ".$purchase_log['id']."nnr";<br />
</code><br />
that will remove the purchase log id. Although I don&#8217;t recommend this as the purchase log id does serve as a unique transaction number.. a better solution would be to login to phpMyAdmin<br />
1. Open up the purchase log table (by default called wp_wpsc_purchase_logs)<br />
2. Click on the Operations tab<br />
3. On the left hand side you will see the auto_increment number (the current purchase log number) change this to a &#8216;higher&#8217; number i.e 1000<br />
4. click &#8216;go&#8217; </p>
<p>that should make the next transaction purchase log id equal to 1000</p>
<p>best<br />
jeff</p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/hide-the-customers-purchase-number-upon-checkout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Tax use discounted price</title>
		<link>http://screamingcodemonkey.com/making-tax-use-total-price-tax/</link>
		<comments>http://screamingcodemonkey.com/making-tax-use-total-price-tax/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:52:02 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[calculations]]></category>
		<category><![CDATA[discount]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[tax]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=233</guid>
		<description><![CDATA[<p>Needed to put this somewhere just incase we decide to add it into core.</p>
<p>
function calculate_total_tax() {
    global $wpdb;
    $total = 0;
    if($this->total_tax == null &#038;&#038; $this->coupons_amount == 0) {
			foreach($this->cart_items as $key => $cart_item) {
				$total += $cart_item->tax;
			}</p>
<p>	} elseif($this->coupons_amount == 0) {
		 $total = $this->subtotal-$this->coupons_amount;
		 $total = $total /(100) *$wpsc_cart->tax_percentage;
	}else{
		 $total = $this->total_tax;
	}</p>
<p>	return $total;
  }
    </p>
<p>or if 3.7.6

function calculate_total_tax() {
    global $wpdb, $wpsc_cart;
    $total = 0;
 if(wpsc_tax_isincluded() == false){
     if($this->total_tax == null &#038;&#038; $this->coupons_amount == null) {
 foreach($this->cart_items as $key => $cart_item) {
 $total += $cart_item->tax;
 }
 $this->total_tax = $total;
 } elseif($this->coupons_amount == null) {
  $total = $this->total_tax;
 }else{
 //exit('
'.print_r($this,true).'
<p>');
 $total = $this->subtotal-$this->coupons_amount;
 $total = $total /(100) *$wpsc_cart->tax_percentage;
 }
 }else{
 if($this->total_tax == null) {
 foreach($this->cart_items as $key => ... <a href="http://screamingcodemonkey.com/making-tax-use-total-price-tax/">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Needed to put this somewhere just incase we decide to add it into core.</p>
<p><code><br />
function calculate_total_tax() {<br />
    global $wpdb;<br />
    $total = 0;<br />
    if($this->total_tax == null &#038;&#038; $this->coupons_amount == 0) {<br />
			foreach($this->cart_items as $key => $cart_item) {<br />
				$total += $cart_item->tax;<br />
			}</p>
<p>	} elseif($this->coupons_amount == 0) {<br />
		 $total = $this->subtotal-$this->coupons_amount;<br />
		 $total = $total /(100) *$wpsc_cart->tax_percentage;<br />
	}else{<br />
		 $total = $this->total_tax;<br />
	}</p>
<p>	return $total;<br />
  }<br />
    </code></p>
<p>or if 3.7.6<br />
<code><br />
function calculate_total_tax() {<br />
    global $wpdb, $wpsc_cart;<br />
    $total = 0;<br />
 if(wpsc_tax_isincluded() == false){<br />
     if($this->total_tax == null &#038;&#038; $this->coupons_amount == null) {<br />
 foreach($this->cart_items as $key => $cart_item) {<br />
 $total += $cart_item->tax;<br />
 }<br />
 $this->total_tax = $total;<br />
 } elseif($this->coupons_amount == null) {<br />
  $total = $this->total_tax;<br />
 }else{<br />
 //exit('
<pre>'.print_r($this,true).'</pre>
<p>');<br />
 $total = $this->subtotal-$this->coupons_amount;<br />
 $total = $total /(100) *$wpsc_cart->tax_percentage;<br />
 }<br />
 }else{<br />
 if($this->total_tax == null) {<br />
 foreach($this->cart_items as $key => $cart_item) {<br />
 $total += $cart_item->taxable_price/(100+$wpsc_cart->tax_percentage)*$wpsc_cart->tax_percentage;<br />
 }<br />
 $this->total_tax = $total;<br />
 } else {<br />
  $total = $this->total_tax;<br />
 }<br />
 }<br />
 return $total;<br />
 }<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/making-tax-use-total-price-tax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sales Price doesn&#8217;t show in Grid View</title>
		<link>http://screamingcodemonkey.com/sales-price-doesnt-show-in-grid-view/</link>
		<comments>http://screamingcodemonkey.com/sales-price-doesnt-show-in-grid-view/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 00:33:45 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[Grid View]]></category>
		<category><![CDATA[Price]]></category>
		<category><![CDATA[Sales Price]]></category>
		<category><![CDATA[wpecommerce]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=223</guid>
		<description><![CDATA[<p>Hi, I had a couple of people that we&#8217;re getting frustrated that grid_view was not displaying the sales price,, instead it was just showing the normal price without the discount,,,
The problem lies in the theme file grid_view.php
Check your HTMl that displays the price it should look like this:

&#60;span class="pricedisplay">&#60;?php echo wpsc_product_normal_price(); ?>&#60;/span>Price:

But REALLY it should look like this:

&#60;span class="pricedisplay">&#60;?php echo wpsc_the_product_price(); ?>&#60;/span>Price:
</p>
<p>Hope this helps. Ill make sure it gets fixed in the next release.</p>
<p>best
Jeff</p>
]]></description>
			<content:encoded><![CDATA[<p>Hi, I had a couple of people that we&#8217;re getting frustrated that grid_view was not displaying the sales price,, instead it was just showing the normal price without the discount,,,<br />
The problem lies in the theme file grid_view.php<br />
Check your HTMl that displays the price it should look like this:<br />
<code><br />
&lt;span class="pricedisplay">&lt;?php echo wpsc_product_normal_price(); ?>&lt;/span>Price:<br />
</code><br />
But REALLY it should look like this:<br />
<code><br />
&lt;span class="pricedisplay">&lt;?php echo wpsc_the_product_price(); ?>&lt;/span>Price:<br />
</code></p>
<p>Hope this helps. Ill make sure it gets fixed in the next release.</p>
<p>best<br />
Jeff</p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/sales-price-doesnt-show-in-grid-view/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to add quantities into your Purchase Report</title>
		<link>http://screamingcodemonkey.com/adding-quantity-for-purchase-logs/</link>
		<comments>http://screamingcodemonkey.com/adding-quantity-for-purchase-logs/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:33:46 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[emails]]></category>
		<category><![CDATA[purchase report]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[wpec]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=218</guid>
		<description><![CDATA[<p>Hi, heres a question I was asked today, seems like everyones been having trouble getting quantities into the admin purchase report. I TOTALLY understand, the function is big and bloated, it&#8217;s part of the old system which we are trying our best to overhaul when time allows.</p>
<p>Anyway to the task at hand.</p>
<p>Wp-e-commerce version: I don&#8217;t think the version matters so much since this is part of the old code.</p>
<p>File: transaction_result_functions.php</p>
<p>Around line 180 you should see something like this:

$report_product_list.= " - ". $product_data['name'] .stripslashes($variation_list)."  ".$message_price ."nr";

change it to this:

$report_product_list.= $row['quantity']." - ". $product_data['name'] .stripslashes($variation_list)."  ".$message_price ."nr";

That should do it 
have a good week!</p>
<p>SCM</p>
]]></description>
			<content:encoded><![CDATA[<p>Hi, heres a question I was asked today, seems like everyones been having trouble getting quantities into the admin purchase report. I TOTALLY understand, the function is big and bloated, it&#8217;s part of the old system which we are trying our best to overhaul when time allows.</p>
<p>Anyway to the task at hand.</p>
<p>Wp-e-commerce version: I don&#8217;t think the version matters so much since this is part of the old code.</p>
<p>File: transaction_result_functions.php</p>
<p>Around line 180 you should see something like this:<br />
<code><br />
$report_product_list.= " - ". $product_data['name'] .stripslashes($variation_list)."  ".$message_price ."nr";<br />
</code><br />
change it to this:<br />
<code><br />
$report_product_list.= $row['quantity']." - ". $product_data['name'] .stripslashes($variation_list)."  ".$message_price ."nr";<br />
</code><br />
That should do it <img src='http://screamingcodemonkey.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
have a good week!</p>
<p>SCM</p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/adding-quantity-for-purchase-logs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Wp-e-Commerce Module Framework</title>
		<link>http://screamingcodemonkey.com/wpsc-module-skeleton/</link>
		<comments>http://screamingcodemonkey.com/wpsc-module-skeleton/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 08:52:09 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=174</guid>
		<description><![CDATA[<p>So I&#8217;ve made a couple of modules (Upgrades) for wp-e-commerce now, and I&#8217;m starting to get the hang of things. Theres a few key things to make a module actually tick with wp-e-commerce but don&#8217;t worry it takes it&#8217;s inspiration from WordPress so if your familiar at all with developing in WordPress then you should pick it up quick and easy.</p>
<p>I&#8217;ve made a basic frame for building my wp-e-commerce modules quick and effortless. It&#8217;s really simple, it does the first two things every module needs&#8230; well sort of apart from actually DOING anything.</p>

Has an Upgrades File Header
Adds a new page to the Products sidebar in wp-admin

<p>Step 1 : Location and File Structure</p>
<p>All upgrades either live in this folder or in a folder in this folder
wp-content/uploads/wpsc/upgrades</p>
<p>All upgrades have a main file with its comment header (just like themes and plugins with ... <a href="http://screamingcodemonkey.com/wpsc-module-skeleton/">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve made a couple of modules (Upgrades) for wp-e-commerce now, and I&#8217;m starting to get the hang of things. Theres a few key things to make a module actually tick with wp-e-commerce but don&#8217;t worry it takes it&#8217;s inspiration from WordPress so if your familiar at all with developing in WordPress then you should pick it up quick and easy.</p>
<p>I&#8217;ve made a basic frame for building my wp-e-commerce modules quick and effortless. It&#8217;s really simple, it does the first two things every module needs&#8230; well sort of apart from actually DOING anything.</p>
<ol>
<li>Has an Upgrades File Header</li>
<li>Adds a new page to the Products sidebar in wp-admin</li>
</ol>
<p>Step 1 : Location and File Structure</p>
<p>All upgrades either live in this folder or in a folder in this folder<br />
<code>wp-content/uploads/wpsc/upgrades</code></p>
<p>All upgrades have a main file with its comment header (just like themes and plugins with WordPress)</p>
<p><code><br />
/*<br />
Upgrade Name:WPSC Skeleton Module<br />
Upgrade URI: http://www.screamingcodemonkey.com<br />
Description: A skeleton module for wpec<br />
Version: 0.0<br />
Author: ScreamingCodeMonkey<br />
Author URI: http://www.screamingcodemonkey.com</code> */</p>
<p>Then Some but not all modules/upgrades require a new page in the &#8216;Products&#8217; wp-admin Sidebar Widget:</p>
<p><code><br />
if (is_admin()) {<br />
function wpsc_add_modules_admin_pages($page_hooks, $base_page) {<br />
$page_hooks[] =  add_submenu_page($base_page, __('-New Page','wpsc'),  __('-New Page','wpsc'), 7, 'wpsc-module-admin', 'wpsc_display_admin_pages');<br />
return $page_hooks;<br />
}<br />
add_filter('wpsc_additional_pages', 'wpsc_add_modules_admin_pages',10, 2);<br />
}<br />
*/<br />
</code><br />
It&#8217;s pretty basic, hope you find this useful. If you have any suggestions I&#8217;d like to hear from you. You can download a .zip of the moduleSkeleton bellow.<br />
[dm]1[/dm] </p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/wpsc-module-skeleton/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

