Posted By

yegnold on 09/02/11


Tagged

jigoshop


Versions (?)

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


 / Published in: PHP
 

  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  

You need to login to post a comment.