Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

arm1tage

Archived
  • Posts

    39
  • Joined

  • Last visited

Everything posted by arm1tage

  1. 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!
  2. 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.
  3. 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.
  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. 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.
  5. 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);
  6. As long as the items are in 2CO's db you will see the itemized list, regardless of test or live transaction.
  7. 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) .
  8. 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.
  9. 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.
  10. This is a problem with 2CO today and not anything wrong with the contrib.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. since you have an SSL store you need to define('HTTPS_COOKIE_PATH', '/');
  16. 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!
  17. 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
  18. 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.
  19. 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.
  20. 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)
  21. 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.
  22. Sorry there is a typo in the contrib. I will upload a new pm2checkout.php Thanks for catching it.
  23. 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
  24. Just to clarify, a real credit card is not required. Any random 15 or 16 digit number should work.
  25. Yes direct return should now work.
×
×
  • Create New...