<?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#"
	>

<channel>
	<title>My Silly Point of View</title>
	<atom:link href="https://mysillypointofview.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://mysillypointofview.com</link>
	<description>it&#039;s my blog anyway</description>
	<lastBuildDate>Thu, 04 Feb 2021 02:03:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>
<site xmlns="com-wordpress:feed-additions:1">13951596</site>	<item>
		<title>Disabled module will be enabled by bin/magento setup:upgrade</title>
		<link>https://mysillypointofview.com/2021/02/04/disabled-module-will-be-enabled-by-bin-magento-setupupgrade/</link>
					<comments>https://mysillypointofview.com/2021/02/04/disabled-module-will-be-enabled-by-bin-magento-setupupgrade/#respond</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Thu, 04 Feb 2021 10:03:13 +0000</pubDate>
				<category><![CDATA[Mobile Thoughts]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento2]]></category>
		<guid isPermaLink="false">https://mysillypointofview.com/?p=933</guid>

					<description><![CDATA[<p>Just so you know if you explicitly disabled a module using bin/magento module:disable, the next setup:upgrade will re-enable that again.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2021/02/04/disabled-module-will-be-enabled-by-bin-magento-setupupgrade/">Disabled module will be enabled by bin/magento setup:upgrade</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Just so you know if you explicitly disabled a module using <code><strong>bin/magento module:disable</strong></code>, the next <code><strong>setup:upgrade</strong></code> will re-enable that again.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2021/02/04/disabled-module-will-be-enabled-by-bin-magento-setupupgrade/">Disabled module will be enabled by bin/magento setup:upgrade</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2021/02/04/disabled-module-will-be-enabled-by-bin-magento-setupupgrade/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">933</post-id>	</item>
		<item>
		<title>How to pull custom product attribute using SOAP API in Magento</title>
		<link>https://mysillypointofview.com/2016/11/12/pull-custom-product-attribute-using-soap/</link>
					<comments>https://mysillypointofview.com/2016/11/12/pull-custom-product-attribute-using-soap/#respond</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Sat, 12 Nov 2016 01:52:20 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=895</guid>

					<description><![CDATA[<p>When extracting a product attribute data using SOAP, the usual approach is to create a standard class and identify the common fields in the attributes property as shown below: The above var_dump() would show the values of requested fields except the custom_attribute_code. The reason for this is because a custom product attribute is available in additional_attributes property [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/12/pull-custom-product-attribute-using-soap/">How to pull custom product attribute using SOAP API in Magento</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When extracting a product attribute data using SOAP, the usual approach is to create a standard class and identify the common fields in the <strong>attributes</strong> property as shown below:</p>
<pre class="brush: plain; title: ; notranslate">$proxy = new SoapClient('http://your.magento.domain/api/v2_soap/?wsdl');
$sessionId = $proxy-&gt;login('username', 'password!');
$product = new stdclass();
$product-&gt;attributes = array(
     'description',
     'short_description',
     'price',
     'custom_attribute_code'
);
$data = $proxy-&gt;catalogProductInfo($sessionId, $sku, null, $product);
var_dump($data);</pre>
<p>The above var_dump() would show the values of requested fields except the <em>custom_attribute_code</em>. The reason for this is because a custom product attribute is available in <strong>additional_attributes</strong> property instead.</p>
<h3>Get custom product attribute:</h3>
<p>To get the value of <em>custom_attribute_code</em>, use the following code:</p>
<pre class="brush: plain; title: ; notranslate">$proxy = new SoapClient('http://your.magento.domain/api/v2_soap/?wsdl');
$sessionId = $proxy-&gt;login('username', 'password!');
$product = new stdClass();
$product-&gt;additional_attributes = array('custom_attribute_code');
$data = $proxy-&gt;catalogProductInfo($sessionId, $sku, null, $product);</pre>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/12/pull-custom-product-attribute-using-soap/">How to pull custom product attribute using SOAP API in Magento</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2016/11/12/pull-custom-product-attribute-using-soap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">895</post-id>	</item>
		<item>
		<title>Keep line breaks, custom HTML attributes and remove initial paragraph tag in Magento Admin&#8217;s TinyMCE editor</title>
		<link>https://mysillypointofview.com/2016/11/04/keep-line-breaks-html-attributes-tinymce/</link>
					<comments>https://mysillypointofview.com/2016/11/04/keep-line-breaks-html-attributes-tinymce/#respond</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Fri, 04 Nov 2016 00:46:25 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=865</guid>

					<description><![CDATA[<p>One of my clients would like to add additional HTML attributes for SEO purposes as well as to keep line breaks after saving a CMS block or page in the Magento Admin. Solution: To do that, you must open the file js/mage/adminhtml/wysiwyg/tiny_mce/setup.js and locate the line below: Right after the code plugins : plugins, add [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/04/keep-line-breaks-html-attributes-tinymce/">Keep line breaks, custom HTML attributes and remove initial paragraph tag in Magento Admin&#8217;s TinyMCE editor</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of my clients would like to add additional HTML attributes for SEO purposes as well as to keep line breaks after saving a CMS block or page in the Magento Admin.</p>
<h3>Solution:</h3>
<p>To do that, you must open the file <em>js/mage/adminhtml/wysiwyg/tiny_mce/setup.js</em> and locate the line below:</p>
<pre class="brush: jscript; first-line: 96; title: setup.js; notranslate">var settings = {</pre>
<p>Right after the code <code>plugins : plugins,</code> add the lines <strong>highlighted in grey</strong>:</p>
<pre class="brush: jscript; first-line: 96; highlight: [101,102,103]; smart-tabs: true; tab-size: 4; title: setup.js; wrap-lines: true; notranslate">        var settings = {
            mode : (mode != undefined ? mode : 'none'),
            elements : this.id,
            theme : 'advanced',
            plugins : plugins,
            forced_root_block: false,
            extended_valid_elements: '+ul[*],+li[*],+p[*],+span[*],+div[*],+a[*]',
            remove_linebreaks : false,
            theme_advanced_buttons1 : magentoPlugins ...</pre>
<p>Save the file and clear your cache to apply the changes.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/04/keep-line-breaks-html-attributes-tinymce/">Keep line breaks, custom HTML attributes and remove initial paragraph tag in Magento Admin&#8217;s TinyMCE editor</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2016/11/04/keep-line-breaks-html-attributes-tinymce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">865</post-id>	</item>
		<item>
		<title>catalogProductCreate in Magento API returning SQL error for configurable product</title>
		<link>https://mysillypointofview.com/2016/11/02/catalogproductcreate-magento-api-configurable-error/</link>
					<comments>https://mysillypointofview.com/2016/11/02/catalogproductcreate-magento-api-configurable-error/#respond</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Wed, 02 Nov 2016 00:00:08 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=857</guid>

					<description><![CDATA[<p>It is common for companies with a huge product database to always have an ERP that manages their product updates. With an external service, it normally utilises the built-in Magento API. Calling the method catalogProductCreate using a SOAP service, one of the possible issues that may arise&#160;is the one below: catalogProductCreate Error: SQLSTATE23000: Integrity constraint [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/02/catalogproductcreate-magento-api-configurable-error/">catalogProductCreate in Magento API returning SQL error for configurable product</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>It is common for companies with a huge product database to always have an ERP that manages their product updates. With an external service, it normally utilises the built-in Magento API. Calling the method <strong>catalogProductCreate</strong> using a SOAP service, one of the possible issues that may arise&nbsp;is the one below:<span id="more-857"></span></p>
<h3>catalogProductCreate Error:</h3>
<p><code>SQLSTATE23000: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db`.`catalog_product_super_link`, CONSTRAINT `FK_CAT_PRD_SPR_LNK_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE)</code></p>
<p>An empty <code>url_key</code>&nbsp;value causes the above issue. To fix it, make sure that the configurable product being created has a valid <code>url_key</code>. This is required for any product that is&nbsp;available on both catalog and search listings as shown below:</p>
<p><img loading="lazy" class="alignnone" src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2016/11/soap-url_key.png?resize=468%2C101" alt="url_key field in catalogProductCreate SOAP request" width="468" height="101"  data-recalc-dims="1"></p>
<p>Do not forget that a <code>url_key</code> needs to be unique because this is used to generate the hyperlink of the product.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2016/11/02/catalogproductcreate-magento-api-configurable-error/">catalogProductCreate in Magento API returning SQL error for configurable product</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2016/11/02/catalogproductcreate-magento-api-configurable-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">857</post-id>	</item>
		<item>
		<title>How to fix the Invalid Timezone error in Magento</title>
		<link>https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/</link>
					<comments>https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/#respond</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Thu, 10 Apr 2014 18:12:49 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=827</guid>

					<description><![CDATA[<p>I came across a persistent issue where the admin user is unable to save any configuration in the administration window and would only be greeted with the error below: Upon investigation, I noticed that the method _beforeSave() is being called multiple times regardless if the field is for timezone or not as shown in the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/">How to fix the Invalid Timezone error in Magento</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I came across a persistent issue where the admin user is unable to save any configuration in the administration window and would only be greeted with the error below:</p>
<p><figure id="attachment_828" aria-describedby="caption-attachment-828" style="width: 315px" class="wp-caption aligncenter"><a href="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2014/04/invalid-timezone-error.png"><img data-attachment-id="828" data-permalink="https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/invalid-timezone-error/" data-orig-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/invalid-timezone-error.png?fit=315%2C50&amp;ssl=1" data-orig-size="315,50" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Invalid timezone error" data-image-description="" data-image-caption="&lt;p&gt;Invalid timezone error showing in the System &gt; Configuration window in Magento admin.&lt;/p&gt;
" data-medium-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/invalid-timezone-error.png?fit=300%2C47&amp;ssl=1" data-large-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/invalid-timezone-error.png?fit=315%2C50&amp;ssl=1" loading="lazy" class="size-full wp-image-828" src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2014/04/invalid-timezone-error.png?resize=315%2C50" alt="Invalid timezone error" width="315" height="50" srcset="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/invalid-timezone-error.png?w=315&amp;ssl=1 315w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/invalid-timezone-error.png?resize=300%2C47&amp;ssl=1 300w" sizes="(max-width: 315px) 100vw, 315px" data-recalc-dims="1" /></a><figcaption id="caption-attachment-828" class="wp-caption-text">Invalid timezone error showing in the System &gt; Configuration window in Magento admin.</figcaption></figure></p>
<p><span id="more-827"></span>Upon investigation, I noticed that the method _beforeSave() is being called multiple times regardless if the field is for timezone or not as shown in the screenshot below:</p>
<p><figure id="attachment_829" aria-describedby="caption-attachment-829" style="width: 536px" class="wp-caption aligncenter"><a href="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png" target="_blank"><img data-attachment-id="829" data-permalink="https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/multiple-fields-being-validated/" data-orig-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?fit=930%2C666&amp;ssl=1" data-orig-size="930,666" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Multiple fields being validated in the DateTimeZone::listIdentifiers($allWithBc) method." data-image-description="" data-image-caption="&lt;p&gt;Multiple fields being validated in the DateTimeZone::listIdentifiers($allWithBc) method.&lt;/p&gt;
" data-medium-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?fit=300%2C214&amp;ssl=1" data-large-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?fit=640%2C458&amp;ssl=1" loading="lazy" class=" wp-image-829    " src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?resize=536%2C383" alt="Multiple fields being validated against the DateTimeZone::listIdentifiers($allWithBc) method." width="536" height="383" srcset="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?w=930&amp;ssl=1 930w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2014/04/multiple-fields-being-validated.png?resize=300%2C214&amp;ssl=1 300w" sizes="(max-width: 536px) 100vw, 536px" data-recalc-dims="1" /></a><figcaption id="caption-attachment-829" class="wp-caption-text">Multiple fields being validated against the DateTimeZone::listIdentifiers($allWithBc) method.</figcaption></figure></p>
<p><strong>The error occurs when the value of a non-timezone field is validated against the array result of the method DateTimeZone::listIdentifiers($allWithBc).</strong></p>
<p>To fix this, duplicate the core file:</p>
<p><code>app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Locale/Timezone.php</code></p>
<p>into this path (create the directory if it doesn&#8217;t exists)</p>
<p><code>app/code/local/Mage/Adminhtml/Model/System/Config/Backend/Locale/Timezone.php</code></p>
<p>Locate the method _beforeSave() and add the code below at the beginning:</p>
<pre class="brush: php; first-line: 47; title: ; notranslate">if($this-&gt;getField() !== 'timezone')
    return $this;</pre>
<p>The content of the method _beforeSave() should be similar to the one below (note this is for Magento CE 1.7.0.2 so adjust accordingly with the code changes)</p>
<pre class="brush: php; first-line: 45; title: ; notranslate">protected function _beforeSave()
{
    if($this-&gt;getField() !== 'timezone')
        return $this;

    $allWithBc = self::ALL_WITH_BC;
    if (defined('DateTimeZone::ALL_WITH_BC')) {
        $allWithBc = DateTimeZone::ALL_WITH_BC;
    }

    if (!in_array($this-&gt;getValue(), DateTimeZone::listIdentifiers($allWithBc))) {
        Mage::throwException(Mage::helper('adminhtml')-&gt;__('Invalid timezone'));
    }

    return $this;
}</pre>
<p>After that, you should now be able to save your configuration changes in the admin.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/">How to fix the Invalid Timezone error in Magento</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2014/04/10/how-to-fix-the-invalid-timezone-error-in-magento/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">827</post-id>	</item>
		<item>
		<title>Fixing Fontis&#8217; Parse Error when using Direct Deposit</title>
		<link>https://mysillypointofview.com/2013/10/07/fixing-fontis-parse-error-using-direct-deposit/</link>
					<comments>https://mysillypointofview.com/2013/10/07/fixing-fontis-parse-error-using-direct-deposit/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Mon, 07 Oct 2013 12:48:17 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=818</guid>

					<description><![CDATA[<p>Is your checkout page failing whenever you enable Fontis&#8217; Direct Deposit payment option? Try checking your logs to see if there&#8217;s a similar error like the one below: Parse error: parse error in /app/design/frontend/base/default/template/fontis/australia/ payment/directdeposit/form.phtml on line 42 Some would ask you to check the file permission while others would tell that you need to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2013/10/07/fixing-fontis-parse-error-using-direct-deposit/">Fixing Fontis&#8217; Parse Error when using Direct Deposit</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Is your checkout page failing whenever you enable Fontis&#8217; Direct Deposit payment option? Try checking your logs to see if there&#8217;s a similar error like the one below:</p>
<p><strong>Parse error: parse error in /app/design/frontend/base/default/template/fontis/australia/ payment/directdeposit/form.phtml on line 42</strong></p>
<p><span id="more-818"></span>Some would ask you to check the file permission while others would tell that you need to turn off compilation. If you did all these already and still see the error, I would suggest for you to check if <code>short_open_tag</code> is enabled in your <code>php.ini</code> file. This setting enables the syntax <code>&lt;? ... ?&gt;</code> to work instead of typing <code>&lt;?php … ?&gt;</code>.</p>
<p>Upon checking the <code>form.phtml</code> file, the code in line 31 would show that it is using the <code>short_open_tag</code> (see code below) so you must change it from:</p>
<pre class="brush: php; first-line: 31; title: ; notranslate">&lt;?endif;?&gt;</pre>
<p>to this:</p>
<pre class="brush: php; first-line: 31; title: ; notranslate">&lt;?php endif;?&gt;</pre>
<p>Refresh your page to see the now working Direct Deposit block.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2013/10/07/fixing-fontis-parse-error-using-direct-deposit/">Fixing Fontis&#8217; Parse Error when using Direct Deposit</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2013/10/07/fixing-fontis-parse-error-using-direct-deposit/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">818</post-id>	</item>
		<item>
		<title>How to change the number of columns in Magento catalog grid</title>
		<link>https://mysillypointofview.com/2013/01/31/how-to-change-catalog-column-number-in-magento/</link>
					<comments>https://mysillypointofview.com/2013/01/31/how-to-change-catalog-column-number-in-magento/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Thu, 31 Jan 2013 17:45:18 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=791</guid>

					<description><![CDATA[<p>The default Magento catalog grid is set to display 3 products per column. Most users alter the number of columns by modifying the file catalog/product/list.phtml. There&#8217;s actually a much cleaner approach to this task and you only need to modify an XML file. Open the catalog.xml file which can be found in the location below: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2013/01/31/how-to-change-catalog-column-number-in-magento/">How to change the number of columns in Magento catalog grid</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The default Magento catalog grid is set to display 3 products per column. Most users alter the number of columns by modifying the file <code>catalog/product/list.phtml</code>. There&#8217;s actually a much cleaner approach to this task and you only need to modify an XML file.<br />
<span id="more-791"></span></p>
<p>Open the <code>catalog.xml</code> file which can be found in the location below:<br />
<code>/app/design/frontend/&lt;package-name&gt;/&lt;theme&gt;/layout/catalog.xml</code></p>
<p>Locate the line that declares the block for product listing similar to the one below:<br />
<code>&lt;block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"&gt;</code></p>
<p>Immediately after the code above, add the XML node below:<br />
<code>&lt;action method="setColumnCount"&gt;&lt;columns&gt;4&lt;/columns&gt;&lt;/action&gt;</code></p>
<p>Save the file and clear the contents of your <code>var/cache</code> directory. Reload the catalog page to see the changes <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><em>Note: You can also apply this to <code>catalogsearch.xml</code> or any layout XML file that uses the list.phtml</em></p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2013/01/31/how-to-change-catalog-column-number-in-magento/">How to change the number of columns in Magento catalog grid</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2013/01/31/how-to-change-catalog-column-number-in-magento/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">791</post-id>	</item>
		<item>
		<title>How to fix WordPress permalinks on Mac OS X&#8217;s localhost</title>
		<link>https://mysillypointofview.com/2012/08/29/how-to-fix-wordpress-permalinks-on-mac-os-xs-localhost/</link>
					<comments>https://mysillypointofview.com/2012/08/29/how-to-fix-wordpress-permalinks-on-mac-os-xs-localhost/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Wed, 29 Aug 2012 14:27:46 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=773</guid>

					<description><![CDATA[<p>I recently installed a WordPress blog in my localhost using Mac OS X&#8217;s built in Apache and PHP with MySQL to test a functionality when I decided to update the permalinks to use a different format other than the default setting. When I tested the new URL, I was greeted with the following error: Not [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2012/08/29/how-to-fix-wordpress-permalinks-on-mac-os-xs-localhost/">How to fix WordPress permalinks on Mac OS X&#8217;s localhost</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I recently installed a WordPress blog in my localhost using Mac OS X&#8217;s built in Apache and PHP with MySQL to test a functionality when I decided to update the permalinks to use a different format other than the default setting. When I tested the new URL, I was greeted with the following error:</p>
<p><strong>Not Found</strong><br />
The requested URL /~user/wordpress/category/sample/ was not found on this server.<br />
Apache/2.2.21 (Unix) DAV/2 PHP/5.3.10 with Suhosin-Patch Server at localhost Port 80</p>
<p><span id="more-773"></span></p>
<p>To fix this, create a file and name it <code>&lt;username&gt;.conf</code>, where <strong>username</strong> is your user account&#8217;s <em>short name</em>. Paste the text below within the file:</p>
<p><code>&lt;Directory "/Users/username/Sites/"&gt;<br />
Options Indexes MultiViews FollowSymLinks<br />
AllowOverride All AuthConfig<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</code></p>
<p>Save the file and make sure it uses the <code>.conf</code> extension. Copy the file to this location (you may need to provide your credentials to overwrite the current one):</p>
<p><code>/etc/apache2/users/</code></p>
<p>Restart Apache to apply the changes by running the following in the Terminal:</p>
<p><code>sudo apachectl restart</code></p>
<p>Reapply your permalinks in the WordPress admin by choosing the default option and then setting it back to your desired format.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2012/08/29/how-to-fix-wordpress-permalinks-on-mac-os-xs-localhost/">How to fix WordPress permalinks on Mac OS X&#8217;s localhost</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2012/08/29/how-to-fix-wordpress-permalinks-on-mac-os-xs-localhost/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">773</post-id>	</item>
		<item>
		<title>How to fix the &#8220;Illegal scheme supplied, only alphanumeric characters are permitted&#8221; Magento error on Localhost using HTTP (fresh install)</title>
		<link>https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/</link>
					<comments>https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 04:56:01 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=729</guid>

					<description><![CDATA[<p>I want to setup a development environment for the Mage Enabler for WordPress plugin in my new desktop so I downloaded the latest copy of Magento Community Edition which is version 1.6.1.0 at the time of this writing. I used the sample data provided from the Magento download page and used all the default values. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/">How to fix the &#8220;Illegal scheme supplied, only alphanumeric characters are permitted&#8221; Magento error on Localhost using HTTP (fresh install)</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I want to setup a development environment for the <a href="http://wordpress.org/extend/plugins/mage-enabler/" title="Mage Enabler" target="_blank">Mage Enabler</a> for WordPress plugin in my new desktop so I downloaded the latest copy of Magento Community Edition which is version 1.6.1.0 at the time of this writing. I used the sample data provided from the Magento download page and used all the default values.</p>
<p><span id="more-729"></span></p>
<p style="text-align: center;"><a href="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png"><img data-attachment-id="736" data-permalink="https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/magento-installation-wizard/" data-orig-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?fit=1343%2C1347&amp;ssl=1" data-orig-size="1343,1347" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Magento Installation Wizard" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?fit=300%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?fit=640%2C643&amp;ssl=1" loading="lazy" class="size-medium wp-image-736" title="Magento Installation Wizard" src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/Magento-Installation-Wizard-300x300.png?resize=300%2C300" alt="Magento Installation Wizard" width="300" height="300" srcset="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?resize=300%2C300&amp;ssl=1 300w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?resize=1020%2C1024&amp;ssl=1 1020w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?w=1343&amp;ssl=1 1343w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Magento-Installation-Wizard.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></a></p>
<p>Everything went well during the installation except when I access the frontend (http://localhost/magento) and admin (http://localhost/magento/admin), I was greeted with the default error page like the one below:</p>
<p style="text-align: center;"><a href="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png"><img data-attachment-id="733" data-permalink="https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/there-has-been-an-error-processing-your-request/" data-orig-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?fit=532%2C205&amp;ssl=1" data-orig-size="532,205" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="There has been an error processing your request" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?fit=300%2C115&amp;ssl=1" data-large-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?fit=532%2C205&amp;ssl=1" loading="lazy" class="size-full wp-image-733 aligncenter" title="There has been an error processing your request" src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?resize=532%2C205" alt="" width="532" height="205" srcset="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?w=532&amp;ssl=1 532w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/There-has-been-an-error-processing-your-request.png?resize=300%2C115&amp;ssl=1 300w" sizes="(max-width: 532px) 100vw, 532px" data-recalc-dims="1" /></a></p>
<p>The page itself is not helpful so I decided to check the content of the error log (htdocs\magento\var\report) record number <strong>1742231029</strong> which contains the following information:</p>
<p><code>a:5:{i:0;s:67:"Illegal scheme supplied, only alphanumeric characters are permitted";i:1;s:681:"#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Store.php(712): Zend_Uri::factory('{{base_url}}')<br />
#1 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(313): Mage_Core_Model_Store-&gt;isCurrentlySecure()<br />
#2 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(161): Mage_Core_Controller_Varien_Front-&gt;_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))<br />
#3 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(349): Mage_Core_Controller_Varien_Front-&gt;dispatch()<br />
#4 C:\xampp\htdocs\magento\app\Mage.php(640): Mage_Core_Model_App-&gt;run(Array)<br />
#5 C:\xampp\htdocs\magento\index.php(80): Mage::run('', 'store')<br />
#6 {main}";s:3:"url";s:19:"/magento/index.php/";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:7:"default";}</code></p>
<p>As you can see, the cause of the error is the invalid config data format being passed during the start of a session. To fix this, we need to accomplish these tasks:</p>
<ol type="1">
<li>Allow the admin panel to run on localhost by disabling the domain check.</li>
<li>Fix the config data value.</li>
</ol>
<h3>Allow the admin panel to run on localhost.</h3>
<p>You will need to follow the <a href="http://mysillypointofview.richardferaro.com/2010/03/24/how-to-fix-magentos-admin-login-failing-no-error-message-on-localhost/" title="How to Fix Magento’s Admin Login Failing (no error message) on Localhost">instructions in my previous post</a> but instead of using HTTP, <span style="text-decoration: underline">you must access the admin page via HTTPS</span> after you applied the code changes.</p>
<h3>Fixing the config data value.</h3>
<p>Once you are able to access the admin panel using HTTPS, go to <em>System > Configuration > General > Web</em>. Make sure that you supply the proper value for the Base URL on both Unsecure and Secure tabs then <strong>save the changes</strong>. See my example below:</p>
<p style="text-align: center;"><a href="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png"><img data-attachment-id="758" data-permalink="https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/configuration-system-magento-admin/" data-orig-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png?fit=857%2C450&amp;ssl=1" data-orig-size="857,450" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Configuration &#8211; System &#8211; Magento Admin" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png?fit=300%2C157&amp;ssl=1" data-large-file="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png?fit=640%2C336&amp;ssl=1" loading="lazy" src="https://i0.wp.com/mysillypointofview.richardferaro.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin-300x157.png?resize=300%2C157" alt="" title="Configuration - System - Magento Admin" width="300" height="157" class="aligncenter size-medium wp-image-758" srcset="https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png?resize=300%2C157&amp;ssl=1 300w, https://i0.wp.com/mysillypointofview.com/wp-content/uploads/2011/11/Configuration-System-Magento-Admin.png?w=857&amp;ssl=1 857w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></a></p>
<p>Clear your browser&#8217;s cache and also Magento&#8217;s cache by deleting all the contents (not the folder itself) of the cache directory (htdocs\magento\var\cache). At this point, you should be able to access the frontend and admin panel using HTTP protocol.</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/">How to fix the &#8220;Illegal scheme supplied, only alphanumeric characters are permitted&#8221; Magento error on Localhost using HTTP (fresh install)</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2011/11/01/how-to-fix-the-illegal-scheme-supplied-error-on-localhost-fresh-install/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">729</post-id>	</item>
		<item>
		<title>Auto-select all &#060;option&#062; items from multiple select dropdown using jQuery</title>
		<link>https://mysillypointofview.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/</link>
					<comments>https://mysillypointofview.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Tue, 12 Apr 2011 00:00:00 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/</guid>

					<description><![CDATA[<p>I’ve been working for the past few days with jQuery and one of the task was to manipulate HTML forms before submitting it for processing. What I needed to do is to process a form having multiple submit buttons and select tags. These set of select tags requires all values to be selected on submit. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/">Auto-select all &lt;option&gt; items from multiple select dropdown using jQuery</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I’ve been working for the past few days with jQuery and one of the task was to manipulate HTML forms before submitting it for processing. What I needed to do is to process a form having multiple submit buttons and select tags. These set of select tags requires all values to be selected on submit.</p>
<p><span id="more-717"></span></p>
<p>Let’s start with creating the markup of the form. Save the HTML below and name it as <code>index.htm</code> (we won’t be needing PHP stuff for now in this exercise.)</p>
<p><pre class="brush: xml; title: ; notranslate">&lt;!doctype html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Sample Form&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;form id=&quot;myForm&quot; action=&quot;index.html&quot; method=&quot;post&quot; onSubmit=&quot;return false;&quot;&gt;
		&lt;select id=&quot;do-not-select&quot; name=&quot;do-not-select[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Do&lt;/option&gt;
			&lt;option&gt;not&lt;/option&gt;
			&lt;option&gt;select&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;color&quot; name=&quot;color[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Red&lt;/option&gt;
			&lt;option&gt;Green&lt;/option&gt;
			&lt;option&gt;Blue&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;size&quot; name=&quot;size[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Small&lt;/option&gt;
			&lt;option&gt;Medium&lt;/option&gt;
			&lt;option&gt;Large&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;category&quot; name=&quot;category[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Children&lt;/option&gt;
			&lt;option&gt;Ladies&lt;/option&gt;
			&lt;option&gt;Men&lt;/option&gt;
		&lt;/select&gt;
		&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
	&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</p>
<p>The markup above will create a single form with an id of <strong>myForm</strong> having four (4) multi-select field with the following ids: </p>
<ul>
<li>do-not-select</li>
<li>color</li>
<li>size</li>
<li>category</li>
</ul>
<p>At line 6, we added the jQuery file (latest version 1.5.2 as of this writing) to use it&#8217;s functionality in manipulating <a href="http://en.wikipedia.org/wiki/Document_Object_Model">DOM objects</a>. Now for the real action, copy the code below and insert it between line 6 and 7:</p>
<p><pre class="brush: xml; title: ; notranslate">&lt;script&gt;
$(document).ready(function() {
	$('#myForm').submit(function() {
		$('#color, #size, #category').find('option').each(function() {
			$(this).attr('selected', 'selected');
		});
	});
});
&lt;/script&gt;</pre>
</p>
<p>The script above will do the following task: </p>
<ol type="1">
<li>Instruct the browser to execute the script within <code>$(document).ready(...);</code> when the page has loaded. </li>
<li>Trigger the script within <code>$('#myForm').submit(...)</code> once the form with an id of <strong>myForm</strong> is submitted. </li>
<li>With the given <code>SELECT</code> element ids (color, size, category), find all <code>OPTION</code> tags in each of them and add the attribute and value <code>selected=&quot;selected&quot;</code> </li>
</ol>
<p>We also added at line 10 the event handler <code>onSubmit</code> with <code>return false;</code> to prevent the page on submitting while we are testing the script.</p>
<p>That&#8217;s it! Load the file on your browser and click Submit button. It should highlight all the options under color, size and category while ignoring the <strong>do-not-select</strong> option since we didn&#8217;t add them in the affected elements. See the full markup below. Remember to remove the <code>onSubmit="return false;"</code> in the <code>FORM</code> tag to enable redirection of your form on submit.</p>
<p><pre class="brush: xml; title: ; notranslate">&lt;!doctype html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Sample Form&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
	$('#myForm').submit(function() {
		$('#color, #size, #category').find('option').each(function() {
			$(this).attr('selected', 'selected');
		});
	});
});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;form id=&quot;myForm&quot; action=&quot;index.html&quot; method=&quot;post&quot; onSubmit=&quot;return false;&quot;&gt;
		&lt;select id=&quot;do-not-select&quot; name=&quot;do-not-select[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Do&lt;/option&gt;
			&lt;option&gt;not&lt;/option&gt;
			&lt;option&gt;select&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;color&quot; name=&quot;color[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Red&lt;/option&gt;
			&lt;option&gt;Green&lt;/option&gt;
			&lt;option&gt;Blue&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;size&quot; name=&quot;size[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Small&lt;/option&gt;
			&lt;option&gt;Medium&lt;/option&gt;
			&lt;option&gt;Large&lt;/option&gt;
		&lt;/select&gt;
		&lt;select id=&quot;category&quot; name=&quot;category[]&quot; multiple=&quot;multiple&quot; size=&quot;3&quot;&gt;
			&lt;option&gt;Children&lt;/option&gt;
			&lt;option&gt;Ladies&lt;/option&gt;
			&lt;option&gt;Men&lt;/option&gt;
		&lt;/select&gt;
		&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
	&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/">Auto-select all &lt;option&gt; items from multiple select dropdown using jQuery</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2011/04/12/auto-select-all-option-items-from-multiple-select-dropdown-using-jquery/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">717</post-id>	</item>
		<item>
		<title>How to create a new Magento customer account from an external site?</title>
		<link>https://mysillypointofview.com/2011/02/22/create-new-magento-customer-from-external-site/</link>
					<comments>https://mysillypointofview.com/2011/02/22/create-new-magento-customer-from-external-site/#comments</comments>
		
		<dc:creator><![CDATA[Richard Feraro]]></dc:creator>
		<pubDate>Tue, 22 Feb 2011 00:00:08 +0000</pubDate>
				<category><![CDATA[Feeling guru]]></category>
		<category><![CDATA[Techie Daw]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://mysillypointofview.richardferaro.com/?p=655</guid>

					<description><![CDATA[<p>I&#8217;ve been receiving a lot of inquiries on how to create a new customer record on the fly using Mage.php or using the plugin Mage Enabler for WordPress. So, to save you time and also to provide a thread for this specific topic, here&#8217;s how to accomplish it. First, include the file Mage.php from your [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/02/22/create-new-magento-customer-from-external-site/">How to create a new Magento customer account from an external site?</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been receiving a lot of inquiries on how to create a new customer record on the fly using <code>Mage.php</code> or using the plugin <a href="http://wordpress.org/extend/plugins/mage-enabler/">Mage Enabler</a> for WordPress. So, to save you time and also to provide a thread for this specific topic, here&#8217;s how to accomplish it.</p>
<p><span id="more-655"></span>First, include the file <code>Mage.php</code> from your Magento installation to your PHP file. Doing this will enable you to connect to your shop using the Mage object.</p>
<p><strong>If you&#8217;re using Mage Enabler for WordPress, you may skip this part:</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php
require_once (&quot;/your/magento/app/Mage.php&quot;);
umask(0);</pre>
<p>and here&#8217;s the rest of the code&#8230;</p>
<pre class="brush: php; first-line: 4; title: ; notranslate">// Customer Information
$firstname = &quot;John&quot;;
$lastname = &quot;Smith&quot;;
$email = &quot;johnsmith@localhost.local&quot;;
$password = &quot;myverysecretpassword&quot;;

// Website and Store details
$websiteId = Mage::app()-&gt;getWebsite()-&gt;getId();
$store = Mage::app()-&gt;getStore();

$customer = Mage::getModel(&quot;customer/customer&quot;);
$customer-&gt;website_id = $websiteId;
$customer-&gt;setStore($store);

try {
	// If new, save customer information
	$customer-&gt;firstname = $firstname;
	$customer-&gt;lastname = $lastname;
	$customer-&gt;email = $email;
	$customer-&gt;password_hash = md5($password);
	if($customer-&gt;save()){
		echo $customer-&gt;firstname.&quot; &quot;.$customer-&gt;lastname.&quot; information is saved!&quot;;
	}else{
		echo &quot;An error occured while saving customer&quot;;
	}
}catch(Exception $e){
	// If customer already exists, initiate login
	if(preg_match('/Customer email already exists/', $e)){
		$customer-&gt;loadByEmail($email);

		$session = Mage::getSingleton('customer/session');
		$session-&gt;login($email, $password);

		echo $session-&gt;isLoggedIn() ? $session-&gt;getCustomer()-&gt;getName().' is online!' : 'not logged in';
	}
}</pre>
<p>The above code tries to create a Magento customer account using the given parameters such as <code>$firstname</code>, <code>$lastname</code>, <code>$email</code> and <code>$password</code>. If the email doesn&#8217;t have a match in the database, the request proceeds. But if a match is found, it logs in the customer using the parameters <code>$email</code> and <code>$password</code> then checks if the customer is online or not logged in. There are actually more parameters that you can pass such as if you want to send confirmation message or not but these are the basic fields to help you get started.</p>
<p>I hope this will help you integrate the Magento registration to your external site <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a rel="nofollow" href="https://mysillypointofview.com/2011/02/22/create-new-magento-customer-from-external-site/">How to create a new Magento customer account from an external site?</a> appeared first on <a rel="nofollow" href="https://mysillypointofview.com">My Silly Point of View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mysillypointofview.com/2011/02/22/create-new-magento-customer-from-external-site/feed/</wfw:commentRss>
			<slash:comments>31</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">655</post-id>	</item>
	</channel>
</rss>
