Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

carlost

Archived
  • Posts

    211
  • Joined

  • Last visited

Posts posted by carlost

  1. Hi CT.

     

    Have you looked in the EXTRAS folder of the newest Google Checkout IPN v1.2.2? That might solve your google order number problem.

     

    ski

     

    Hi Ski,

     

    I had already downloaded and implemented the EXTRAS optional modifications. My problem is not in viewing the numbers.

     

    My problem is, I am not getting anything added to the database to begin with, in neither table (google_checkout_logs & orders). Nor do I get any info in the google_log.txt file).

     

    I have only tested in the sandbox environment.

     

    I am a little confused about the google_log.txt file, as I thought to begin with it was meant for debugging, and therefore I assumed that there wouldn't be information inserted if there were no problems. However, I am under the impression now, from others experiences shared here that order information is inputted into google_log.txt as a regular part of the contributions process.

     

    So, I am just wondering if you might have any thoughts (assuming for the moment that my install is correct) as to why I wouldn't be getting the Google Order ID Number inserted into the google_checkout_logs & orders tables?

     

    Regards,

     

    CT

  2. You must must must put a .htaccess in your GCLOG directory or else anyone can read all your customer's info from the log.

    Hello,

     

    If anyone has an example of a .htaccess file that prevents access, but still allows the information to be written, it would be much appreciated.

     

    I have no clue as to what's needed here.

     

    Regards,

     

    CT

  3. Also the tax isnt being carried onto google, show as 0.00. What am i missing here??

    Hello Again,

     

    I don't know if this is what you're experiencing, but if two addresses are involved (customers oscommerce address is different than his or her Google address), and if the address used in oscommerce, is not in a tax zone, no matter if the address used for Google is, it won't show as taxable because the original address is what is processed.

     

    Maybe in time someone will come up with a way to prevent this from happening, or at least flag it in some manner.

     

    Regards again,

     

    CT

  4. Im getting a problem whereas im purchasing with a gift voucher but i have still selected Google IPN as payment. Upon clicking confirm it still takes you to google and errors instead on noticing there is nothing to pay and confirming it correctly.

    Hello,

     

    This contribution already supports The CCGV gift vouchers & Discount Coupons contribution. But you have to modify the google_checkout_process.php file to match the modifications made to your checkout_process.php file.

     

    As is, I don't think it supports any other discount coupon contribution.

     

    In my install, if using a Gift Certificate to pay for the entire order, you tick the "use available gift certificate amount" checkbox, and no matter if any other payment option is selected (including Google Checkout IPN), or if no payment option is selected - clicking through the rest of the checkout process brings you to checkout_success.php.

     

    Regards,

     

    CT

  5. by the way, does CT's shop based in UK? if yes, do you mind sharing that code with me.

    Hello,

     

    I'm in the states, I was just stating that the code did work for me. Sorry for the confusion.

     

    Regards,

     

    CT

  6. Hello,

     

    I'm wondering about other experiences around two things.

     

    I cannot get the Google order number, via the call back in a testing environment. I get no errors as far as I can tell; I just don't get the Google order number updated to the data base in either the google_checkout_logs table or the orders table. So, I don't get status updates either.

     

    I've tried the suggested (adding (int)), still nothing. I am hoping that this is maybe specific to my testing environment. However, I have the same situation with several different testing environments.

     

    The second thing is: I just became aware that options/attributes are not being shown in the Google cart. They are being passed through to the order via google_checkout_process.php so it's not an imperative problem, but I'm thinking it's a little less than what a customer might expect to see.

     

    If anyone has addressed this already, I'd be interested to know about it.

     

    Regards,

     

    CT

  7. Hello Ski!

     

    Thank you so much for sharing your code with us all.

    Welcome, and thank you for all that you do!

     

    I am sorry that this contribution is not working as well as it should in international sites.

    The contribution works quite a bit better already due to your involvement - again, thank you for all that you do!

     

    Here is a possible fix:

     

    go to catalog/includes/modules/payment/google.php

     

    FIND:
    
    $data .= '		<shipping-methods>' . $eol;
    $data .= '			<flat-rate-shipping name="' . htmlentities($order->info['shipping_method']) . '">' . $eol;
    $data .= '				<price currency="' . $order->info['currency'] . '">' . number_format($order->info['shipping_cost'], 2, '.', '') . '</price>' . $eol;
    $data .= '			</flat-rate-shipping>' . $eol;
    $data .= '		</shipping-methods>' . $eol;
    REPLACE WITH:
    
    $data .= '		<shipping-methods>' . $eol;
    $data .= '			<flat-rate-shipping name="' . htmlentities($order->info['shipping_method']) . '">' . $eol;
    $data .= '				<price currency="' . $order->info['currency'] . '">' . number_format($order->info['shipping_cost'], 2, '.', '') . '</price>' . $eol;
    $data .= '						<shipping-restrictions>' . $eol;
    $data .= '							<allowed-areas>' . $eol;
    $data .= '								<world-area/>' . $eol;
    $data .= '							</allowed-areas>' . $eol;
    $data .= '						</shipping-restrictions>' . $eol;
    $data .= '			</flat-rate-shipping>' . $eol;
    $data .= '		</shipping-methods>' . $eol;

    Just to let you know, this works well for me - again, again, thank you for all that you do!

     

    Regards,

     

    CT

  8. In:

    admin/categories.php

     

    7) Replace with:

    </tr>
    // prevent GCIPN payment option
    	  <tr bgcolor="#ebebff">
    		<td class="main"><?php echo TEXT_PRODUCTS_GOOGLE_PAYMENT_PRODUCT; ?></td>
    		<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_google_payment_product', $google_payment_product_array, $pInfo->products_google_payment_product); ?></td>
    	  </tr>
    // /prevent GCIPN payment option

    The above code modification is incorrect (concerning the "admin/categories.php" file, and "7) Replace with:").

    It should be:

    </tr>
    <!-- prevent GCIPN payment option -->
    	  <tr bgcolor="#ebebff">
    		<td class="main"><?php echo TEXT_PRODUCTS_GOOGLE_PAYMENT_PRODUCT; ?></td>
    		<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_google_payment_product', $google_payment_product_array, $pInfo->products_google_payment_product); ?></td>
    	  </tr>
    <!-- /prevent GCIPN payment option -->

  9. Hello,

     

    The following modifications will allow you to select whether or not a product can be purchased through the Google Checkout IPN, on a per product basis. It is by default set for each product to be able to. To set a product to not be able to be purchased using the Google Checkout IPN payment option - in the admin ui's product page (categories.php) you just set the newly created "Allow Google Payment:" drop down to "No".

     

    Though it is presented here based on a vanilla 2.2 install, it's not been tested on a vanilla install. It was originally done for a heavily modified install. It's been put together by mimicking code from oscommerce and several oscommerce contributions, and it is not likely coded efficiently, nor prudently. I don't even know that all the code is necessary. I do know it works well in my modified environment.

     

    As an aside, I've used the same/similar procedure/process to make several different per product switches/flags and triggers.

     

    Regards,

     

    CT

     

     

    In:

    admin/categories.php

     

    1) Find:

    'manufacturers_id' => tep_db_prepare_input($HTTP_POST_VARS['manufacturers_id']));

    1) Replace with:

    'manufacturers_id' => tep_db_prepare_input($HTTP_POST_VARS['manufacturers_id']),
    // prevent GCIPN payment option
    							  'products_google_payment_product' => tep_db_prepare_input($HTTP_POST_VARS['products_google_payment_product']));
    // /prevent GCIPN payment option

     

     

     

    2) Find:

    $product_query = tep_db_query("select products_quantity, products_model, products_image, products_price, products_date_available, products_weight, products_tax_class_id, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");

    2) Replace with:

    // prevent GCIPN payment option (added: , products_google_payment_product)
    $product_query = tep_db_query("select products_quantity, products_model, products_image, products_price, products_date_available, products_weight, products_tax_class_id, manufacturers_id, products_google_payment_product from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
    // /prevent GCIPN payment option (added: , products_google_payment_product)

     

     

     

    3) Find:

    tep_db_query("insert into " . TABLE_PRODUCTS . " (products_quantity, products_model,products_image, products_price, products_date_added, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id) values ('" . tep_db_input($product['products_quantity']) . "', '" . tep_db_input($product['products_model']) . "', '" . tep_db_input($product['products_image']) . "', '" . tep_db_input($product['products_price']) . "',  now(), " . (empty($product['products_date_available']) ? "null" : "'" . tep_db_input($product['products_date_available']) . "'") . ", '" . tep_db_input($product['products_weight']) . "', '0', '" . (int)$product['products_tax_class_id'] . "', '" . (int)$product['manufacturers_id'] . "')");

    3) Replace with:

    // prevent GCIPN payment option (added: , products_google_payment_product)
    tep_db_query("insert into " . TABLE_PRODUCTS . " (products_quantity, products_model,products_image, products_price, products_date_added, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id, products_google_payment_product) values ('" . tep_db_input($product['products_quantity']) . "', '" . tep_db_input($product['products_model']) . "', '" . tep_db_input($product['products_image']) . "', '" . tep_db_input($product['products_price']) . "',  now(), " . (empty($product['products_date_available']) ? "null" : "'" . tep_db_input($product['products_date_available']) . "'") . ", '" . tep_db_input($product['products_weight']) . "', '0', '" . (int)$product['products_tax_class_id'] . "', '" . (int)$product['manufacturers_id'] . "')");
    // /prevent GCIPN payment option (added: , products_google_payment_product)

     

     

     

    4) Find:

    'manufacturers_id' => '');

    4) Replace with:

    'manufacturers_id' => '',
    // prevent GCIPN payment option
    				   'products_google_payment_product' => '');
    // /prevent GCIPN payment option

     

     

     

    5) Find:

    $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");

    5) Replace with:

    // prevent GCIPN payment option (added: , p.products_google_payment_product)
    $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id, p.products_google_payment_product from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
    // /prevent GCIPN payment option (added: , p.products_google_payment_product)

     

     

     

    6) Find:

    $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE));

    6) Replace with:

    // prevent GCIPN payment option
    $google_payment_product_array = array(array('id' => '1', 'text' => TEXT_YES), array('id' => '0', 'text' => TEXT_NO));
    // /prevent GCIPN payment option
    $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE));

     

     

     

    First Find:

    TEXT_PRODUCTS_PRICE_GROSS

    7) Then find 2 lines below:

    </tr>

    7) Replace with:

    </tr>
    // prevent GCIPN payment option
    	  <tr bgcolor="#ebebff">
    		<td class="main"><?php echo TEXT_PRODUCTS_GOOGLE_PAYMENT_PRODUCT; ?></td>
    		<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_google_payment_product', $google_payment_product_array, $pInfo->products_google_payment_product); ?></td>
    	  </tr>
    // /prevent GCIPN payment option

     

     

     

    8) Find:

    $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id  from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");

    8) Replace with:

    // prevent GCIPN payment option (added: , p.products_google_payment_product)
    $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id, p.products_google_payment_product  from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");
    // /prevent GCIPN payment option (added: , p.products_google_payment_product)

     

     

     

    9) Find:

    $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name");

    9) Replace with:

    // prevent GCIPN payment option (added: , p.products_google_payment_product)
    $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id, p.products_google_payment_product from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name");
    // /prevent GCIPN payment option (added: , p.products_google_payment_product)

     

     

     

    10) Find:

    $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");

    10) Replace with:

    // prevent GCIPN payment option (added: , p.products_google_payment_product)
    $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.products_google_payment_product from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");
    // /prevent GCIPN payment option (added: , p.products_google_payment_product)

     

     

     

    11) Find:

    $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');

    11) Replace with:

    $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');
    // prevent GCIPN payment option
    		if ($pInfo->products_google_payment_product == "1") {
    		  $google_payment_product_indicator = TEXT_YES;
    		} else {
    		  $google_payment_product_indicator = TEXT_NO;
    		}
    		$contents[] = array('text' => '' . TEXT_PRODUCTS_GOOGLE_PAYMENT_PRODUCT . ' ' . $google_payment_product_indicator . '');
    // /prevent GCIPN payment option

     

     

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

     

     

    In:

    admin/includes/languages/english/categories.php

     

    1) Find:

    ?>

    1) Replace with:

    // prevent GCIPN payment option
    define('TEXT_PRODUCTS_GOOGLE_PAYMENT_PRODUCT', 'Allow Google Payment:');
    // /prevent GCIPN payment option
    
    ?>

     

     

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

     

     

    In:

    checkout_payment.php

     

    2) Find:

    $selection = $payment_modules->selection();

    2) Replace with:

    $selection = $payment_modules->selection();
    
    // prevent GCIPN payment option
    $order->info['g_payment'] = $cart->g_payment;
    if (($cart->g_payment) > 0) {
    
     for($i=0, $n=sizeof($selection); $i<$n; $i++) {
    if($selection[$i]['module'] == MODULE_PAYMENT_GOOGLE_TEXT_TITLE) {
      array_splice($selection, $i, 1);	
      break;   
    }
     }
    
    }
    // /prevent GCIPN payment option

     

     

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

     

     

    In:

    includes/classes/shopping_cart.php

     

    1) Find:

    var $contents, $total, $weight, $cartID, $content_type;

    1) Replace with:

    // prevent GCIPN payment option (added: , $g_payment)
    var $contents, $total, $weight, $cartID, $content_type, $g_payment;
    // /prevent GCIPN payment option (added: , $g_payment)

     

     

     

    First Find:

    function calculate() {

    2) Then find 2 lines below:

    $this->weight = 0;

    2) Replace with:

    $this->weight = 0;
    // prevent GCIPN payment option
      $this->g_payment = 0;
    // /prevent GCIPN payment option

     

     

     

    3) Find:

    $product_query = tep_db_query("select products_id, products_price, products_tax_class_id, products_weight from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");

    3) Replace with:

    // prevent GCIPN payment option (added: , products_google_payment_product)
    $product_query = tep_db_query("select products_id, products_price, products_tax_class_id, products_weight, products_google_payment_product from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
    // /prevent GCIPN payment option (added: , products_google_payment_product)

     

     

     

    4) Find:

    if ($product = tep_db_fetch_array($product_query)) {

    4) Replace with:

    // prevent GCIPN payment option
    	$products_google_payment_product = $product['products_google_payment_product'];
    // /prevent GCIPN payment option
    if ($product = tep_db_fetch_array($product_query)) {

     

     

     

    5) Find:

    $this->total += tep_add_tax($products_price, $products_tax) * $qty;

    5) Replace with:

    $this->total += tep_add_tax($products_price, $products_tax) * $qty;
    // prevent GCIPN payment option
    	  $this->g_payment += ($products_google_payment_product == 1)?0:(tep_add_tax($products_price, $products_tax) * $qty);
    // /prevent GCIPN payment option

     

     

     

    6) Find:

    $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);

    6) Replace with:

    $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);
    // prevent GCIPN payment option
    $this->g_payment += ($products_google_payment_product == 1)?0:($qty * tep_add_tax($attribute_price['options_values_price'], $products_tax));
    // /prevent GCIPN payment option

     

     

     

    7) Find:

    $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);

    7) Replace with:

    $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);
    // prevent GCIPN payment option
    $this->g_payment -= ($products_google_payment_product == 1)?0:($qty * tep_add_tax($attribute_price['options_values_price'], $products_tax));
    // /prevent GCIPN payment option

     

     

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

     

     

    added sql:

    ALTER TABLE `products` ADD `products_google_payment_product` TINYINT( 1 ) DEFAULT '1' NOT NULL;

     

    END

  10. on catalog/includes/modules/payment/google.php:

     

    FIND:
    		  $tax = number_format($value['tax'] / 100, 2, '.', '');
    
    CHANGE TO:
    		  $tax = number_format($value['tax'] / 100, 4, '.', '');

     

    If shipping charges are taxable where you reside you also need to change (same file catalog/includes/modules/payment/google.php)

     

    FIND:
    							  $data .= '				<shipping-taxed>false</shipping-taxed>' . $eol;
    CHANGE TO:
    							  $data .= '				<shipping-taxed>true</shipping-taxed>' . $eol;
    
    FIND:
    							  $data .= '				<rate>' . $default_tax_rate . '</rate>' . $eol;
    CHANGE TO:
    							  $data .= '				<rate>' . $tax . '</rate>' . $eol;

    Hello Ski,

     

    I just want to say well done! And, thanks for your time and efforts here!

     

    Regards,

     

    CT

  11. I tried that with discount coupons it still does not work

     

    Hello,

     

    The contribution already has code for CCGV gift vouchers & Discount Coupons written into it in the includes/modules/payment/google.php file.

     

    I am now assuming the discount coupons you are referring to is a separate, different contribution. I wouldn't know how to add the code for it. Maybe someone else would.

     

    Regards,

     

    CT

  12. A material difference in all my checkout_*.php files is that //ICW CREDIT CLASS Gift Voucher System code is there? I assume gift voucher is different to the coupon so can I remove the credit class gift voucher?

     

    Hello,

     

    I believe the contribution is actually setup to use the ICW CREDIT CLASS Gift Voucher System. As well, I use it, and it works fine with the exception that's noted in the readme.txt.

     

    If you have any standard payment module setup (example: check/money order), and it works, you can likely rule out the checkout_confirmation.php file as being a problem.

     

    Regards,

     

    CT

  13. <?php

    /*

    $Id: checkout_process.php,v 1.128 2003/05/28 18:00:29 hpdl Exp $

    */

    code]

     

    Hello,

     

    Not positive, but I'm thinking that the google_checkout_process.php file should work for you without any modifications.

     

    And, if some small modifications should be needed, it would have to do with information being passsed, or not. It should have nothing to do with your not getting the Google splash page at all.

     

    I am assuming that you have already tried using the google_checkout_process.php without any modifications.

     

    I am pretty sure you can rule out the google_checkout_process.php being part of this present problem, for now.

     

    I don't know anything about cgi php, so haven't a clue if this affects anything.

     

    Something is amiss. It's not possible for you to be getting information passed back concerning your Google checkout ID & Key, if they're not inserted anywhere.

     

    I don't mean to be redundant, but you do have separate checkout & sandbox accounts, with separate, different IDs & Keys - and you do have the sandbox ID & Key inserted into the IPN payment module, with sandbox selected?

     

    Again, fishing: Do you have another Google Checkout contribution installed and active? Even if you do it shouldn't matter if everything's setup correctly, but everything is not setup correctly for sure, if you're getting back Google checkout info when you have Google sandbox, and sandbox ID & Key inserted.

     

    Regards,

     

    CT

  14. The log file seems to now be recording, however, I have input the sandbox details into the payment module, but the log file records details of the actual checkout merchantid and key?? Is that normal?

     

    Hello,

     

    Not sure what you're saying here.

     

    If it is that you are getting back information based on your live Google Merchant ID & Merchant Key numbers, which are separate, and different from your Sandbox Merchant ID & Merchant Key numbers - where do you have your live Google Merchant ID & Merchant Key numbers inserted?

     

    Regards,

     

    CT

  15. The log.txt file in gclog is empty (and has had its permissions set to 777).

     

    Hello,

     

    Just fishing some. Maybe try: chmod gclog/ to 777 & log.txt 666.

     

    If you would then like to post your checkout_process.php file here, might be able to determine something from it.

     

    Regards,

     

    CT

  16. Having made some changes to the google_checkout_process.php file, I now get the check out success page, having never got the opportunity to pay!

    Hello,

     

    You shouldn't be getting to the checkout_success.php file's page.

     

    The following might help.

     

    In google_checkout_process.php, somewhere above:

    require(DIR_WS_INCLUDES . 'application_bottom.php');

    find code snippet similar to:

    // load the after_process function from the payment modules
     $payment_modules->after_process();

    remove (cut) it from where it is,

    and find code snippet similar to:

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

    and, replace it with the (first) code snippet.

     

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

     

    So to reiterate,

    where:

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

    was,

    should now be:

    // load the after_process function from the payment modules
     $payment_modules->after_process();

    instead.

     

    Hope this helps some.

     

    Regards,

     

    CT

  17. Regarding the coupon part that google ignores I assume that it would be necessary to either set google checkout to aggregate as in Paypal or else insert some code somewhere in google ipn files to tell it to include it?

     

    Hello,

     

    If there have been any changes/modifications made to your oscommerce's checkout_process.php file, it is likely those same changes will need to be made to the GOOGLE CHECKOUT IPN's google_checkout_process.php file.

     

    As oscommerce's checkout_process.php file processes the oscommerce checkout, similarly does the GOOGLE CHECKOUT IPN's google_checkout_process.php file process the Google Checkout.

     

    Regards,

     

    CT

  18. Hello All!

     

    Anyone have any idea of how I might go about preventing just the "Gift Certificate" product from being displayed as part of the "select which updates" list on checkout_success.php page?

     

    It's just a small thing, but I sure would like to know a way to distinguish it from regular products, so that it doesn't display on this page when purchased.

     

    Thanks in advance.

     

    Carlos

  19. Is this page in any form of contribution yet? Would you be willing to share this modification with me for the Red Cross in my area?

     

    Hello Greyson!

     

    The payment page/function is not fully working yet. It has some problems that so far, are beyond my ability to correct. The core of it works, and I am at this point almost daily playing around with it.

     

    My intention is to make it into a contribution whenever I can get it to work properly. This will likely take a bit of time though; first to get it working fully, and second to separate it from this heavily modifed application, so that it will be understood, and readily implemented into a vanilla osc application.

     

    It seems I missed my window of opportunity to get some help from Howard, which would have been great as it is this "Make An Offer" contribution mostly, along with a couple of others that the "Payment" ability is based on.

     

    If you like I will let you know when it is working properly, and perhaps then you might help me to get it into a contribution form.

     

    You are welcome to any specific files I have, if you think you might be able assist in getting it to work properly.

     

    Well done on the Red Cross Site... it looks great!

     

    Regards,

     

    Carlos

  20. Carlos,

     

    A bit late in response and I had to read your long message a couple of times to understand to skip the first part (I wasn't even aware Pop went that far) ;)

    At the moment I am quite busy with some client projects and our, meanwhile already, 2 months old little daugther but I am surely interested to see how you put those 3 contribs together and maybe can give you some ideas to get it fully working.

     

    regards,

    Howard

     

    Hello Howard!

     

    Do you know, I was not even aware that you had taken the time to respond to my post of a couple of months ago. So, first let me say thank you.

     

    I have not been able to spend any time with my project for awhile. Sometimes I get just so far, and can?t get any further, and I have to leave it be or go crazy! Usually I don?t let this much time go by, but other things of life have come up. And again, I didn?t know you had responded.

     

    By the way I am the one who was trying to combine a few contributions, including "Make An Offer" to make a sort of hybrid contribution.

     

    If you would be interested still in seeing what I've gotten done so far, I would love to show it to you.

     

    I had managed to solve some of the problems I originally asked for some advice about. There are however some things that I have not been able to figure out.

     

    It is my intention to one day (I say one day because I have been working on this, on and off for a very long time now) offer my heavily modified application as part of an osc specific hosting package of some sort.

     

    I'll understand if your hands are way full, with your now 4+ month old little daughter... a belated congratulations by the way!

     

    If you do have some time to talk about this a little bit, please let me know... Any insight or thought(s) would be wonderful! It can be seen HERE. Then clicking on "Gift Certificate" and/or "Make A Payment". As you will be able to tell it is not a live shop, so please fell free to explore in any way you might like to. And of course if you would like to see any of my files you are more than welcome to.

     

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

     

    I have not been able to figure out how to prevent either the gift certificate or the payment from triggering the "free shipping above" feature, when "free shipping above" is activated.

     

    I have not been able to get the "Make A Payment" to go directly to checkput_payment.php, as the gift certificate does. (Because there is an option field, I think, there are a few other little problems with the "Make A Payment" product)

     

    Thanks in advance for your time.

     

    Regards,

     

    Carlos

     

    P.S. Sorry about the pop the top ranting!

  21. Dear fellow users of this great contribution!

     

    I experience difficulties to get it to work, maybe because of step 6. I do not know if i did it correctly, but I uploaded a htaccess.txt containing the second of the 2 codes into the catalog folder. Once on the file has been uploaded on the server I renamed it to .htaccess.

     

    When I try to load the shop, in first instance I get a rewritten URL (great) but completed with an session ID (not so great).

     

    Like this:

    http://shop.modelbrouwers.nl/catalog/bare-...13974666225448b

     

    When I click some more, this Session ID's disappear (great looking URLs) but now I get 404's.

     

    Do you have a clou on what I do wrong? Thanks a lot!!!

     

    Best regards,

    Hanjo

     

    Hello Hanjo,

     

    Looks like you are using the wrong .htaccess example.

     

    The second one is for if you have a root install (shop.modelbrouwers.nl).

     

    Your install uses the catalog directory (shop.modelbrouwers.nl/catalog/) , so you need the first example, and you need to change:

     

    RewriteBase /directory/

     

    To:

     

    RewriteBase /catalog/

     

    Hope that helps some.

     

    Regards,

     

    Carlos

  22. Hello,

     

    If I add an attribute to my gift certificate (product), it is no longer recognized as a virtual product, and thus no longer bypasses checkout_shipping.php, to go directly to checkout_payment.php.

     

    Any ideas on how I can change this so that my gift certificate (product), with an attribute added, will still be recognized as a virtual product, and still bypass checkout_shipping.php, going directly to checkout_payment.php.

     

    Thanks in advance.

     

    Regards,

     

    Carlos

  23. Hi All,

     

    Howard (wheeloftime)...

     

    I am trying to put together features similar to what is being offered to be installed for $50.00 on the first page of this "Make An Offer" forum.

     

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

     

    Actually, I think it is a rude and inappropriate advertisement posting / response, for gain, in a forum meant for helping. Particularly since I have seen the name (PopTheTop) in several forums looking for help with one thing or another. I find this person's attitude to be really offensive overall.

     

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

     

    Anyhow, what happened to me is - I stumbled upon this contribution "Make An Offer", and its forum, and read through it because I have been wanting to add a couple of features to my osc application:

     

    (1)

    I wanted customers who purchase a gift certificate via my already installed "Credit Class & Gift Voucher" contribution - to be able to just insert whatever amount they want to via a text input field. Presently you have to set an amount (as you do with any product), and a customer can increase it by adding more quantities of it.

     

    (2)

    I wanted to have a "Payment" page, where a customer can insert any amount for payment, as well as a brief description of what the payment is for, also using text input fields.

     

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

     

    So, I was quite surprised to find (I have looked quite extensively for some time now, and not been able to find as a contribution) pretty much, just what I was looking for, as I mentioned already, on the first page of this forum. Only it's not a contribution...

     

    Please don't misunderstand me. In an appropriate and proper setting, offering an osc service, or associated work for a fee is more than okay with me. It is just the way that it was done here in the first page of this forum, by this pophisload little person - that just really irked me. As well, as I read through the forum, his whole attitude sucks, as though he's better than, and trying to show off or something. Reminds me of a grade school hall monitor wannabe... child.

     

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

     

    Okay, I really need to put a zip to my typing lip - and get on with the real purpose of my writing here now. Maybe too, I need to apologize for ranting on some.

     

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

     

    Presently, using some of the code from three separate contributions (Make An Offer, Options Type, & Maximum Order Quantity) - I am almost able to achieve what I am looking for.

     

    From the Make An Offer contribution, I am able to get a text input field to carry an inserted $ amount over into the shopping cart.

     

    From the Options Type contribution, I am able to get a text input field to carry an inserted brief payment description over into the shopping cart as an attribute.

     

    From the Maximum Order Quantity contribution, I am able to prevent more than one gift certificate and/or more than one payment amount, to be processed per order.

     

    I am afraid though, the finishing touches are beyond my limited ability to customize some, using others code, which is all that I can really do. (Though I am still, searching through the forums, and contributions, for more info on how I might accomplish what I want to.)

     

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

     

    What's left that needs to be done is:

     

    (1)

    Need to be able to validate the two text input fields involved, which are generated in product_info.php (To be able to control the $ amount range, & to insure a description is inserted - would like to do this using an "alert" statement.)

     

    (2)

    Presently, the "Gift Certificate" (product) page passes through the checkout procedure going from the cart directly to checkout_payment.php, skipping checkout_shipping.php.

     

    The "Payment" (product) page does not (I do know it has to do with the "Product Description" text attribute that carries through). It goes through checkout_shipping.php first - this needs to be changed to do the same as the "Gift Certificate" (product) page.

     

    (3)

    When using the Free Shipping Over A Given Amount feature, I need to be able to exclude both the "Gift Certificate" (product) amount, and/or the "Payment" (product) amount - from being included in the tally/sum.

     

    (4)

    In most files that I have tried to, I am able to separate the 2 products (which in my case are 1 & 2 "Gift Certificate" & "Payment" respectively) by using some variation of (($products['products_id'] == 1) && ($products['products_id'] == 2) ) with an "if" statement, or "if else" statements.

     

    I have not been able to figure out, or find an example of the variation that works with the checkout files (checkout_shipping.php, checkout_payment.php, checkout_confirmation.php, & checkout_success.php)

     

    I need to, to be able to custom the info presented - which will depend on which products are purchased (different for 1 & 2, than the rest).

     

    To the point of my telling all this here to you Howard:

     

    I am trying to generate some interest in completing these last areas, which I so far, have not been able to do. I am very close though. Presently I am working in an XAMPP environment on my computer.

     

    So, if you or anyone else has an interest to see what I've got done so far, with an eye towards collaborating, I would be glad to publish it on my server. It also has the potential to be a useful hybrid contribution when finished. And of course, as it should be - a FREE contribution!

     

    Regards,

     

    Carlos

     

    P.S.

     

    Howard, please forgive my posting all this here. It just seemed like one of the places to do it, for more than one reason.

  24. Does anyone have a live site that I could see how this contribution works. Considering upgrading to it. I am using the shipping estimator right now, but this may be a better module.

     

    Hello,

     

    Here is a link to a working version: http://distinctivediscounts.com/distinct1/main_content/

     

    This WebSite is a Template. All functions work. Feel free to explore it.

     

    I have not been able to get the estimator to show a tax rate if viewer is not logged in, so I have placed a tax notice in the header, which is only seen when not logged in. When logged in the correct tax is seen.

     

    Perhaps seeing it work, will be of some use.

     

    Regards,

     

    Carlos

×
×
  • Create New...