<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Virtuemart Free Shipping For Shopper Group</title>
	<atom:link href="http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html</link>
	<description>...And Found Awesomeness</description>
	<lastBuildDate>Thu, 29 Dec 2011 20:57:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: James Loud</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-159</link>
		<dc:creator>James Loud</dc:creator>
		<pubDate>Mon, 20 Jun 2011 17:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-159</guid>
		<description>Hi Again Pzeppy,

Just to let you know I sorted it. Thanks so much again.

Thanks

james</description>
		<content:encoded><![CDATA[<p>Hi Again Pzeppy,</p>
<p>Just to let you know I sorted it. Thanks so much again.</p>
<p>Thanks</p>
<p>james</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pzeppy</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-158</link>
		<dc:creator>pzeppy</dc:creator>
		<pubDate>Mon, 20 Jun 2011 17:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-158</guid>
		<description>What is your line 60?  I can&#039;t see anything wrong with the SQL statement.  I wonder if it got messed up on a copy and paste from the post maybe?

Paul</description>
		<content:encoded><![CDATA[<p>What is your line 60?  I can&#8217;t see anything wrong with the SQL statement.  I wonder if it got messed up on a copy and paste from the post maybe?</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Loud</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-157</link>
		<dc:creator>James Loud</dc:creator>
		<pubDate>Mon, 20 Jun 2011 15:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-157</guid>
		<description>Hi Pzeppy.

Firt off, thank you so much for helping. I really appreciate it.
I&#039;ve tried the code but when I paste it into my editor, it doesn&#039;t seem right (i.e. where you have blue for select statement etc mine just pastes in black (its usually red)).
When I then try to load the page in the site, I get &quot;Parse error: syntax error, unexpected T_STRING in /home/xxxx/xx/xx/classes/ps_checkout.php on line 60&quot;

Thanks again for your help. 

James</description>
		<content:encoded><![CDATA[<p>Hi Pzeppy.</p>
<p>Firt off, thank you so much for helping. I really appreciate it.<br />
I&#8217;ve tried the code but when I paste it into my editor, it doesn&#8217;t seem right (i.e. where you have blue for select statement etc mine just pastes in black (its usually red)).<br />
When I then try to load the page in the site, I get &#8220;Parse error: syntax error, unexpected T_STRING in /home/xxxx/xx/xx/classes/ps_checkout.php on line 60&#8243;</p>
<p>Thanks again for your help. </p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pzeppy</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-155</link>
		<dc:creator>pzeppy</dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-155</guid>
		<description>Please try out the code below and see if it will work out for you.  I strongly recommend you test this before putting it on your production site:

$db = new ps_DB;

$q = &#039;SELECT shopper_group_freeshipping from #__{vm}_shopper_vendor_xref xref 
    inner join #__{vm}_shopper_group shopper on xref.shopper_group_id = shopper.shopper_group_id 
    where xref.user_id = &#039; . $_SESSION[&#039;auth&#039;][&quot;user_id&quot;];  
  
$db-&gt;query($q);  
$db-&gt;next_record();  
$free_shoppergroup_shipping = $db-&gt;f(&#039;shopper_group_freeshipping&#039;) == 1;  

$q = “SELECT country from #__{vm}_user_info WHERE user_info_id = ‘” . $vars[&quot;ship_to_info_id&quot;] . “‘”;
$db-&gt;query($q);

if(($vendor_freeshipping &gt; 0 &amp;&amp; $vars[&#039;order_subtotal_withtax&#039;] &gt;= $vendor_freeshipping &amp;&amp; $db-&gt;f(“country”) == “GBR”) &#124;&#124; $free_shoppergroup_shipping) {
$PSHOP_SHIPPING_MODULES = Array( “free_shipping” );
include_once( CLASSPATH. “shipping/free_shipping.php” );
$this-&gt;_SHIPPING = new free_shipping();
}
elseif( !empty( $_REQUEST[&#039;shipping_rate_id&#039;] )) {</description>
		<content:encoded><![CDATA[<p>Please try out the code below and see if it will work out for you.  I strongly recommend you test this before putting it on your production site:</p>
<p>$db = new ps_DB;</p>
<p>$q = &#8216;SELECT shopper_group_freeshipping from #__{vm}_shopper_vendor_xref xref<br />
    inner join #__{vm}_shopper_group shopper on xref.shopper_group_id = shopper.shopper_group_id<br />
    where xref.user_id = &#8216; . $_SESSION['auth']["user_id"];  </p>
<p>$db->query($q);<br />
$db->next_record();<br />
$free_shoppergroup_shipping = $db->f(&#8216;shopper_group_freeshipping&#8217;) == 1;  </p>
<p>$q = “SELECT country from #__{vm}_user_info WHERE user_info_id = ‘” . $vars["ship_to_info_id"] . “‘”;<br />
$db->query($q);</p>
<p>if(($vendor_freeshipping > 0 &#038;&#038; $vars['order_subtotal_withtax'] >= $vendor_freeshipping &#038;&#038; $db->f(“country”) == “GBR”) || $free_shoppergroup_shipping) {<br />
$PSHOP_SHIPPING_MODULES = Array( “free_shipping” );<br />
include_once( CLASSPATH. “shipping/free_shipping.php” );<br />
$this->_SHIPPING = new free_shipping();<br />
}<br />
elseif( !empty( $_REQUEST['shipping_rate_id'] )) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Loud</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-154</link>
		<dc:creator>James Loud</dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-154</guid>
		<description>Hi. This seems perfect for what I want to do but I&#039;m having trouble as I&#039;m not really a PHP developer and I&#039;ve already made one mod to this function (to allow only free shipping in one country) so I can&#039;t just overwrite my existing code. How would I combine the two the requirements of shopper group AND country?

Many thanks for any help you can give.

James

My existing code:
$db = new ps_DB;
    $q = &quot;SELECT country from #__{vm}_user_info WHERE user_info_id = &#039;&quot; . $vars[&quot;ship_to_info_id&quot;] . &quot;&#039;&quot;;
	  $db-&gt;query($q);
			
      if( $vendor_freeshipping &gt; 0 &amp;&amp; $vars[&#039;order_subtotal_withtax&#039;] &gt;= $vendor_freeshipping &amp;&amp; $db-&gt;f(&quot;country&quot;) == &quot;GBR&quot;) {
			$PSHOP_SHIPPING_MODULES = Array( &quot;free_shipping&quot; );
			include_once( CLASSPATH. &quot;shipping/free_shipping.php&quot; );
			$this-&gt;_SHIPPING = new free_shipping();
		}
		elseif( !empty( $_REQUEST[&#039;shipping_rate_id&#039;] )) {</description>
		<content:encoded><![CDATA[<p>Hi. This seems perfect for what I want to do but I&#8217;m having trouble as I&#8217;m not really a PHP developer and I&#8217;ve already made one mod to this function (to allow only free shipping in one country) so I can&#8217;t just overwrite my existing code. How would I combine the two the requirements of shopper group AND country?</p>
<p>Many thanks for any help you can give.</p>
<p>James</p>
<p>My existing code:<br />
$db = new ps_DB;<br />
    $q = &#8220;SELECT country from #__{vm}_user_info WHERE user_info_id = &#8216;&#8221; . $vars["ship_to_info_id"] . &#8220;&#8216;&#8221;;<br />
	  $db-&gt;query($q);</p>
<p>      if( $vendor_freeshipping &gt; 0 &amp;&amp; $vars['order_subtotal_withtax'] &gt;= $vendor_freeshipping &amp;&amp; $db-&gt;f(&#8220;country&#8221;) == &#8220;GBR&#8221;) {<br />
			$PSHOP_SHIPPING_MODULES = Array( &#8220;free_shipping&#8221; );<br />
			include_once( CLASSPATH. &#8220;shipping/free_shipping.php&#8221; );<br />
			$this-&gt;_SHIPPING = new free_shipping();<br />
		}<br />
		elseif( !empty( $_REQUEST['shipping_rate_id'] )) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pzeppy</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-147</link>
		<dc:creator>pzeppy</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-147</guid>
		<description>@John thanks for posting the fix.

@calin I have not done anything to add the checkbox.  We have just been modifying the table as needed.

Thanks for the feedback guys!</description>
		<content:encoded><![CDATA[<p>@John thanks for posting the fix.</p>
<p>@calin I have not done anything to add the checkbox.  We have just been modifying the table as needed.</p>
<p>Thanks for the feedback guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-146</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-146</guid>
		<description>I believe I&#039;ve got it:

in this line of the hack, I changed this:
//original line at 63
 if(($vendor_freeshipping &gt; 0 &amp;&amp; $vars[&#039;order_subtotal_withtax&#039;] &gt;= $vendor_freeshipping) &#124;&#124; $free_shoppergroup_shipping) {

to this:
//original line at 63
		if(($vendor_freeshipping &gt; 0 &amp;&amp; $vars[&#039;order_subtotal_withtax&#039;] &gt;= $vendor_freeshipping) &amp;&amp; $db-&gt;f(&#039;shopper_group_freeshipping&#039;) == &quot;1&quot;) {

Seems to be working well for me :)</description>
		<content:encoded><![CDATA[<p>I believe I&#8217;ve got it:</p>
<p>in this line of the hack, I changed this:<br />
//original line at 63<br />
 if(($vendor_freeshipping &gt; 0 &amp;&amp; $vars['order_subtotal_withtax'] &gt;= $vendor_freeshipping) || $free_shoppergroup_shipping) {</p>
<p>to this:<br />
//original line at 63<br />
		if(($vendor_freeshipping &gt; 0 &amp;&amp; $vars['order_subtotal_withtax'] &gt;= $vendor_freeshipping) &amp;&amp; $db-&gt;f(&#8216;shopper_group_freeshipping&#8217;) == &#8220;1&#8243;) {</p>
<p>Seems to be working well for me <img src='http://www.todayisearched.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-145</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 02 Aug 2010 20:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-145</guid>
		<description>First thing, this hack works great! Thanks!!!

I do have a question. It doesn&#039;t seem to work if you have a value set in the &quot;edit store&quot; section of the backend. I have free shipping available for orders over $50. 

I would still like to offer that but not to distributors. Is there a way to tweak your code above to allow for that?

Currently, if you have a value set for&quot;minimum amount for free shipping&quot; it overrides the shopper_group_freeshipping setting in the DB and still allows for Free Shipping on orders over $50.

Thanks!!</description>
		<content:encoded><![CDATA[<p>First thing, this hack works great! Thanks!!!</p>
<p>I do have a question. It doesn&#8217;t seem to work if you have a value set in the &#8220;edit store&#8221; section of the backend. I have free shipping available for orders over $50. </p>
<p>I would still like to offer that but not to distributors. Is there a way to tweak your code above to allow for that?</p>
<p>Currently, if you have a value set for&#8221;minimum amount for free shipping&#8221; it overrides the shopper_group_freeshipping setting in the DB and still allows for Free Shipping on orders over $50.</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calin</title>
		<link>http://www.todayisearched.com/2010/02/virtuemart-free-shipping-for-shopper-group.html/comment-page-1#comment-144</link>
		<dc:creator>calin</dc:creator>
		<pubDate>Fri, 09 Jul 2010 20:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.todayisearched.com/?p=90#comment-144</guid>
		<description>Did you put the checkbox for free shipping?
thanks</description>
		<content:encoded><![CDATA[<p>Did you put the checkbox for free shipping?<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.todayisearched.com @ 2012-02-05 14:39:02 -->
