Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

kgt

Archived
  • Posts

    2,878
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by kgt

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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 } ?>
  7. 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.
  8. 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.
  9. Open includes/modules/order_total/ot_discount_coupon.php and comment out line 14.
  10. You must select your oscommerce database from the list of databases in phpMyAdmin, then run the sql statements.
  11. This thread covers many of the importan paypal settings, as well as some other issues you may or may not be running into: http://www.oscommerce.com/forums/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.
  12. 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.
  13. 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.
  14. 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.
  15. 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).
  16. 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.
  17. 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
  18. 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.
  19. Those kind of timeouts usually happen when the webserver cannot connect to the URL specified. Check that you have the correct URL, etc.
  20. Revisit the install instructions for the admin section. You're missing the changes made to the catalog box.
  21. 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.
  22. 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.
  23. 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
  24. No. It could be installed in / or /catalog/ or /some/really/long/file/path/ And all three should work exactly the same (providing you have your store set up correctly - basically, if your store works with whatever path system you have, this contribution should work fine as well).
×
×
  • Create New...