Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Checkout


aftabn10

Recommended Posts

hi,

 

I have managed to install the following 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.

Link to comment
Share on other sites

Where have I gone wrong?

you need to paste the code into login.php & shopping_cart.php files.

Edited by web-project

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

  • 2 weeks later...

Are you sure you made the required mods to catalog/admin/modules ? Here's the instructions from the installation.txt file. Also do you have maybe Mindsparx admin or a template installed on the admin side? If so you may have to manually edit the boxes/modules file.

 

 2a. /catalog/admin/modules.php                                       LINE 45

 ============================================================================

 REPLACE:



     case 'save':

       while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

         tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" .  $value . "' where configuration_key = '" . $key . "'");

       }

       tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' .  $HTTP_GET_VARS['module']));

       break;



 WITH:



     case 'save':

     // ** GOOGLE CHECKOUT **      

       // fix configuration no saving -

     	reset($HTTP_POST_VARS['configuration']);

       // end fix

     // ** END GOOGLE CHECKOUT **      

    while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

       // ** GOOGLE CHECKOUT **    

         // Checks if module is of type google checkout and also verfies if this  configuration is 

         // for the check boxes for the shipping options   				

      if( is_array( $value ) ){

               $value = implode( ", ", $value);

               $value = ereg_replace (", --none--", "", $value);

             }

       // ** END GOOGLE CHECKOUT **



	  tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value =  " . gc_makeSqlString($value) . " where configuration_key = " . gc_makeSqlString($key));

    }

    tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' .  $HTTP_GET_VARS['module']));

       break;





 ----------------------------------------------------------------------------

 2b. /catalog/admin/modules.php                                       LINE 14

 ============================================================================

 ADD:



 // ** GOOGLE CHECKOUT **

 function gc_makeSqlString($str) {

   $single_quote = "'";

   $escaped_str = addcslashes(stripcslashes($str), "'\"\\\0..\37!@\177..\377");

   return ($single_quote.$escaped_str.$single_quote);

 }

 // **END GOOGLE CHECKOUT**



Edited by swords
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...