Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

kenfeyl

Archived
  • Posts

    4
  • Joined

  • Last visited

Posts posted by kenfeyl

  1. kenfeyl,

     

    Would love to see your "hack." Sounds like great work.

    Are you grabbing real rates from e.g. UPS?

    Does this capture all the attributes? Like size or color.

     

    Again, please post your work somewhere. A lot of us would really appreciate it.

     

    Essentially, I copied pieces from the various checkout_*.php steps, so that the "View Cart" page displays all the data on the order summary on checkout_payment.php, albeit with the ability to add and subtract items from the cart. So yes, this total includes all attributes and shipping. Although it does not display tax in this summary (because it doesn't know where you live), in the background it loads your tax zones and rates and keeps them in the XML sent to Google if the user checks out. The tax part works only for U.S. states.

     

    My current version calls out to $shipping->cheapest() to get the cheapest of all the shipping modules you've enabled (this is the method labelled "Best Way" in the standard osCommerce checkout_shipping.php). That is just my personal hack because I have two shipping modules from which the user will always prefer the cheaper.

     

    One thing I would like to do before packaging up this module is to add an Ajax shipping selection on the "View Cart" page, so that your user is allowed to select a shipping method before proceeding to Google, rather than just choosing the cheapest. This part will probably take me another few days as I know zero Ajax at the moment and Ajax is necessary since the XML will have to be repopulated after the shipping choice.

     

    The final step is the order and customer processing. Behind the scenes it adds rows to customers and orders once Google calls home via the callback API.

     

    If you want to get an idea of what's happening, and I'm embarassed to give out the link because you'll see that my site looks stock to the point of absurdity (my gf is working on a new template), check out http://www.officialclassicgames.com. Add an item to your cart, and then click on either "View Cart" or "Checkout." If you proceed to Google, you need to log in to your Google account before it actually populates the shipping and tax costs. But rest assured those came straight from my shipping modules and tax zones.

     

    The only real disconnect of my hack to the osCommerce world is that I'm short-circuiting the concept of registered customers. My customers no longer log in -- they simply fill up their cart and then proceed to Google. Tell me what you guys think. I know it's a bit radical to eliminate logins -- what do you guys think? Also, my hacks do make Google the only means of payment.

  2. Hey guys,

     

    I hacked up abbat's code to compute the cheapest shipping method and pass it on to Google as a default-flat-rate. It does the same for tax. In keeping with Google's mandate that no login be required before offering Google Checkout, I stuck the whole order summary on the "View Shopping Cart" page, along with the Google Checkout button. The tax is hidden on this summary because we don't have the user's location, but the tax configuration details are read from OSc's Tax Zones and Tax Rates and passed on to Google Checkout. I then configured Checkout's Callback URL to point to a script that collects order and customer information from Google and sticks it into OSc's order and customer tables.

     

    All in all, I'm pretty happy with the hacks -- my site no longer requires users to log in, and an entire purchase takes two clicks: one on the Google Checkout button on my "View Shopping Cart" page, and one on the actual Google Checkout page after the user has entered his information.

     

    What are your thoughts? Is there documentation on how I could wrap up a module with this stuff?

     

    Hey man,

     

    This contrib is small. Very small. You're right. It does not include everything it should (and should it at all?)

    Google API supports everything, besides the Tax, shipping - which is VERY EASY TO ADD - it also support order processing, status, notifications etc. Shipping and taxes are the simpe thing - same simple as top build the google shopping cart.

     

    40 lines of code - you're right. I can tell with 100% that adding shipping and taxes will not take more than 40 lines of code...

     

    If you're so cool, lets take a look at YOUR CODE - I can BET I fit in 40 lines by adding shipping and taxes to this contrib - will you fit in this 40 lines? Common, let us see what you can do! This will be the Google Checkout v 1.5 - with shipping and taxes! I only assume those 40 lines will not be more than 255 chars :):):)

     

    So, pleople, let us wait for his code? How do you think?

     

    About those 2-3 months - I'm planning to include everything Google API allows, including order processing and notification techniques. I'm also planning to redo an API a little so tose guys who does not have curl installed could use curl from comman line. The same with DOM XML library, which is currently for php < 5. And most of new hosting companies have php > 5 - so why does not allow to use Google checkout for them?

  3. Hi everyone,

     

    Thanks for all the excellent work on this module. Unfortunately, I'm having a similar problem.

     

    Customers can successfully order from my site using the IPN module. However, while orders do show up in the Customers/Orders tab, no notifications show up in Customers/PayPal IPN. Also, all orders' statuses always remain at "Pending" despite my getting ridiculous numbers of IPN update e-mails. In Customers/Orders, the status never updates, even when I complete payment or refund the order in PayPal. After clicking on the order in Customers/Orders, it says:

     

    Transaction Activity

    Date Status Details Action Gross Fee Net Amount

    No PayPal Transaction Information Available (f702c916acd790a801a4d945c0179801)

     

    Any ideas on how I can begin to debug this?

     

    Hi Terra,

     

    Thank you very much for helping to support this contribution :thumbsup: I am having some similar problem with the order status not updating.

     

    From the questions you have asked others:

     

    The order is "prepared" in the admin section at checkout_confirmation.

    My IPN and redirects are turned off in my paypal account.

    I adjusted the location of the ipn.php file in paypal_ipn.php as I am running on a test site.

    My 'id=""' is empty on page source after the payment is made.

    My admin is updated on return from paypal but not on payment while still on paypal.

    The ordernumber is recorded on both paypal emails and checkout_process emails.

    I have implemented the "letter" fix for "this invoice has already been paid" problem, and this is working correctly as the paypal email retains the letter before the invoice# and the checkout_process email has the letter stripped.

    I have download controller installed and have transfered the one line :

    'last_modified' => 'now()',

    that is changed in checkout_process.php over to paypal_ipn.php.

    The order is properly displaying in the customers account, it just never changes from "preparing"!

     

    I do not get the INVALID email.

     

    So, everything appears to be working up to a point. I am just not sure which point. I also need help with how to add emails at various points in the ipn.php to debug the location of the failure.

     

    Thanks again for your support :) :)

     

    Sheri

  4. PREFACE: I meant to post this as a reply to the IPN support thread. Unfortunately, I erred and it seems I cannot correct it. If possible, please relocate my message there. Thank you.

     

    Hi everyone,

     

    Thanks for all the excellent work on this module. Unfortunately, I'm having a weird problem.

     

    Customers can successfully order from my site using the IPN module. However, while orders do show up in the Customers/Orders tab, no notifications show up in Customers/PayPal IPN. Also, all orders' statuses always remain at "Status: Pending" despite my getting ridiculous numbers of IPN update e-mails. In Customers/Orders, the status never updates, even when I complete payment or refund the order in PayPal. After clicking on the order in Customers/Orders, it says:

     

    Transaction Activity

    Date Status Details Action Gross Fee Net Amount

    No PayPal Transaction Information Available (f702c916acd790a801a4d945c0179801)

     

    Any ideas on how I can begin to debug this?

×
×
  • Create New...