Karthick' Post


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.

public function invoiceandcapture(Varien_Object $payment, $amount){

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

var pricepattern = <?php echo json_encode(Mage::app()->getLocale()->getJsPriceFormat()) ?>;
var pricesymbol =										

Read More