Jump to content

zenum

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  1. zenum

    PayPal "This invoice has already been paid."

    I had the same problem, I may have found a solution... It turns out for some reason paypal isn't accepting the invoice numbers, which are being created as 1, 2, 3.... etc... however if you go to includes/modules/payments/paypayl_ipn.php and change the line (I think 326) that says... $parameters['invoice'] = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1); to $parameters['invoice'] = $cart_PayPal_IPN_ID; Then the transaction should work and you will be returned to your site. However on paypay the Invoice number will be cartNo-InvNo where as in your osCommerce records it will just be InvNo. I'm still working on getting around that issue... Hope this helps
  2. Well i dunno if there is a proper way to do this but I made mine so that it shows your products in two columns. The way I did it was to basically duplicate parts of allprods.php. Like so for the headings: <tr class="productListing-heading"> <td align="left" class="productListing-heading">Product Image</td> <td align="left" class="productListing-heading">Product Name</td> <td align="left" class="productListing-heading">Price </td> <td align="left" class="productListing-heading">Product Image</td> <td align="left" class="productListing-heading">Product Name</td> <td align="left" class="productListing-heading">Price </td> </tr> And then i did a few modifications to the FOR statement i changed the increment to $1+=2 I duplicated the data like so... for all the variables in that section $this_id = $products_array[$i]['id']; $this_id2 = $products_array[$i+1]['id']; And finally i copied the following echo "<tr $row_col>"; ....... ..to.. ....... { echo "<td class='productListing-data' align='left'><a href='$this_url'>".$currencies->display_price($this_price, tep_get_tax_rate($this_tax))."</a></td>"; } I then created an if ($this_id2) {} and pasted inside the braces. And then after pasting this i went through and changed all the variables eg. $this_id to $this_id2. Now you may think this is really complicated and messy... and youd be right... but it gets the job done until someone makes it easier :P
×