Tuesday, 30 October 2012
JQuery library for Magento
jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML
http://www.magentocommerce.com/magento-connect/utilities/developer-tools/mygento-jquery-library-and-powerful-plugins.html
http://www.magentocommerce.com/magento-connect/utilities/developer-tools/mygento-jquery-library-and-powerful-plugins.html
Friday, 26 October 2012
Magento Custom Admin Theme
http://inchoo.net/ecommerce/magento/custom-admin-theme-in-magento/
Just create new theme and place modified files and new files only instead of all the stuff from default theme.
Just create new theme and place modified files and new files only instead of all the stuff from default theme.
Tuesday, 23 October 2012
Monday, 22 October 2012
Magento: Programtically Cancel the coupon code on the shopping cart
$quote = Mage::getSingleton('checkout/session')->getQuote();
$oldCouponCode = $quote->getCouponCode();
if (strlen($oldCouponCode)) {
$quote->setCouponCode('')->collectTotals()->save();
}
$oldCouponCode = $quote->getCouponCode();
if (strlen($oldCouponCode)) {
$quote->setCouponCode('')->collectTotals()->save();
}
Friday, 19 October 2012
Delete Test data from Magento
Delete Test Products from Magento:
http://www.sonassi.com/knowledge-base/magento-kb/mass-delete-products-in-magento/
Delete Test Orders from Magento:
http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/
Magento Database Diagram and tables:
http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/magento_database_diagram
http://www.magereverse.com/
Delete all products:
http://www.magentocommerce.com/boards/viewthread/20553/
http://www.sonassi.com/knowledge-base/magento-kb/mass-delete-products-in-magento/
Delete Test Orders from Magento:
http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/
Magento Database Diagram and tables:
http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/magento_database_diagram
http://www.magereverse.com/
Delete all products:
http://www.magentocommerce.com/boards/viewthread/20553/
Tuesday, 16 October 2012
Monday, 15 October 2012
Image resizing and croping using PHP
Below to sample scripts i found useful to resize and crop the images using PHP. Both resources doing the samething.
http://forrst.com/posts/PHP_Resize_Crop_Image_to_Best_Fit-sel
http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/
Simple PHP script to resize the images:
http://www.kavoir.com/2009/01/php-resize-image-and-store-to-file.html
Image upload and crop using JQuery and PHP:
http://www.9lessons.info/2011/06/image-upload-and-cropping-with-php-and.html
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/
http://forrst.com/posts/PHP_Resize_Crop_Image_to_Best_Fit-sel
http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/
Simple PHP script to resize the images:
http://www.kavoir.com/2009/01/php-resize-image-and-store-to-file.html
Image upload and crop using JQuery and PHP:
http://www.9lessons.info/2011/06/image-upload-and-cropping-with-php-and.html
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/
Face detection using PHP
We need to install Facedetection, OpenCV PHPextensions to use these functions to find the coordinates of the faces. Go through the following resouces for more information.
http://corpocrat.com/2009/08/18/automatic-face-detection-with-php-in-linux/
https://github.com/infusion/PHP-Facedetect
http://www.xarg.org/project/php-facedetect/
You can detect face without any PHP extension using below Script:
http://devlup.com/programming/php/face-detection-using-php/1140/
http://www.emanueleferonato.com/2010/07/06/php-face-detection-class/
http://www.codediesel.com/algorithms/face-detection-in-images-using-php/
http://svay.com/blog/face-detection-in-pure-php-without-opencv/
http://corpocrat.com/2009/08/18/automatic-face-detection-with-php-in-linux/
https://github.com/infusion/PHP-Facedetect
http://www.xarg.org/project/php-facedetect/
You can detect face without any PHP extension using below Script:
http://devlup.com/programming/php/face-detection-using-php/1140/
http://www.emanueleferonato.com/2010/07/06/php-face-detection-class/
http://www.codediesel.com/algorithms/face-detection-in-images-using-php/
http://svay.com/blog/face-detection-in-pure-php-without-opencv/
Create, Design And Deliver Your Email Newsletter
How To Create, Design And Deliver Your Email Newsletter:
http://www.masternewmedia.org/how-to-create-design-and-deliver-your-email-newsletter/
Email clients and supporting designs:
http://www.email-standards.org/
http://www.masternewmedia.org/how-to-create-design-and-deliver-your-email-newsletter/
Email clients and supporting designs:
http://www.email-standards.org/
Thursday, 11 October 2012
Test credit card numbers for test mode integration
Here is a list of sample/dummy/test credit card numbers, which are
safe to use when you test credit card functionality on a website or
application that involves credit card transactions. These credit card
numbers validate properly but they are not actually in use.
American Express:
378282246310005
3111111111111117
343434343434343
370000000000002
340000000000009
371449635398431
378734493671000
Visa:
4111111111111111
4007000000027
4222222222222
4012888888881881
MasterCard:
5105105105105100
5111111111111118
5454545454545454
5500000000000004
5555555555551111
5555555555554444
Discover:
6011111111111117
6011000000000004
6011000990139424
6011601160116611
6111111111111116
American Express:
378282246310005
3111111111111117
343434343434343
370000000000002
340000000000009
371449635398431
378734493671000
Visa:
4111111111111111
4007000000027
4222222222222
4012888888881881
MasterCard:
5105105105105100
5111111111111118
5454545454545454
5500000000000004
5555555555551111
5555555555554444
Discover:
6011111111111117
6011000000000004
6011000990139424
6011601160116611
6111111111111116
JQuery Video and Audio players
The jQuery HTML5 Audio / Video Library
http://www.jplayer.org/latest/demos/
http://www.jplayer.org/latest/demos/
Monday, 1 October 2012
Magento: Get current Router name
Mage::app()->getFrontController()->getRequest()->getRouteName()
Add Remove class name to parent node based on the selected country has states or not
Add class to parent node based on the selected country has states (dropdown) or not (textbox)
Open the file js\varien\form.js and navigate to _checkRegionRequired: function()
Add the following code to add new class name to the parent tag
if (!currentElement.parentNode.hasClassName('hide-select-design')) {
currentElement.parentNode.addClassName('hide-select-design');
}
Add the following code to remove new class name from the parent tag
if (currentElement.parentNode.hasClassName('hide-select-design')) {
currentElement.parentNode.removeClassName('hide-select-design');
}
Open the file js\varien\form.js and navigate to _checkRegionRequired: function()
Add the following code to add new class name to the parent tag
if (!currentElement.parentNode.hasClassName('hide-select-design')) {
currentElement.parentNode.addClassName('hide-select-design');
}
Add the following code to remove new class name from the parent tag
if (currentElement.parentNode.hasClassName('hide-select-design')) {
currentElement.parentNode.removeClassName('hide-select-design');
}
Subscribe to:
Posts (Atom)