<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>RedLobsterDesign</title>
	<atom:link href="http://redlobsterdesign.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://redlobsterdesign.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 16:40:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='redlobsterdesign.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a6fae7011c55880794194e472983f7d0?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>RedLobsterDesign</title>
		<link>http://redlobsterdesign.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://redlobsterdesign.wordpress.com/osd.xml" title="RedLobsterDesign" />
	<atom:link rel='hub' href='http://redlobsterdesign.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Joomla / Virtuemart 1.1.7 / 1.1.x Show Shopper Group Discount</title>
		<link>http://redlobsterdesign.wordpress.com/2012/01/11/joomla-virtuemart-1-1-7-1-1-x-show-shopper-group-discount/</link>
		<comments>http://redlobsterdesign.wordpress.com/2012/01/11/joomla-virtuemart-1-1-7-1-1-x-show-shopper-group-discount/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:37:56 +0000</pubDate>
		<dc:creator>redlobsterdesign</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Virtuemart]]></category>

		<guid isPermaLink="false">http://redlobsterdesign.wordpress.com/?p=270</guid>
		<description><![CDATA[I encountered an issue with vm 1.1.7 and I tried forums, installing third party modules/extensions related to showing shopper group, tried some recommended php code edits, but all failed to implement a solution. In the end I consulting the VirtueMart 1.1 Developer Manual and chapter 2.3.3: Other important Environment variables (*link at bottom) Here it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redlobsterdesign.wordpress.com&amp;blog=8202642&amp;post=270&amp;subd=redlobsterdesign&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I encountered an issue with vm 1.1.7 and I tried forums, installing third party modules/extensions related to showing shopper group, tried some recommended php code edits, but all failed to implement a solution.</p>
<p>In the end I consulting the VirtueMart 1.1 Developer Manual and chapter 2.3.3: Other important Environment variables (<span class="bbc_color" style="color:green;">*link at bottom</span>)</p>
<p>Here it defines: Array $auth All the user information in one Array, always available in the global $_SESSION array.<br />and in particular:  $auth["shopper_group_discount"]</p>
<p>From this we can construct the php code:</p>
<p>      <span class="bbc_color" style="color:red;">&lt;?php </span><span class="bbc_color" style="color:blue;">echo </span>($auth["shopper_group_discount"]); <span class="bbc_color" style="color:red;">?&gt;</span></p>
<p>and use it in one or some of the virtuemart php files, also we could use php to perform operations using  <em>($auth["shopper_group_discount"])</em> :</p>
<p>       <span class="bbc_color" style="color:red;">&lt;?php</span> <br />         if (($auth["shopper_group_discount"]) == &#8217;00.00&#8242;) { <br />            <span class="bbc_color" style="color:red;">?&gt;</span> <em>&lt;p&gt;You do not recieve discount&lt;/p&gt;</em> <span class="bbc_color" style="color:red;">&lt;?php</span> }</p>
<p>         else { <br />            <span class="bbc_color" style="color:red;">?&gt;</span> <em>&lt;p&gt;You recieve</em> <span class="bbc_color" style="color:red;">&lt;?php</span> echo ($auth["shopper_group_discount"]); <span class="bbc_color" style="color:red;">?&gt;</span> <em>% discount&lt;/p&gt;</em> <span class="bbc_color" style="color:red;">&lt;?php</span> } <span class="bbc_color" style="color:red;">?&gt;</span></p>
<p>Using this code (in \modules\mod_virtuemart\mod_virtuemart.php) around &#8220;// Show the Account Maintenance Link&#8221;<br />as we only wanted to show discount to logged in shoppers.</p>
<p>Hope it helps fellow coders out there.</p>
<p><span class="bbc_color" style="color:green;">*current link</span> to the VirtueMart 1.1 Developer Manual: <a target="_blank" class="bbc_link" href="http://downloads.joomlacode.org/docmanfileversion/2/6/6/26645/VirtueMart_1.1_Developer_Manual.pdf">http://downloads.joomlacode.org/docmanfileversion/2/6/6/26645/VirtueMart_1.1_Developer_Manual.pdf</a><br />
</p>
<p>Similar/more info on it posted in Forum:<br />
<a href="http://forum.virtuemart.net/index.php?topic=94797" title="http://forum.virtuemart.net/index.php?topic=94797" target="_blank">http://forum.virtuemart.net/index.php?topic=94797</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redlobsterdesign.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redlobsterdesign.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redlobsterdesign.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redlobsterdesign.wordpress.com&amp;blog=8202642&amp;post=270&amp;subd=redlobsterdesign&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redlobsterdesign.wordpress.com/2012/01/11/joomla-virtuemart-1-1-7-1-1-x-show-shopper-group-discount/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">redlobsterdesign</media:title>
		</media:content>
	</item>
	</channel>
</rss>
