Jigoshop Paypal - pass prices calculated for order items rather than refetching from products


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* In file gateways/paypal.php approx. line 198 I REPLACED:
  2. * $paypal_args['item_name_'.$item_loop] = $_product->get_title();
  3. * $paypal_args['quantity_'.$item_loop] = $item['qty'];
  4. * $paypal_args['amount_'.$item_loop] = $_product->get_price_excluding_tax();
  5. *
  6. * WITH:
  7. */
  8.  
  9. $paypal_args['item_name_'.$item_loop] = $item['name'];
  10. $paypal_args['quantity_'.$item_loop] = $item['qty'];
  11. $paypal_args['amount_'.$item_loop] = $item['cost'];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.