keithg

Site redirect non www to www within folder

Add in .htaccess   Without folder : [crayon-58d31266281d4268333485/]   With Folder : <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{REQUEST_URI} ^/folder/ RewriteRule ^(.*)$ https://www.xyz.com/folder/$1 [R=301,L] </IfModule>Read more …

For multiple selection with checkbox

when you required to select multiple values from dropdown and wants to display them then  use Fselect jquery plugin. you can also customise image here  and display image in dropdown. click here for demo: http://www.jqueryscript.net/demo/jQuery-Plugin-For-Filterable-Multiple-Select-with-Checkboxes-fSelect/Read more …
Alex Devidson

CKeditor with ajax form submit

In my form i have added the ckeditor for textarea and submitting the form using AJAX form serialize() method and issue is i’m not getting the textarea content in form post. So, I have used the following method before using the AJAX call and its successfully send the textarea content...Read more …
keithg

add new attribute value to product query in magento

We have taken sale attribute to product general tab. $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘sale’, array(‘eq’ => ‘1’)) ->addMinimalPrice() ->addUrlRewrite() ->addTaxPercents() ->addStoreFilter() ->addFieldToFilter(‘visibility’, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH) ->addFieldToFilter(‘status’, Mage_Catalog_Model_Product_Status::STATUS_ENABLED);     Today s special price query $todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘special_price’, array(‘neq’=>”)) ->addAttributeToFilter(‘special_from_date’, array(‘date’ => true, ‘to’ => $todayDate)) ->addAttributeToFilter(‘special_to_date’, array(‘or’=>...Read more …