<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: How to use Magento&#8217;s session within WordPress	</title>
	<atom:link href="https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/</link>
	<description>it&#039;s my blog anyway</description>
	<lastBuildDate>Sun, 26 Feb 2017 11:07:26 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>
	<item>
		<title>
		By: Mohamed GHARBI		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-329140</link>

		<dc:creator><![CDATA[Mohamed GHARBI]]></dc:creator>
		<pubDate>Sun, 26 Feb 2017 11:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-329140</guid>

					<description><![CDATA[Very useful, thank you.]]></description>
			<content:encoded><![CDATA[<p>Very useful, thank you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Todea George		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-110684</link>

		<dc:creator><![CDATA[Todea George]]></dc:creator>
		<pubDate>Fri, 11 Oct 2013 13:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-110684</guid>

					<description><![CDATA[Hello, i am trying to include Mage into a php file. Checking your example, i&#039;ve included in the php file:

require_once(&#039;app/Mage.php&#039;);
Mage::app();

                   $session = Mage::getSingleton(&quot;customer/session&quot;);
    $magento_message = &quot;Welcome &quot;;
    // Generate a personalize greeting
    if($session-&#062;isLoggedIn()){
        $magento_message .= $session-&#062;getCustomer()-&#062;getId();
    }else{
        $magento_message .= &quot;Guest!&quot;;
    } 
    echo $magento_message;


But it does not work, it says Welcome Guest!, insted of Welcome 5 (5 is the customer id i have now, as i am logged in).

If i paste the previous code on the html file, it works perfectly. How can i integrate Mage correctly in php? Thank you.]]></description>
			<content:encoded><![CDATA[<p>Hello, i am trying to include Mage into a php file. Checking your example, i&#8217;ve included in the php file:</p>
<p>require_once(&#8216;app/Mage.php&#8217;);<br />
Mage::app();</p>
<p>                   $session = Mage::getSingleton(&#8220;customer/session&#8221;);<br />
    $magento_message = &#8220;Welcome &#8220;;<br />
    // Generate a personalize greeting<br />
    if($session-&gt;isLoggedIn()){<br />
        $magento_message .= $session-&gt;getCustomer()-&gt;getId();<br />
    }else{<br />
        $magento_message .= &#8220;Guest!&#8221;;<br />
    }<br />
    echo $magento_message;</p>
<p>But it does not work, it says Welcome Guest!, insted of Welcome 5 (5 is the customer id i have now, as i am logged in).</p>
<p>If i paste the previous code on the html file, it works perfectly. How can i integrate Mage correctly in php? Thank you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: gary		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107546</link>

		<dc:creator><![CDATA[gary]]></dc:creator>
		<pubDate>Mon, 22 Jul 2013 16:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-107546</guid>

					<description><![CDATA[hi richard,

How about creating a instructional here of wordpress and magento]]></description>
			<content:encoded><![CDATA[<p>hi richard,</p>
<p>How about creating a instructional here of wordpress and magento</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richard Feraro		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107539</link>

		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Mon, 22 Jul 2013 02:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-107539</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107522&quot;&gt;Jigesh&lt;/a&gt;.

May I know what are the URLs of your WordPress and Magento instance? They should be in the same domain and should share the same cookie domain as well.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107522">Jigesh</a>.</p>
<p>May I know what are the URLs of your WordPress and Magento instance? They should be in the same domain and should share the same cookie domain as well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richard Feraro		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107538</link>

		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Mon, 22 Jul 2013 02:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-107538</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107523&quot;&gt;Jigesh&lt;/a&gt;.

What have you done so far?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107523">Jigesh</a>.</p>
<p>What have you done so far?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jigesh		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107523</link>

		<dc:creator><![CDATA[Jigesh]]></dc:creator>
		<pubDate>Sat, 20 Jul 2013 13:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-107523</guid>

					<description><![CDATA[also with this url http://mysite.com/wp-login.php?action=logout&#038;_wpnonce=ec9782edce Fatal error: Class &#039;Mage&#039; not found in /home/username/public_html/mysite.com/wp-login.php on line 406

any help ?]]></description>
			<content:encoded><![CDATA[<p>also with this url <a href="http://mysite.com/wp-login.php?action=logout&#038;_wpnonce=ec9782edce" rel="nofollow ugc">http://mysite.com/wp-login.php?action=logout&#038;_wpnonce=ec9782edce</a> Fatal error: Class &#8216;Mage&#8217; not found in /home/username/public_html/mysite.com/wp-login.php on line 406</p>
<p>any help ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jigesh		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-107522</link>

		<dc:creator><![CDATA[Jigesh]]></dc:creator>
		<pubDate>Sat, 20 Jul 2013 13:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-107522</guid>

					<description><![CDATA[Hello, i tried your suggestions here on http://mysillypointofview.richardferaro.com/2010/04/08/how-to-use-magentos-session-within-wordpress/ and also i tried it with mage enabler plugin , but my site doesn&#039;t fetch the user credentials from magento site, although its running session nicely, but it only show welcome guest , i think i am not getting this line We assumed here that both Magento and WordPress has the same list of user credentials. Your setup maybe different as to which user’s database to use so it’s up to you how to implement it. 

So what i am asking you to please guide me about that? wordpress access with username and password where as magento frontend customers are sharing by mail &#038; password, i won&#039;t to give single login for them.

thanks.]]></description>
			<content:encoded><![CDATA[<p>Hello, i tried your suggestions here on <a href="http://mysillypointofview.richardferaro.com/2010/04/08/how-to-use-magentos-session-within-wordpress/" rel="nofollow ugc">http://mysillypointofview.richardferaro.com/2010/04/08/how-to-use-magentos-session-within-wordpress/</a> and also i tried it with mage enabler plugin , but my site doesn&#8217;t fetch the user credentials from magento site, although its running session nicely, but it only show welcome guest , i think i am not getting this line We assumed here that both Magento and WordPress has the same list of user credentials. Your setup maybe different as to which user’s database to use so it’s up to you how to implement it. </p>
<p>So what i am asking you to please guide me about that? wordpress access with username and password where as magento frontend customers are sharing by mail &amp; password, i won&#8217;t to give single login for them.</p>
<p>thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mage Enabler &#124; Best Plugins - wordpress &#8211; widgets &#8211; plugin 2012		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-77043</link>

		<dc:creator><![CDATA[Mage Enabler &#124; Best Plugins - wordpress &#8211; widgets &#8211; plugin 2012]]></dc:creator>
		<pubDate>Tue, 13 Nov 2012 14:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-77043</guid>

					<description><![CDATA[[...] to the Mage object which you can use to access Magento methods within WordPress and do stuff like single login, pull templates from Magento, display categories, products and checkout from your blog and many [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] to the Mage object which you can use to access Magento methods within WordPress and do stuff like single login, pull templates from Magento, display categories, products and checkout from your blog and many [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joe		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-24990</link>

		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Fri, 06 Apr 2012 13:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-24990</guid>

					<description><![CDATA[I should amend that last comment. I ended up still having issues, so instead I used the same method of wrapping the function, except this time in the Vanilla Forums version of the &quot;now()&quot; function, instead of in the magento version as I mentioned in my last comment. This function is located in library-&#062;core-&#062;functions.general.php in the vanilla library

So far so good, it does not seem to have disabled vanilla forums or messed up the tracking of time in any way. 

I know that is not what this blog post is about, but I figured if anyone finds their way here through google because I mentioned &#039;vanilla forum&#039; and installing magento themes in it, they would appreciate the help ;-) The same principles apply to both.]]></description>
			<content:encoded><![CDATA[<p>I should amend that last comment. I ended up still having issues, so instead I used the same method of wrapping the function, except this time in the Vanilla Forums version of the &#8220;now()&#8221; function, instead of in the magento version as I mentioned in my last comment. This function is located in library-&gt;core-&gt;functions.general.php in the vanilla library</p>
<p>So far so good, it does not seem to have disabled vanilla forums or messed up the tracking of time in any way. </p>
<p>I know that is not what this blog post is about, but I figured if anyone finds their way here through google because I mentioned &#8216;vanilla forum&#8217; and installing magento themes in it, they would appreciate the help 😉 The same principles apply to both.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richard Feraro		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-24899</link>

		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Thu, 05 Apr 2012 11:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-24899</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-24895&quot;&gt;joe&lt;/a&gt;.

Great! Thanks for the feedback :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-24895">joe</a>.</p>
<p>Great! Thanks for the feedback 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: joe		</title>
		<link>https://mysillypointofview.com/2010/04/08/how-to-use-magentos-session-within-wordpress/#comment-24895</link>

		<dc:creator><![CDATA[joe]]></dc:creator>
		<pubDate>Thu, 05 Apr 2012 10:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://mysillypointofview.wordpress.com/?p=283#comment-24895</guid>

					<description><![CDATA[Huge help!

This helped me to theme out Vanilla forums with my magento header and footer. It was a very similar conflict to the one you mentioned with wordpress... except that there was a conflict with the now() function. 

I simply wrapped the now() function (in app-&#062;code-&#062;core-&#062;mage-&#062;core-&#062;functions.php) with the if(!function_exists(now){ now()... }

and it worked like a charm!

Thanks.]]></description>
			<content:encoded><![CDATA[<p>Huge help!</p>
<p>This helped me to theme out Vanilla forums with my magento header and footer. It was a very similar conflict to the one you mentioned with wordpress&#8230; except that there was a conflict with the now() function. </p>
<p>I simply wrapped the now() function (in app-&gt;code-&gt;core-&gt;mage-&gt;core-&gt;functions.php) with the if(!function_exists(now){ now()&#8230; }</p>
<p>and it worked like a charm!</p>
<p>Thanks.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
