Create custom magento order status in module

Magento order status gives a clear idea to the position of the order. It will be helpful for operating team to take the necessary steps on that orders. In default, magento will provide the set of order state and status, To know about order status click here. These sometime will not help us to segregate based custom condition. In such cases we can add the custom order status. We can add the new order status through magento admin, but when we are adding the order status to third party we...
More

create order in payment return url magento

create order in payment return url
Guys before konwing the create order in payment return url, you should first know about the custom payment module creation in magento. To learn about custom payment module please refer this article here. The most unsatisfied thing in magento was, order creation before payment method redirection, which means once you click the place order button in checkout page, magento first will create the order using the custom payment method then it will redirect the user. This redirection is done through...
More

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!!
More

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
More

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 ...
More

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!!!! :)
More