Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

speed777

Pioneers
  • Posts

    245
  • Joined

  • Last visited

Posts posted by speed777

  1. Here is mine:

     

    define('HTTP_SERVER', 'http://www.provatostore.com');

    define('HTTPS_SERVER', 'https://provatostore.com');

    define('ENABLE_SSL', false); <- No SSL is being used at this time.

    define('HTTP_COOKIE_DOMAIN', 'www.provatostore.com');

    define('HTTPS_COOKIE_DOMAIN', 'provatostore.com');

    define('HTTP_COOKIE_PATH', '/home/'); <- These must be set to home, since this is my catalog directory.

    define('HTTPS_COOKIE_PATH', '/home/'); <- if I make them '/' then the entire site breaks.

    define('DIR_WS_HTTP_CATALOG', '/home/');

    define('DIR_WS_HTTPS_CATALOG', '/home/');

     

    The path to catalog is: http//www.provatostore.com/home/

    I'm going to run a dummy purchase through, could you leave it on sandbox?

  2. Thanks again for posting. Here is what I did:

     

    3) Took a look at the mod you recommended. This seems to be to empty the cart when the continue shopping URL is gc_return.php. Mine is set to checkout_success.php, and the cart empties okay, I think. The problem is that it shows the empty cart instead of the Thank You text, etc.

     

    Thanks again for your time.

    3. For some reason, the session is lost when the user returns to your site and therefore isn't logged in, that is why the page returns to shopping_cart.php instead of checkout_success.php. Post your includes/configure.php file without the database info. Here is the info that I need to see:

    // Define the webserver and path parameters

    // * DIR_FS_* = Filesystem directories (local/physical)

    // * DIR_WS_* = Webserver directories (virtual/URL)

    define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

    define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be empty for productive servers

    define('ENABLE_SSL', true); // secure webserver for checkout procedure?

    define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

    define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');

    define('HTTP_COOKIE_PATH', '/catalog/');

    define('HTTPS_COOKIE_PATH', '/catalog/');

    define('DIR_WS_HTTP_CATALOG', '/catalog/');

    define('DIR_WS_HTTPS_CATALOG', '/catalog/');

  3. Okay, follow the format of the parameters:

     

    define('HTTP_COOKIE_DOMAIN', 'www.eofficesupply.biz');

    define('HTTP_MAIL_DOMAIN', 'eofficesupply.biz');

    define('HTTPS_COOKIE_DOMAIN', 'www.eofficesupply.biz');

    define('HTTP_COOKIE_PATH', '/');

    define('HTTPS_COOKIE_PATH', '/');

    define('DIR_WS_HTTP_CATALOG', '/');

    define('DIR_WS_HTTPS_CATALOG', '/');

     

    Do you have a SSL certificate? If so, then:

    define('ENABLE_SSL', 'true');

    If you're using a shared certificate, you have to enter the name of the webserver in:

    define('HTTPS_SERVER',

    SSL

  4. Your /public_html/includes/configure.php file.

    Okay, follow the format of the parameters:

     

    define('HTTP_COOKIE_DOMAIN', 'www.eofficesupply.biz');

    define('HTTP_MAIL_DOMAIN', 'eofficesupply.biz');

    define('HTTPS_COOKIE_DOMAIN', 'www.eofficesupply.biz');

    define('HTTP_COOKIE_PATH', '/');

    define('HTTPS_COOKIE_PATH', '/');

    define('DIR_WS_HTTP_CATALOG', '/');

    define('DIR_WS_HTTPS_CATALOG', '/');

     

    Do you have a SSL certificate? If so, then:

    define('ENABLE_SSL', 'true');

    If you're using a shared certificate, you have to enter the name of the webserver in:

    define('HTTPS_SERVER',

  5. Thanks again for posting. Here is what I did:

     

    1) I read that set of posts. My implementation is definitely CGI. I configured .htaccess already but turned off that setting when it id did not work correctly with that setting either and I found the description language in the admin panel somewhat ambiguous. So after reading the posts, I commented out the $Gresponse-HttpAuthentication(); code and turned .httaccess TRUE setting back on in the admin panel.

    2) The only one that was TRUE was one that was to block spiders. I changed it to FALSE. Could no find the references in the google forum.

    3) Took a look at the mod you recommended. This seems to be to empty the cart when the continue shopping URL is gc_return.php. Mine is set to checkout_success.php, and the cart empties okay, I think. The problem is that it shows the empty cart instead of the Thank You text, etc.

     

    Thanks again for your time.

    1. You shouldn't have to comment out $Gresponse-HttpAuthentication(); I didn't and it works fine.

    2. Its Force Cookie Use, Check User Agent and Check IP Address that interfere with googlecheckout.

    3. For some reason, the session is lost when the user returns to your site and therefore isn't logged in, that is why the page returns to shopping_cart.php instead of checkout_success.php.

  6. Ahh, so they are created automatically... Yeah, that will be nice to see that working...

     

    Ok, here is my configure.php. What other files would be helpful to see?

     

    <?php
     define('HTTP_SERVER', 'http://www.provatostore.com');
     define('HTTP_CATALOG_SERVER', 'http://www.provatostore.com');
     define('HTTPS_CATALOG_SERVER', 'http://www.provatostore.com');
     define('ENABLE_SSL_CATALOG', 'false');
     define('DIR_FS_DOCUMENT_ROOT', '/home/sites/public_html/provatostore/home/');
     define('DIR_WS_ADMIN', '/home/admin/');
     define('DIR_FS_ADMIN', '/home/sites/public_html/provatostore/home/admin/');
     define('DIR_WS_CATALOG', '/home/');
     define('DIR_FS_CATALOG', '/home/sites/public_html/provatostore/home/');
     define('DIR_WS_IMAGES', 'images/');
     define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
     define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
     define('DIR_WS_INCLUDES', 'includes/');
     define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
     define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
     define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
     define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
     define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
     define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
     define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
     define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
     define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
     define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    
     define('DB_SERVER', '*****');
     define('DB_SERVER_USERNAME', '*****');
     define('DB_SERVER_PASSWORD', '*****');
     define('DB_DATABASE', '*****');
     define('USE_PCONNECT', 'false');
     define('STORE_SESSIONS', 'mysql');
    ?>

    Your /public_html/includes/configure.php file.

  7. I'm thinking the issue of sending the information back may be that it does not work effectively within the Sandbox. Reason being, sending the information back to OSC is currently not secure. Google may be attempting to do this only via an SSL secured transaction. Just a thought, I could be completely wrong...

     

    Regarding the issue of requiring a login/signup before checking out, does anyone know if that is possible?

    Sandbox works with both secured and unsecured transactions, post your config files leaving out the important info like database passwords, maybe its a cookies issue. When you get the module to work, you will see that customer accounts are created automatically in OSC Admin when they checkout using google checkout.

  8. Thank you for your reply. I will post in shipping as you said regarding the first issue. Regarding the second issue, google is still notifying me that it is not able to post the transaction back to OSC. The error in the inegration area is as follows:

     

    We encountered an error trying to access your server at https://www.deflixious.com/googlecheckout/r...onsehandler.php -- the error we got is Send failed with code: 401. Response body was: Failed to Get Basic Authentication Headers

     

    Could you share a little more detail about Configure/Sessions? Where do I set this? Thanks

     

    Thanks for the tip about your mod. I will have a look and install it.

     

    1.Failed to get basic authentication headers

    2.Could you share a little more detail about Configure/Sessions? Where do I set this?- You need to have sessions for a customer to buy a product. You set it in the OSCommerce Administration panel under Configuration. Also you can find information at the google forum.

  9. No errors in the Google Checkout Logs. They are both empty.

     

    Server Error Log shows this:

    [09-Mar-2009 08:52:19] PHP Warning: Variable passed to each() is not an array or object in /home/sites/public_html/provatostore/home/admin/includes/classes/object_info.php on line 18

     

    When I changed the Google Checkout icon to small, all i changed was 'large' to 'small' no other code was touched.

    What do you see in object_info.php on line 18?

  10. QUESTION: Is there a way to force Customers to either login, or signup before being able to checkout with Google Checkout? Google Checkout is our sole payment option.

     

    ISSUE: Currently, even when a customer creates an account in my store, adds products to the cart, and checks-out with Google. The order is not placed within the Admin. However, when they return to my site, it does give the SUCCESS screen (if they are logged in).

     

    NOTES:

    1. All session's within the Configuration/Sessions is set to false.

    2. No options are selected within the Integration section of Google Checkout.

    3. The orders are working properly within Google Checkout.

     

    Thank you in advance for any assistance![/quote

    1. All session's within the Configuration/Sessions is set to false. - Apparently, something is still conflicting with the responsehandler. I'll have to think about that one. Are you getting any error messages in the server error log & your Google integration error log? The googlecheckout error log may not record it, if its not even getting in the Admin. When you changed the google icon to small, did you move the "default:"? Or how did you do that?

  11. Well, I got it fixed...

     

    Not sure why this is... But I edited catalog/googlecheckout/library/googlecart.php by changing the size of the google checkout image used to "small" instead of "large"...

     

    Once I made this change and uploaded the new file. The small Google Checkout icon appeared!

     

    Strange, and it bugs me that I didn't figure out why it was displaying that Buy Now button.

     

    BUT ALL IS WELL! ALL IS WORKING! Thank you VERY much so Speed777! You are da'man!

    Google checkout is sometimes hard to get the bugs worked out but once you do it works like a champ.

  12. Ok...

     

    So... I completely deleted everything. The entire store. Database, everything.

     

    I reinstalled everything from scratch. Including the Google Checkout addon.

     

    Now, everything seems to be working the way it should.

     

    Everything is processing properly, it is accessing Google Checkout without any problems. Etc etc etc...

     

    The only thing now. Is that it says "Buy Now" instead of "Google Checkout".

     

    Like I said, this a complete FRESH install of everything...

     

    Could someone look at this: http://www.provatostore.com/home/ and maybe shed some light on why it would say "Buy Now" instead of "Google Checkout"? Is it a setting within Google Checkout? Is it a setting within the Admin that I am missing?

     

    Thank you in advance..

    I don't see Buy Now on http://www.provatostore.com/home/, I see Please Use Google Checkout on http://www.provatostore.com/home/shopping_cart.php. Looks fine to me.

  13. Okay, I completed an order with google checkout. Nothing shows up in the admin panel on OSC. Charged default shipping. More "Failed to Get Basic Authentication Headers" in the integration log.

     

    Google checkout processed the order okay and emailed the customer a receipt and me a reciept. So the problems remain:

     

    1) Default shipping - USPS calculation not making it to google.com

    2) Google not posting back to oscommerce.

    3) Continue shopping which is set for checkout_success.php worked, but OSC just dumped me to the empty cart. No thank you page, etc.?

     

    Pardon me that I am a noob. Any help is much appreciated. Even if some one can just tell me where people get support for this mod, that would be great.

    I can help with some things related to google checkout but you're going to have to go to Shipping Modules and ask there for help on the USPS part. I'm not familiar with USPS.

    2) Google not posting back to oscommerce.- Set your Configuration/Sessions all to false for testing purposes now. Some conflict with googlecheckout and don't allow posting back to oscommerce.

    3) Continue shopping which is set for checkout_success.php worked, but OSC just dumped me to the empty cart. No thank you page, etc.?-Add the contribution that I made called Empty Cart After Transaction.

  14. Ok - one correction. I found the integration log after all. Here is what it says:

     

    We timed out waiting for your server at https://www.xxxx.com/googlecheckout/responsehandler.php -- the error we got is: Read timed out. Your server must respond faster to merchant calculation callback requests.

     

    So if that is the problem, how do I speed it up or extend the timeout period?

    That's a overload problem with the server you happen to use, you have no direct control over that.

  15. I should say when you set Force Cookies Use to False, you will have the Oscid problem. The Oscid will be appended to the product in the bar above, this causes security problems with people being able to view another account. Installing Jack's Ultimate SEO contribution fixes this.

  16. As well as the problem of the "buy now" button showing up instead of the "Google Checkout" button...

     

    After making all the changes to the directory security, I am still getting the pop up box asking for a username and password when trying to view:

     

    http://www.provatostore.com/googlecheckout...onsehandler.php

     

    Is there anything else, in terms of File Permissions that I am missing?

     

    1. Use this tool encode your keys & ID's: http://demo.globant.com/~brovagnati/tools/htaccess.php

    2. Put the results in your htapasswd file

    3. Make an htaccess file which points to the htapasswd file making sure that its above the public_html, not in the googlecheckout directory. Place the htaccess file in the google checkout directory.

    4. If you already protected your googlecheckout directory before in the server panel, disable the protection, this is a manual installation. I have it disabled in mine.

    5. Set .htaccess Basic Authentication Mode to true on the googlecheckout module.

    6. Set the following in Configuration/Sessions:

     

    Force Cookie Use /False

    Check SSL Session ID /True

    Check User Agent /False

    Check IP Address /False

    Prevent Spider Sessions /True

    Recreate Session /True

  17. Yep, this is what I have:

     

    <tr>

    <td>

    <?php

    // ** GOOGLE CHECKOUT **

    // Checks if the Google Checkout payment module has been enabled and if so

    // includes gcheckout.php to add the Checkout button to the page

    if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {

    include_once('googlecheckout/gcheckout.php');

    }

    // ** END GOOGLE CHECKOUT **

    ?>

    </td>

    </tr>

     

     

    You can see that the Buy Now button is showing up on the Cart, http://www.provatostore.com

     

    I'm so lost. This happened once I added both the Sandbox and Live Merchant ID's and Key's...

     

    Before, I had only had the Sandbox ID's/Key present in both the Admin/Module settings and the htaccess.

     

    You have this in your shopping_cart.php file which is the source of the Buy Now button:

     

    height="46" width="180" /></form></div><div align="center"><a href="java script:void(window.open('http://checkout.google.com/seller/what_is_google_checkout.html','whatischeckout','scrollbars=0,resizable=1,directories=0,height=250,width=400'));" onmouseover="return window.status = 'What is Google Checkout?'" onmouseout="return window.status = ''"><font size="-2">What is Google Checkout?</font></a></div></div> <div style="font-size:11px; color: red; width: 180px; text-align: center;"> * GC is set to use SANDBOX. Order will be processed but NOT charged.</div></div>

     

    <!-- ** END GOOGLE CHECKOUT ** --> </td>

     

    Try substituting the proper code.

  18. Ok, I completed these steps. And the .htpasswd file exists with the correct information.

     

    However, now on the Shopping Cart, the Google Icon has changed to "Buy Now" instead of "Google Checkout"... ???

    This is what you should have in your shopping_cart.php:

     

    <tr>

    <td>

    <?php

    // ** GOOGLE CHECKOUT **

    // Checks if the Google Checkout payment module has been enabled and if so

    // includes gcheckout.php to add the Checkout button to the page

    if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {

    include_once('googlecheckout/gcheckout.php');

    }

    // ** END GOOGLE CHECKOUT **

    ?>

    </td>

    </tr>

  19. I am a bit confused with this as well. When I try and access: http://<url-sox ite-url>/googlecheckout/responsehandler.php

     

     

    I get prompted for:

    A username and password are being requested by http://<url-site-url>. The site says: "Google checkout Basic Authentication"

     

    I have setup the .htaccess file with the correct Sandbox ID and Merch Key.

    You have to enter your Sandbox Merchant ID & Sandbox Merchant Key in the googlecheckout module, as well the Production Merchant ID & Production Key, then you set up an .htpasswd file with the same ID's. If you don't know how to do this, go to your server panel and choose 'Password Protect Directories'. Enter the same information as in the googlecheckout module using the merchant & sandbox ID's as the usernames and the Keys as the passwords. You want to make sure that not accessible to the public too, not in your google checkout folder. If you set it up in your server panel, this will be done automatically for you.

  20. hi,

     

    I have managed to install the Level 2 contribution of Google Checkout. I have been through the instructions and made all the required amendments, but I seem to have an issue in the admin section where Google Checkout is not listed in Payment Modules. Where have I gone wrong?

     

    Please could somebody help.

     

    Thanks in advance.

    Is googlecheckout.php listed in includes/modules/payment?

  21. Ok, I now have a Google Check Icon...

     

    But, it doesn't do anything when you click on it?

     

    I would like to use Google Checkout as my sole payment option, so if I use your Google Checkout as Sole Payment method add-on, if I replace my shopping_cart.php, will it blow out my design? (sorry, novice at OSC here)

     

    Where you place the code is important, the button will not work inside tables, I think. Move the code outside of the table. As for the design, I don't think it will matter but first backup the files to make sure. You may have to use a program like Winmerge, if you're not already. Nice design by the way.

×
×
  • Create New...