Learn to create free demo web server

free demo web server
In order to create any application or services, the basic thing you need there is server. By the end of this article you can learn to create free demo web server. The are many giant providers like amazon, cloudfront, rackspace giving you a virtual private servers with the cost on per hour, per month, etc. A server is nothing but the environment or program with having some configurations like. i) CentOS 6+ ii) 512 MB RAM iii) 8 GB disk space iv) sudo or root level permissions. ...

WordPress post moving not found error

Wordpress post moving not found error occurring after updating your wordpress permalinks with the %postname%. The error will not occur if I update the permalinks to %default%. It may be due to your mod_rewrite module of your webhosting server. Even if you enable the mod_rewrite module in server sometimes it will not get reflect in htaccess condition. No worries we can override the condition from server default config file. Am just writing the fix for ubuntu apache server. If you are using any ot...

Allowed memory size exhausted fix

Allowed memory size exhausted fix, while doing huge export from mysql databases if the query data exceeds the maximum then it will result in error. You can fix this issue temporairly by changing memory settings in your php.ini file or .htaccess file. increasing this memory limit to 256M or 512M. But instead of doing this you can fix the issue by slight change in coding algorithm. Sample pseudocode format to export the data. Before: After: Use this format as per your framew...

Use dynamic data in magento theme layout xml

If you need to use any dynamic text with php conditon in magento theme layout, you can use your module helper functions there. For example here, am just declaring the media url in the script variable from php file. In themelayout.xml In helper file Clear all your cache. Check in view source you can get media url in the script. Have a great day!!

create invoice capture amount programmatic magento

create invoice capture amount programmatic magento, In order to capture the amount and create auto invoice programmatic from your custom payment module. Enable invoice variable first in your source model and use this code sample In your model file. Of course, for customer invoice email you need to make some external settings. To check the condition. For example in system.xml file

Refund online button in magento custom payment method

In your custom payment module if you need to build any custom api to make refund from the magento backend. Make sure the following things added in your custom module. In config.xml The authorize function is very important in your source model file. Because the order amount should be authorized in the payment gateway before making refund. And enable the active variables to make refund. The refund function will call back when you click refund button in the credit memo page of order ...

Get product price from javascript in magento

To get the product price dynamically from the javascript, use id "product-price-{productid}". Magento product.js file use this id to update the price when changing the product options. Use this sample code to get the product price. The code will work for all products when tax applied or not applied. Enjoy!!!! :)