Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2008
    Posts
    4
    Plugin Contributions
    0

    Idea or Suggestion Instructions: How to make shipping options work with google

    WOW HERE IT IS! I found this digging through crap elsewhere

    When you navigate to google checkout as a customer, it would not follow the pricing rules-- it would allow free shipping for any order regardless of price.

    Here’s the Zen Cart Google Checkout Solution:

    In the googlecheckout/gcheckout.php file, find these two lines: (line numbers 533 & 534)

    $price = $quote[’methods’][0][’cost’];
    $shipping_price = $currencies->get_value(DEFAULT_CURRENCY) * ($price>=0?$price:0);

    replace them with:

    if ($quote) {
    $price = $quote[’methods’][0][’cost’];
    $shipping_price = $currencies->get_value(DEFAULT_CURRENCY) * ($price>=0?$price:0);
    }else{
    unset($googlepayment->mc_shipping_methods[$key]) ;
    continue ;
    }

    This should fix the other options in freeshipper as well - items, and weight, since it performs the same way (though I haven’t fully tested it in every possible combination or onfiguration). It should also fix any other shipping methods that just don’t show up based on some sort of option configuration.

    Hope this helps someone else!

    Kevin

    *MOD PLEASE STICKY THIS*

  2. #2
    Join Date
    May 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    wow.. i really wish i would have found it sooner. I just spend the whole night hacking this thing and came up with something similar..posted it here:


    http://www.zen-cart.com/forum/showthread.php?p=656187

    did a quick search to see if anyone else is looking for it and found your thread which seems to be cleaner code and it solves other potential problems.

    thanks!

  3. #3
    Join Date
    Dec 2008
    Posts
    81
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    MarcRTHCO,

    I installed your fix and it seems to work but I think I may have found a bug.

    (My home state requires sales tax on shipping if the buyer is in the same state.) When I set the free shipping option - Tax Class to "Taxable Goods" then this fix stops working. If I set Tax Class back to "none" then it works again.

    I am doing this in the Admin > Modules > Shipping Modules > Free Shipping Options > Tax Class.

    Thanks for your help.

  4. #4
    Join Date
    Aug 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    Im using the order total module to do my free shipping on order totals over £15 and this mod just makes my shipping free with all google checkout orders irrelevant of the price. AHHHHH!! still can fix this!

  5. #5
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    This still won't work from me. I have the shipping insurance mod and this automatically adds the shipping insurance on but with a value of £0.00 which to a customer would look like they have free insurance!!!

  6. #6
    Join Date
    Oct 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    Quote Originally Posted by gobrinton View Post
    MarcRTHCO,

    I installed your fix and it seems to work but I think I may have found a bug.

    (My home state requires sales tax on shipping if the buyer is in the same state.) When I set the free shipping option - Tax Class to "Taxable Goods" then this fix stops working. If I set Tax Class back to "none" then it works again.

    I am doing this in the Admin > Modules > Shipping Modules > Free Shipping Options > Tax Class.

    Thanks for your help.

    I have this same exact problem. Has anyone found a fix for this?

    Nancy

  7. #7
    Join Date
    May 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    I tried this, and I am STILL getting the "FreeOptions = $0" choice, along with USPS Media, Parcel and Express all at $1. How can I resolve this?

  8. #8
    Join Date
    Jul 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Instructions: How to make shipping options work with google

    Quote Originally Posted by MarcRTHCO View Post
    WOW HERE IT IS! I found this digging through crap elsewhere

    When you navigate to google checkout as a customer, it would not follow the pricing rules-- it would allow free shipping for any order regardless of price.

    Here’s the Zen Cart Google Checkout Solution:

    In the googlecheckout/gcheckout.php file, find these two lines: (line numbers 533 & 534)

    $price = $quote[’methods’][0][’cost’];
    $shipping_price = $currencies->get_value(DEFAULT_CURRENCY) * ($price>=0?$price:0);

    replace them with:

    if ($quote) {
    $price = $quote[’methods’][0][’cost’];
    $shipping_price = $currencies->get_value(DEFAULT_CURRENCY) * ($price>=0?$price:0);
    }else{
    unset($googlepayment->mc_shipping_methods[$key]) ;
    continue ;
    }

    This should fix the other options in freeshipper as well - items, and weight, since it performs the same way (though I haven’t fully tested it in every possible combination or onfiguration). It should also fix any other shipping methods that just don’t show up based on some sort of option configuration.

    Hope this helps someone else!

    Kevin

    *MOD PLEASE STICKY THIS*
    i did this and still no shipping being added to google checkout , i have uk google checkout and i have shipping methods_uk.php

 

 

Similar Threads

  1. How to make UMLAUTS work with ZenCart?
    By kairen in forum Addon Language Packs
    Replies: 11
    Last Post: 8 Aug 2009, 09:38 PM
  2. Google checkout doesn't work with shipping information
    By edwardtilbury in forum Addon Payment Modules
    Replies: 0
    Last Post: 26 Feb 2009, 10:04 PM
  3. Google Checkout wont work with Shipping
    By alcofrolic in forum Addon Payment Modules
    Replies: 0
    Last Post: 12 Feb 2009, 11:43 PM
  4. Replies: 3
    Last Post: 22 Jul 2008, 12:01 AM
  5. I cannot get my Shipping to work with Google Check out
    By fire1online in forum Addon Payment Modules
    Replies: 0
    Last Post: 1 Jun 2007, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR