<?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>Buyxonline.com - eCommerce &#124; eMarketing &#124; Linux Systems &#187; Howto&#8217;s</title>
	<atom:link href="http://www.buyxonline.com/ecommerceblog/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.buyxonline.com/ecommerceblog</link>
	<description>Buyxonline.com - eCommerce &#124; eMarketing &#124; Linux Systems</description>
	<lastBuildDate>Wed, 01 Sep 2010 09:43:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Network Logon script &#8211; Windows 2008 Domain</title>
		<link>http://www.buyxonline.com/ecommerceblog/2010/09/01/network-logon-script-windows-2008-domain/</link>
		<comments>http://www.buyxonline.com/ecommerceblog/2010/09/01/network-logon-script-windows-2008-domain/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 09:37:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Howto's]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.buyxonline.com/ecommerceblog/?p=256</guid>
		<description><![CDATA[Ever wanted to Map Network drives for your Domain users when they log on ? How about automatically adding a printer ? Or Map a Network Drive for specific users only ?
No problem !  

@echo off
net use * /delete /y
net use R: \\DATA_SERVER\HOME_DRIVES$\%USERNAME% /persistent:no
net use W: \\DATA_SERVER\SHARE /persistent:no
start \\PRINT_SERVER_IP_ADDRESS\PINTER_NAME /MIN
IF (%USERNAME%) == (SOME_USER_NAME) net [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to Map Network drives for your Domain users when they log on ? How about automatically adding a printer ? Or Map a Network Drive for specific users only ?</p>
<p>No problem ! <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: bash;">
@echo off
net use * /delete /y
net use R: \\DATA_SERVER\HOME_DRIVES$\%USERNAME% /persistent:no
net use W: \\DATA_SERVER\SHARE /persistent:no
start \\PRINT_SERVER_IP_ADDRESS\PINTER_NAME /MIN
IF (%USERNAME%) == (SOME_USER_NAME) net use N: \\DATA_SERVER\SOME_SHARE /persistent:no
</pre>
<p>Put the above code into a text file on windows and rename it to logon_script.bat or any name really, as long as it is a .bat file. </p>
<p>Place the .bat file into your SYSVOL folder, and now, using Active Directory, Users and Groups, add the logon script to each user of your domain, and your done <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>To test, please log off and log on again, your printer should be added now, and your drives mapped. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.buyxonline.com/ecommerceblog/2010/09/01/network-logon-script-windows-2008-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to bring in Related Product Data into View.phtml with Downloadable Sample Links</title>
		<link>http://www.buyxonline.com/ecommerceblog/2010/07/26/how-to-bring-in-related-product-data-into-view-phtml-with-downloadable-sample-links/</link>
		<comments>http://www.buyxonline.com/ecommerceblog/2010/07/26/how-to-bring-in-related-product-data-into-view-phtml-with-downloadable-sample-links/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 06:04:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[eCommerce]]></category>

		<guid isPermaLink="false">http://www.buyxonline.com/ecommerceblog/?p=239</guid>
		<description><![CDATA[Morning Guys and Girls,
Today we will learn how to bring in related product data into the View.phtml or product colum or middle column.
To see a demo of this have a look at this page:
3AM Psytrance Timecode Records &#8211; Multistate &#8211; Collaborating with machines 
Ready? Let&#8217;s do it!


&#60;?php foreach ($_product-&#62;getRelatedProducts() as $related_product) {
 if (sizeof($_product-&#62;getRelatedProducts())&#62;0):
 ?&#62;
 [...]]]></description>
			<content:encoded><![CDATA[<p>Morning Guys and Girls,</p>
<p>Today we will learn how to bring in related product data into the View.phtml or product colum or middle column.</p>
<p>To see a demo of this have a look at this page:</p>
<p><a href="http://www.3am.co.za/music/timecode-records/timecode-records-multistate-collaborating-with-machines" title="3am Psytrance, your #1 source for the latest Psytrance Parties, Music and News" alt="3am Psytrance, your #1 source for the latest Psytrance Parties, Music and News">3AM Psytrance Timecode Records &#8211; Multistate &#8211; Collaborating with machines</a> </p>
<p>Ready? Let&#8217;s do it!</p>
<pre class="brush: php;">

&lt;?php foreach ($_product-&gt;getRelatedProducts() as $related_product) {
 if (sizeof($_product-&gt;getRelatedProducts())&gt;0):
 ?&gt;
 &lt;?php

$ids[] = $related_product-&gt;getId();

echo $relatedproduct-&gt;getName(); ?&gt;
</pre>
<p>That will get you related products. However, I actually extended it quite a bit more, in the sense that my related products are downloadable products, and I needed to get the sample link from these products. The complete code that I used therefor looks like this:</p>
<pre class="brush: php;">

&lt;?php $i = 1; ?&gt;
 &lt;?php foreach ($_product-&gt;getRelatedProducts() as $related_product) {
 if (sizeof($_product-&gt;getRelatedProducts())&gt;0):
 ?&gt;
 &lt;?php
 $ids[] = $related_product-&gt;getId();

 //Download product samples code <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Ninja Go!!
 $_myprodsamples = Mage::getModel('downloadable/sample');
 $_mySampleCollection = $_myprodsamples-&gt;getCollection()-&gt;addProductToFilter($related_product-&gt;getId());

 $relatedproduct = Mage::getModel('catalog/product');
 $relatedproduct-&gt;load($related_product-&gt;getId());

 if (sizeof($_mySampleCollection)&gt;0):
 ?&gt;

 &lt;?php
 foreach ($_mySampleCollection as $_sample) {
 //$_samplelink = $this-&gt;getUrl('downloadable/download/sample/sample_id/'.$_sample-&gt;getId());
 $_samplelink = Mage::getModel('downloadable/sample')-&gt;load($_sample-&gt;getId())-&gt;getUrl();
 ?&gt;
 &lt;span&gt;&lt;?php echo $i++; ?&gt;&lt;?php echo $this-&gt;__('. ') ?&gt;&lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;player1.sendEvent('STOP'); player1.sendEvent('LOAD', {'image':'&lt;?php echo $_product-&gt;getImageUrl(); ?&gt;', 'file':'&lt;?php echo $_samplelink ?&gt;', 'provider':'sound', 'buffer':0, 'autostart':true});&quot; title=&quot;Click to play &lt;?php echo $relatedproduct-&gt;getName(); ?&gt;&quot;&gt;&lt;?php echo $relatedproduct-&gt;getName(); ?&gt;&lt;/a&gt;&lt;/span&gt;
 &lt;?php } ?&gt;
 &lt;?php /*endforeach;*/ ?&gt;

 &lt;?php endif; ?&gt;

 &lt;?php //Mage::Helper('debug')-&gt;log($_sample) ?&gt;
 &lt;?php endif; ?&gt;
 &lt;?php } ?&gt;
 &lt;?php /*endforeach;*/ ?&gt;
</pre>
<p>Beer time!<br />
There you have it, if you don&#8217;t come right, use the contact form to contact me, and I will set this up for you.</p>
<p>Have a wonderful day!</p>
<p>Winston</p>
]]></content:encoded>
			<wfw:commentRss>http://www.buyxonline.com/ecommerceblog/2010/07/26/how-to-bring-in-related-product-data-into-view-phtml-with-downloadable-sample-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Cape Town</title>
		<link>http://www.buyxonline.com/ecommerceblog/2010/07/19/buyx-online-your-magento-friend-in-cape-town/</link>
		<comments>http://www.buyxonline.com/ecommerceblog/2010/07/19/buyx-online-your-magento-friend-in-cape-town/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 04:18:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[eCommerce]]></category>

		<guid isPermaLink="false">http://www.buyxonline.com/ecommerceblog/?p=236</guid>
		<description><![CDATA[We work with Magento all day long, and know this system very well now.
At BUYX Online, we will be able to support, host, and develop your on-line store. We have also made Magento Partners throughout the world and can recommend someone in Europe, America, and India.
Should you have a Magento related query, contact us here.
]]></description>
			<content:encoded><![CDATA[<p>We work with Magento all day long, and know this system very well now.<br />
At BUYX Online, we will be able to support, host, and develop your on-line store. We have also made Magento Partners throughout the world and can recommend someone in Europe, America, and India.</p>
<p>Should you have a Magento related query, <a title="BUYX Online, Magento eCommerce" href="http://www.buyxonline.com/contacts/index/" target="_self">contact us here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.buyxonline.com/ecommerceblog/2010/07/19/buyx-online-your-magento-friend-in-cape-town/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Contact Us &#8211; Unable to submit your request. Please, try again later error</title>
		<link>http://www.buyxonline.com/ecommerceblog/2010/05/08/magento-contact-us-unable-to-submit-your-request-please-try-again-later-error/</link>
		<comments>http://www.buyxonline.com/ecommerceblog/2010/05/08/magento-contact-us-unable-to-submit-your-request-please-try-again-later-error/#comments</comments>
		<pubDate>Sat, 08 May 2010 09:52:44 +0000</pubDate>
		<dc:creator>star</dc:creator>
				<category><![CDATA[Debug]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Howto's]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[eCommerce]]></category>

		<guid isPermaLink="false">http://www.buyxonline.com/ecommerceblog/?p=200</guid>
		<description><![CDATA[I had an issue with Magento CE Version 1.4.0.1 where an email would not be sent when a visitor used the contact us page, I found the fix using Google, on ScreencastWorld
In WEBROOT/app/design/frontend/base/default/template/contacts/form.phtml
Look for

&#60;div class=&#34;buttons-set&#34;&#62;

It should look like this, the important part is the input file name=&#8221;hideit&#8221;

&#60;div class=&#34;buttons-set&#34;&#62;
        [...]]]></description>
			<content:encoded><![CDATA[<p>I had an issue with Magento CE Version 1.4.0.1 where an email would not be sent when a visitor used the contact us page, I found the fix using Google, on <a href="http://screencastworld.com/2010/03/articles/magento-commerce-1-4-how-to-fix-unable-to-submit-your-request-please-try-again-later%E2%80%99-on-the-contact-us-form">ScreencastWorld</a></p>
<p>In <strong>WEBROOT/app/design/frontend/base/default/template/contacts/form.phtml</strong><br />
Look for</p>
<pre class="brush: xml;">
&lt;div class=&quot;buttons-set&quot;&gt;
</pre>
<p>It should look like this, the important part is the input file name=&#8221;hideit&#8221;</p>
<pre class="brush: xml;">
&lt;div class=&quot;buttons-set&quot;&gt;
        &lt;p class=&quot;required&quot;&gt;&lt;?php echo Mage::helper('contacts')-&gt;__('* Required Fields') ?&gt;&lt;/p&gt;
        &lt;input type=&quot;text&quot; name=&quot;hideit&quot; id=&quot;hideit&quot; value=&quot;&quot; style=&quot;display:none !important;&quot; /&gt;
        &lt;button type=&quot;submit&quot; title=&quot;&lt;?php echo Mage::helper('contacts')-&gt;__('Submit') ?&gt;&quot; class=&quot;button&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo Mage::helper('contacts')-&gt;__('Submit') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
&lt;/div&gt;
</pre>
<p>Good luck !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.buyxonline.com/ecommerceblog/2010/05/08/magento-contact-us-unable-to-submit-your-request-please-try-again-later-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add All products in Cart to Wishlist</title>
		<link>http://www.buyxonline.com/ecommerceblog/2010/04/06/add-all-products-in-cart-to-wishlist/</link>
		<comments>http://www.buyxonline.com/ecommerceblog/2010/04/06/add-all-products-in-cart-to-wishlist/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:39:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Howto's]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.buyxonline.com/ecommerceblog/?p=129</guid>
		<description><![CDATA[Want to add all the products in your cart to your Wishlist, in one click?
I&#8217;ll show you how to do it here   This procedure will take you 5 Minutes
We will begin to override the Wishlist Controller.
We do this by creating a folder called Mycompany in your webroot /app/code/local/ and inside it, we&#8217;ll add [...]]]></description>
			<content:encoded><![CDATA[<p>Want to add all the products in your cart to your Wishlist, in one click?<br />
I&#8217;ll show you how to do it here <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  This procedure will take you <strong>5 Minutes</strong></p>
<p>We will begin to override the Wishlist Controller.<br />
We do this by creating a folder called <strong>Mycompany</strong> in your webroot <strong>/app/code/local/</strong> and inside it, we&#8217;ll add the folder: <strong>Addcwl</strong></p>
<p>Inside this folder we will create two extra folders:</p>
<p><strong>etc</strong><br />
<strong>controllers</strong></p>
<p>Now, we are ready to begin:</p>
<p>In <strong>WEBROOT/app/code/local/Mycompany/Addcwl/etc/</strong> create the file <strong>config.xml</strong><br />
Inside this file put the following,</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;config&gt;
   &lt;!-- snip --&gt;
   &lt;frontend&gt;
      &lt;routers&gt;
         &lt;wishlist&gt;
            &lt;args&gt;
               &lt;modules&gt;
                  &lt;Mycompany_Addcwl before=&quot;Mage_Wishlist&quot;&gt;
                            Mycompany_Addcwl
                 &lt;/Mycompany_Addcwl&gt;
               &lt;/modules&gt;
            &lt;/args&gt;
         &lt;/wishlist&gt;
      &lt;/routers&gt;
   &lt;/frontend&gt;
&lt;/config&gt;
</pre>
<p>The above code allows you to override the Wishlist controller <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now, in <strong>WEBROOT/app/code/local/Mycompany/Addcwl/controllers/</strong> create the file</p>
<blockquote><p>IndexController.php</p></blockquote>
<p>Inside this file put the following:</p>
<pre class="brush: php;">
&lt;?php

 * @category   BUYX
 * @package
 * @copyright  Copyright (c)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

/**
 * Wishlist front controller
 *
 * @category   BUYX
 * @package
 * @author     Winston nolan &lt;winston@buyxonline.com&gt;
 */

include_once(&quot;Mage/Wishlist/controllers/IndexController.php&quot;);

class Mycompany_Addcwl_IndexController extends Mage_Wishlist_IndexController
{
	//we test our controller override with this
	/*
	public function indexAction()
	    {
	        # Just to make sure
	        error_log('Yes, I did it!');
	        parent::indexAction();
	    }
	*/

    /**
     * Adding new item
     */

    public function addcartAction()
    {
        $session = Mage::getSingleton('customer/session');
        $wishlist = $this-&gt;_getWishlist();
        if (!$wishlist) {
            $this-&gt;_redirect('*/');
            return;
        }
        // We store the id's of our products in the cart, in our core session
        $ids = Mage::getSingleton('core/session')-&gt;getWishListIds();
        // Here we explode our id's
        $ids = explode('-', $ids);
                        //do a foreach on them
        		foreach ($ids as $productId) {

        $product = Mage::getModel('catalog/product')-&gt;load($productId);

        try {

            $wishlist-&gt;addNewItem($productId);
            Mage::dispatchEvent('wishlist_addcart_product', array('wishlist'=&gt;$wishlist, 'product'=&gt;$product));

            //unset wishlist id's in session
	    Mage::getSingleton('core/session')-&gt;unsWishListIds();

            if ($referer = $session-&gt;getBeforeWishlistUrl()) {
                $session-&gt;setBeforeWishlistUrl(null);
            }
            else {
                $referer = $this-&gt;_getRefererUrl();
            }
            $message = $this-&gt;__('%1$s was successfully added to your wishlist. Click &lt;a href=&quot;%2$s&quot;&gt;here&lt;/a&gt; to continue shopping', $product-&gt;getName(), $referer);
            $session-&gt;addSuccess($message);
        	}
        	catch (Mage_Core_Exception $e) {
            $session-&gt;addError($this-&gt;__('There was an error while adding item to wishlist: %s', $e-&gt;getMessage()));
        	}
        	catch (Exception $e) {
            //$session-&gt;addError($this-&gt;__('There was an error while adding item to wishlist.'));
        	}
        $this-&gt;_redirect('*');
    	}

 	}
}
</pre>
<p>Now that have the controller wrapped up, we need to modify one file called sidebar.phtml<br />
The file is located here here:</p>
<p><strong>WEBROOT/app/design/frontend/YOURPACKAGE/YOURTHEME/checkout/sidebar/sidebar.phtml</strong></p>
<p>In this file we&#8217;ll make the following change around line 56</p>
<pre class="brush: php;">
&lt;?php //first we'll make our id's null ?&gt;
&lt;?php $ids = null; ?&gt;
    &lt;?php foreach($_items as $_item): ?&gt;
        &lt;?php echo $this-&gt;getItemHtml($_item) ?&gt;
         &lt;?php now we'll concatenate our Id's into a string
        &lt;?php $ids .= '-' . $_item['product_id']; ?&gt;
    &lt;?php endforeach; ?&gt;
    &lt;?php
        //finally, we'll store the id's into our core session
    	Mage::getSingleton('core/session')-&gt;setWishListIds($ids);

         //setup some debug logging to see what we're doing <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
    	//$session = Mage::getSingleton('core/session');
    	//Mage::Helper('debug')-&gt;log($session);
     ?&gt;
</pre>
<p>And we&#8217;ll add the <strong>Add All to Wishlist button/link</strong> here: </p>
<pre class="brush: php;">
&lt;!-- add all items to wishlist --&gt;
        &lt;button style=&quot;margin-right:5px;&quot; class=&quot;form-button&quot; type=&quot;button&quot; onclick=&quot;setLocation('&lt;?php echo Mage::getBaseUrl(); ?&gt;wishlist/index/addcart/product/')&quot;&gt;
            &lt;span&gt;&lt;?php echo $this-&gt;__('Add to my Wishlist') ?&gt;&lt;/span&gt;
        &lt;/button&gt;
</pre>
<p>And now for the Grand Finale!<br />
We&#8217;ll activate our module by creating a file in</p>
<p><strong>WEBROOT/app/etc/modules/Mycompany_Addcwl.xml</strong><br />
Inside this file we&#8217;ll put the following</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
 &lt;modules&gt;
 &lt;!-- Activate Add All in Cart to Wishlist Module --&gt;
   &lt;Mycompany_Addcwl&gt;
     &lt;active&gt;true&lt;/active&gt;
     &lt;codePool&gt;local&lt;/codePool&gt;
   &lt;/Mycompany_Addcwl&gt;
 &lt;/modules&gt;
&lt;/config&gt;
</pre>
<p>Congratulations, have a beer! You can now add all the products in your cart to your wishlist <img src='http://www.buyxonline.com/ecommerceblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.buyxonline.com/ecommerceblog/2010/04/06/add-all-products-in-cart-to-wishlist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

