Jump to content

arm1tage

Members
  • Content count

    39
  • Joined

  • Last visited

Everything posted by arm1tage

  1. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    Thanks to an inspired tip from a member (IlColosso), the 2Checkout V2 problem has been solved. The oscid session generated in the URL was preventing the passback parameters from getting back to osc. The solution is to force cookies, however this does not work on sites with shared-SSL certs. The demo mode bug has also been fixed, and I have updated the installation instructions. Hopefully it will be easier to get working now. Download the updated contrib at: http://www.oscommerce.com/community/contributions,904 Please reply here if it works or doesn't work. Thanks!
  2. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    If you disable force cookies, 2co will not pass back the order to osc when the customer has cookies disabled. So you will get a payment, but you won't know what it's for!
  3. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    IlColosso: if you comment out the 3 lines then the product info to enabled the itemized cart will not be passed to 2CO. Only the product name is passed, which is required by 2CO's new rules. You can comment out by adding // to the beginning of each line, or just delete it. k2chris1983: if you have a shared-SSL site you will have to use the non-SSL instructions effectively dsiabling yor SSL, otherwise force cookie use will not work. try it and let me know how it goes.
  4. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    New pm2checkout v2.1 available. http://www.oscommerce.com/community/contributions,904 This release adds most of the needed functionality like product description and shipping cost. Some image files have been added to look nice like Paypal_IPN so make sure to update all your files. The install.txt file says c_description is blank, but that is wrong so please ignore known issue #2! Changes: -shipping cost is passed to 2CO -changed 'price' variable to 'final_price' -c_description is passed properly, minues HTML tags. Length under 255 chars goes into short description, 255+ goes into long description. -added credit card logos on checkout a'la Paypal IPN -added instructions on enabling/disabling itemized cart KNOWN ISSUES: 1. 'Force Cookie Use' required. Sites using a shared-SSL cert will not work. Most problems with the contrib are due to cookies not being set up properly. I do not know of any workaround for this. 2. Although the c_prod and related parameters enable auto product creation on 2CO, currently c_description fields are blank. I plan to add this in the future. [edit: WRONG! It's already added!] 3. Tangible goods must be set to YES or NO. Mixed tangible/intangible carts are not supported, although integration with a downloadable items contrib is certainly possible. 4. Only products already in 2CO's database will show up in the itemized list on 2CO's "Order Detail" page. By default, products are auto-created in 2CO's dc when purchased in a LIVE transaction. You want either ALL or NONE of your products to be in the db. Otherwise if the customer buys 2 items only 1 may be displayed. Details below.
  5. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    Only products already in 2CO's database will show up in the itemized list on 2CO's "Order Detail" page. By default, products are auto-created in 2CO's dc when purchased in a LIVE transaction. You want either ALL or NONE of your products to be in the db. Otherwise if the customer buys 2 items only 1 may be displayed. To ENABLE an itemized cart: Use Easy Populate to upload your products to 2CO in .CSV format. (http://www.oscommerce.com/community/contributions,500) Then login to 2CO, and click Set Up Products->Upload New Products. Follow the instructions and convert the product list to 2CO's format. To DISABLE itemized cart: in /catalog/includes/modules/payment/pm2checkout.php: comment out lines with c_name, c_price, and c_description parameters.
  6. arm1tage

    2Checkout V2 Instructions

    Great work Mark! Easy Populate is the best way to upload all your inventory to 2CO without buying it. Do you mind if I add your instructions to the next update? One other thing, if you want to import the actual product description, here's is the code for that! This strips out HTML and only leaves line breaks. Descriptions under 255 chars go into the short desciprtion box. Anything longer goes into the long description. replace $process_button_string .= tep_draw_hidden_field('c_description_' . $i, $order->products[$i]['name']); // not sure how to input the description here with // format product description $product_id = $order->products[$i]['id']; $product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $languages_id . "'"); $product_description = tep_db_fetch_array($product_query); $text = $product_description['products_description']; $text = strip_tags($text); $text = nl2br($text); $text = str_replace("<br />","<br>",$text); $process_button_string .= tep_draw_hidden_field('c_description_' . $i, $text);
  7. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    As long as the items are in 2CO's db you will see the itemized list, regardless of test or live transaction.
  8. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    Mark, You are not alone, Farrukh and I had the same problem today. Then it mysteriously went away. It's been extremely frustrating to troubleshoot. However, some good did come of it. I've learned the c_prod and associated variables have to be passed once in a LIVE transaction so they are entered into 2CO's database, before they show up in the cart details. So for those of you that do not see the itemized list, it is because you have not had a live sale of that item yet. One way around this is to upload your inventory in a .CSV file. You can find out how to do this by logging into 2CO->Set Up Products->Upload New Products If it is inconvenient to add the entire inventory, then it's best to comment out the c_name, c_price, and c_description lines so 2CO does not try auto product creation. This will disable itemized listing, but that is preferable to having only some items listed and others not! On a side note, if you want to add the shipping cost line to your checkout, add this line: $process_button_string .= tep_draw_hidden_field('sh_cost', $shipping['cost']); right above $process_button_string .= tep_draw_hidden_field('x_login', MODULE_PAYMENT_2CHECKOUT_LOGIN) .
  9. arm1tage

    PayPal IPN problem with bogus orders

    When you get a Paypal order you should look on the right where the "edit" "delete" "invoice" "packing slip" buttons are. A successful order will say "Status: Completed" if you have received the payment. Otherwise the status will be blank.
  10. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    If the customer has cookies disabled they will not be able to login or purchase anything. Since almost 100% of e-commerce sites use cookies this is not a big deal and adds security vs SID. You can bet if someone has a Paypal account they will have cookies enabled.
  11. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    This is a problem with 2CO today and not anything wrong with the contrib.
  12. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    I am getting the same thing today. Earlier if I bought 3 items only 2 were listed. Now the itemized list is gone totally. I have heard that 2CO is updating and changing some things so expect some weirdness.
  13. arm1tage

    2checkout v2 on OSC 2.2

    try changing define('HTTP_COOKIE_DOMAIN', 'www.deguate.com'); define('HTTPS_COOKIE_DOMAIN', 'www.deguate.com'); to define('HTTP_COOKIE_DOMAIN', '.deguate.com'); define('HTTPS_COOKIE_DOMAIN', '.deguate.com'); since your URL does not have the www prefix.
  14. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    With a working contrib, you will see the Order Detail page with a line by line listing of items in your cart. HOWEVER, when you get the confirmation email from 2CO, there will be no line by line listing, ONLY the unique cart number.
  15. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    freee: yes shipping is calculated by osc and has nothing to do with 2checkout. their new requirement is that each order specify the details of each item sold using the c_prod parameter. if you do not see the product details in your cart and you have updated to the latest version (v2.0c), then i don't know what the problem is. you can check out my LIVE site at http://www.motorbags.com to see the contrib in action. get up to the Order Details screen and see the line by line product list without entering any cc info.
  16. arm1tage

    2checkout v2 on OSC 2.2

    since you have an SSL store you need to define('HTTPS_COOKIE_PATH', '/');
  17. arm1tage

    2checkout v2 on OSC 2.2

    Actually the email was due to ANOTHER typo I made in v2.0b, which has been fixed in today's version. Sorry! I was operating on 3 hours sleep yesterday!
  18. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    Eric Webster from 2CO has been kind enough to point out some errors in the contrib, which I have fixed. Today's v2.0c should fix all c_prod related errors. Known issues: -does not work with downloadable goods -reported CAD currency problem (i have not tested this) Please try out the new version and let me know. And sorry for all the errors - I am not a programmer, just deperate to get my shop working. http://www.oscommerce.com/community/contributions,904
  19. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    This might mean those files have incorrect syntax or extra spaces at the beginning or end of the file. Make sure the editor you use does not add any white spaces. None of the files in the contrib should cause this.
  20. arm1tage

    2checkout v2 on OSC 2.2

    Yes that method works as long as Direct Return is set to No, but then they have to click the 'Finalize Order' button. If it is set to Yes then the customer will not be returned to the site. I prefer setting Direct Return to Yes and directing to pm2checkout_process.php since the customer does not have to click anything to be redirected.
  21. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    It looks as if you did not use the updated pm2checkout.php. Try replacing your /includes/modules/payment/pm2checkout.php with the latest version (2.0b)
  22. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    yes this is normal. i have submitted asked 2co about this, but i haven't heard back yet. hopefully they will update their order email to show the details like osc's email.
  23. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    Sorry there is a typo in the contrib. I will upload a new pm2checkout.php Thanks for catching it.
  24. arm1tage

    2Checkout V2 WORKING with OSC 2.2MS2!

    DOH! I need to get more sleep. Just realized I read 2Checkout's parameter syntax incorrectly. It's a simple fix to get the detailed order info working. This means the c_prod and id_type info will be submitted properly, so please update to the new pm2checkout.php for compliance. Check the contrib section for the updated file. If you have it installed already just replace your /catalog/includes/modules/playments/pm2checkout.php
  25. arm1tage

    2checkout v2 on OSC 2.2

    Just to clarify, a real credit card is not required. Any random 15 or 16 digit number should work.
×