Jump to content

kgt

Members
  • Content count

    2,878
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by kgt

  1. I already responded to this post: http://forums.oscommerce.com/index.php?sho...019&st=860#
  2. They may accept a discount, and they may call it 'discount'. Otherwise, I can't really know what you mean by 'display'. Display where? If you don't want it processed, then please describe exactly what you're looking for. I'm not sure where you're trying to put this.
  3. That is exactly how you would add the field once you know the name expected by the securehosting API. The fields 'shippingcharge', 'transactiontax', etc are fields you would find in the securehosting API. Your payment gateway will not just take any field willy-nilly. They must be expecting certain fields, and those fields must have certain names. Their API is the document that tells you which fields they accept and what they call them. So before you even look in osCommerce code, you must find out from securehosting whether or not they can accept a discount line, and if they do, what it needs to be called. You can normally find out this information by requesting an API document from them. Their tech support people will know what this means.
  4. The API will tell you what the variable is called. You'll need two variables: the variable name your payment provider expects, and the DCC variable that holds the value you want. Once you find out whether your payment provider can take a discount line (if they can), then I will help you with getting the value that needs to be passed.
  5. If they accept discount lines, you will find mention of it in the API. From there, you need to open the payment module you're using for osCommerce and add to the data that's being sent to securehosting.
  6. That's the same error message.
  7. I haven't looked at it, but I believe this payment module works like most other payment modules. So I think you should be fine.
  8. You must add this code either to your header file or directly to checkout_payment.php: <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?>
  9. Can you describe in more detail what's happening? Also, please list any other contributions you have installed, and double-check the install instructions for checkout_confirmation.php and includes/classes/order.php to make sure you have made the correct changes.
  10. This depends entirely on the payment provider. Most don't have the ability to accept a discount line. You'd need to check the API for your payment provider.
  11. Open includes/modules/order_total/ot_discount_coupon.php and comment out line 14.
  12. You must select your oscommerce database from the list of databases in phpMyAdmin, then run the sql statements.
  13. kgt

    Paypal Issues- Please help

    This thread covers many of the importan paypal settings, as well as some other issues you may or may not be running into: http://forums.oscommerce.com/index.php?sho...184766&st=0 To test paypal, you want to sign up to use a sandbox: https://developer.paypal.com/ Paypal has two types of order display: aggregate and itemized. Aggregate (the setting you are using) displays only the total. Itemized displays items, shipping, tax, and total.
  14. This will allow you to group your products into groups (called "vendors" by this contribution) and assign different shipping methods and costs to each group: http://www.oscommerce.com/community/contributions,4129 This will allow you to set up no shipping for services without affecting normal products.
  15. Most likely you're getting a fatal error. Add these two lines to the top of includes/application_top.php: error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); You should now see an error when you get the checkout_confirmation.php.
  16. The coupons can be used more than once because they are not being logged as used when the order is processed. Please send me your paypal ipn file in a PM or email and I will make sure it looks correct.
  17. The problem you are having is indeed because you have not run the SQL statements. If you cannot get into your Yahoo phpMyAdmin, then I'd suggest reinstalling it (last time I had to work with them, they had a goofy click to install link for phpMyAdmin instead of just providing it).
  18. I can't tell you for sure what you should have, since every server is set up differently. I can tell you if your store works, then it's 99% likely everything is fine. Also, it is unusual, but not impossible for you to have to manually install the changes to httpsdocs as well.
  19. kgt

    Shipping Module Creation Help

    Likely then it's a problem with CURL. I'm not familiar with the fed ex contributions, so I don't know if they try to use the command line or not. If you see it doing an exec(), then trying using the PHP CURL functions instead. http://us3.php.net/curl
  20. This has been answered multiple times in this very thread. The answer is "probably sometime this week, but it depends on how the testing goes." If you would like to speed the process along, please volunteer to test by sending me your email address in either a PM or email.
  21. kgt

    Shipping Module Creation Help

    Those kind of timeouts usually happen when the webserver cannot connect to the URL specified. Check that you have the correct URL, etc.
  22. Revisit the install instructions for the admin section. You're missing the changes made to the catalog box.
  23. Normally you should only need to upload files to http section. If your host requires you to manually also upload files to an https section, I would recommend finding a new host! That would be a nightmare.
  24. This is correct for when your calculating a percentage addition (like tax). You find this number by taking the total percent (100%) and adding the percentage addition (20%): total = 1 * subtotal + .20 * subtotal This is equivalent to: total = subtotal * ( 1 + .20 ) And simplified: total = 1.20 * subtotal If you are given only the total and the percentage addition, then you can calculate the subtotal as: subtotal = total / 1.20 When you're calculating a percentage discount, you need to find the total percent (100%) minus the discount amount (20%). So 100% of the subtotal minus 20% of the subtotal: total = 1 * subtotal - .20 * subtotal This is equivalent to: total = subtotal * ( 1 - .20 ) And simplified: total = subtotal * .80 If you are given only the total and the percentage addition, then you can calculate the subtotal as: subtotal = total / .80 So, 150 * .80 = 120 and 120 / .80 = 150. We can still rewrite both of the above equations. For percent addition: total = 1 * subtotal + .20 * subtotal total = subtotal + .20 * subtotal Thus, given a cart subtotal of 150: total = 150 + .20 * 150 total = 150 + 30 total = 180 This would be for a tax rate of 20%. The inverse would be: total = 1 * subtotal + .20 * subtotal total = subtotal * ( 1 + .20 ) total / ( 1 + .20 ) = subtotal total / 1.20 = subtotal It's the exact same inverse function as I came up with before. For a percent discount: total = 1 * subtotal - .20 * subtotal total = subtotal - .20 * subtotal Thus, given a cart subtotal of 150: total = 150 - .20 * 150 total = 150 - 30 total = 120 And the inverse function is: total = 1 * subtotal - .20 * subtotal total = subtotal * ( 1 - .20 ) total / ( 1 - .20 ) = subtotal total / .80 = subtotal Again, same as the first one.
  25. This contribution takes a percentage discount. So a 20% discount off the price is equivalent to 80% of the price. That is the way it is intended to work. 150 * .20 = 30 150 - 30 = 120 and 150 * .80 = 120
×