Viewing 11 to 19 of 19 items
Archive | Miscellany RSS feed for this section

Dummy credit card numbers

Dummy credit card numbers   Have you ever neede dummy credit card numbers for testing purposes? Well, here you have unlimited with card numbers! Just refresh this page to get 10 new card numbers for each vendor. Perfect for testing with PayPal sandbox etc… Mastercard 5184056094730073 5297892201376721 5230645345718822 5353155356623458 5532587306222847 5252797360705367 5546986608892600 5513793320718538 5232893682943730 5150288121329518 VISA 16  Full Article…

0

Fix keo 502 : nginx big header response (Ex. jooix checkout & register)

Thêm vào file magento.conf # 16-sept-2012 parametros para evitar el 502 fastcgi_temp_file_write_size 10m; fastcgi_busy_buffers_size 512k; fastcgi_buffer_size 512k; fastcgi_buffers 16 512k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_intercept_errors on; fastcgi_next_upstream error invalid_header timeout http_500;

0

Install and upgrade custom module in Magento

Magento automatically installs or upgrades any module that it encounters during runtime. The installation files are located under YourModule/sql/yourmodule_setup/mysql4-install-X.Y.Z.php. The trigger for running this file is that your module’s version number is not present in the DB table `core_resource` and that you have defined a version number in your module’s etc/config.xml file. You will also  Full Article…

0

Get Product ID and Product Name in Magento

In Magento eCommerce while working with catalog model, There arise the need to fetch product details from product id. We can get all product details if we have product id. But sometimes we only have product name, so we need to get product id for getting product details. I am listing here both the method.  Full Article…

0

Getting url in .phtml files

Get Url in phtml files 1. Get Base Url :   Mage::getBaseUrl();   2. Get Skin Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);   (a) Unsecure Skin Url :   $this->getSkinUrl('images/imagename.jpg');   (b) Secure Skin Url :   $this->getSkinUrl('images/imagename.gif', array('_secure'=>true));   3. Get Media Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);   4. Get Js Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);   5. Get  Full Article…

0

Check current page is home page or not

Using the code below to check current page is home page or not. <?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home' && Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) : ?> //insert your code here <?php endif; ?>

0