Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Rachael w.

Pioneers
  • Posts

    705
  • Joined

  • Last visited

Everything posted by Rachael w.

  1. What do you have at the top of googlecheckout/gcheckout.php I have this: /* **GOOGLE CHECKOUT ** v1.4.5 * @version $Id: gcheckout.php 5499 2007-09-27 14:58:57Z ropu $ * Script invoked when Google Checkout payment option has been enabled * It uses phpGCheckout library so it can work with PHP4 and PHP5 * Generates the cart xml, shipping and tax options and adds them as hidden fields * along with the Checkout button * A disabled button is displayed in the following cases: * 1. If merchant id or merchant key is not set * 2. If there are multiple shipping options selected and they use different shipping tax tables * or some dont use tax tables */ //error_reporting(E_ALL); //require_once('admin/includes/configure.php'); //require_once('includes/configure.php'); require_once('includes/languages/'. $language .'/modules/payment/googlecheckout.php'); require_once('includes/modules/payment/googlecheckout.php'); thats the only place I can think of that would be wrong at this point. But, then again, I always miss something.
  2. oh, I didnt even notice this before! shop/googlecheckout//includes/languages/english/modules/payment/googlecheckout.php) now thats just wrong! This is line 43 of googlecheckout.php return $protocol . '://' . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI']; I dont see the reason for it (but I may just be missing it) in the files you've shown here.
  3. I'm looking at it, I have no clue... I thought it was one thing, now I'm not sure. Researching it.... Maybe the reason would be obvious to someone else.
  4. Looks like your missing your language file. includes/languages/english/modules/payment/googlecheckout.php However I do notice this in your post: shop/googlecheckout//includes/languages/english/modules/payment/googlecheckout.php. Check your includes/configuration.php. You may have a / somewhere it does not need to be.
  5. Uninstall google checkout in your admin. Install those modules in your admin. Add all the info once you've installed those shipping modules. Be sure you only have the two (or one if you only want one) shipping modules installed. Then run the google checkout shipping generator. Be sure to remove the international table from the domestic shipping and vice versa so you only have one shipping for domestic and one shipping for international. Then copy that into shipping_methods.php. Save the file. Now go back to admin and install google checkout. You should now see those two tables like this: Set the rate you'd like google to use as a default if it cannot reach your site for some reason. I set it for the highest rate I have, but that's your choice. The other shipping settings should be this (notice all the 0's): Now try google checkout and see if its calculating the correct shipping.
  6. Well, I must have forgot that it took a little more work! I can barely remember my name most of the time! I took this from one of my sites. Create these pages in the following locations: Domestic Shipping Table: includes/modules/shipping/domtable.php <?php /* $Id: domtable.php,v 1.27 2003/02/05 22:41:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class domtable { var $code, $title, $description, $icon, $enabled; // class constructor function domtable() { global $order; $this->code = 'domtable'; $this->title = MODULE_SHIPPING_DOMTABLE_TEXT_TITLE; $this->description = MODULE_SHIPPING_DOMTABLE_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_DOMTABLE_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_DOMTABLE_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_DOMTABLE_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_DOMTABLE_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_DOMTABLE_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order, $cart, $shipping_weight, $shipping_num_boxes; if (MODULE_SHIPPING_DOMTABLE_MODE == 'price') { $order_total = $cart->show_total(); } else { $order_total = $shipping_weight; } $table_cost = split("[:,]" , MODULE_SHIPPING_DOMTABLE_COST); $size = sizeof($table_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $table_cost[$i]) { $shipping = $table_cost[$i+1]; break; } } if (MODULE_SHIPPING_DOMTABLE_MODE == 'weight') { $shipping = $shipping * $shipping_num_boxes; } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_DOMTABLE_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_DOMTABLE_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_DOMTABLE_HANDLING))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_DOMTABLE_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable International Table Method', 'MODULE_SHIPPING_DOMTABLE_STATUS', 'True', 'Do you want to offer international table rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('International Shipping Table', 'MODULE_SHIPPING_DOMTABLE_COST', '25:8.50,50:5.50,10000:0.00', 'The shipping cost is based on the total cost or weight of items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('International Table Method', 'MODULE_SHIPPING_DOMTABLE_MODE', 'weight', 'The shipping cost is based on the order total or the total weight of the items ordered.', '6', '0', 'tep_cfg_select_option(array(\'weight\', \'price\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_DOMTABLE_HANDLING', '0', 'Handling fee for this shipping method.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_DOMTABLE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_DOMTABLE_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_DOMTABLE_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_DOMTABLE_STATUS', 'MODULE_SHIPPING_DOMTABLE_COST', 'MODULE_SHIPPING_DOMTABLE_MODE', 'MODULE_SHIPPING_DOMTABLE_HANDLING', 'MODULE_SHIPPING_DOMTABLE_TAX_CLASS', 'MODULE_SHIPPING_DOMTABLE_ZONE', 'MODULE_SHIPPING_DOMTABLE_SORT_ORDER'); } } ?> same directory, international shipping table. includes/modules/shipping/inttable.php <?php /* $Id: inttable.php,v 1.27 2003/02/05 22:41:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class inttable { var $code, $title, $description, $icon, $enabled; // class constructor function inttable() { global $order; $this->code = 'inttable'; $this->title = MODULE_SHIPPING_INTTABLE_TEXT_TITLE; $this->description = MODULE_SHIPPING_INTTABLE_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_INTTABLE_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_INTTABLE_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_INTTABLE_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_INTTABLE_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_INTTABLE_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order, $cart, $shipping_weight, $shipping_num_boxes; if (MODULE_SHIPPING_INTTABLE_MODE == 'price') { $order_total = $cart->show_total(); } else { $order_total = $shipping_weight; } $table_cost = split("[:,]" , MODULE_SHIPPING_INTTABLE_COST); $size = sizeof($table_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $table_cost[$i]) { $shipping = $table_cost[$i+1]; break; } } if (MODULE_SHIPPING_INTTABLE_MODE == 'weight') { $shipping = $shipping * $shipping_num_boxes; } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_INTTABLE_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_INTTABLE_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_INTTABLE_HANDLING))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_INTTABLE_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable International Table Method', 'MODULE_SHIPPING_INTTABLE_STATUS', 'True', 'Do you want to offer international table rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('International Shipping Table', 'MODULE_SHIPPING_INTTABLE_COST', '25:8.50,50:5.50,10000:0.00', 'The shipping cost is based on the total cost or weight of items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('International Table Method', 'MODULE_SHIPPING_INTTABLE_MODE', 'weight', 'The shipping cost is based on the order total or the total weight of the items ordered.', '6', '0', 'tep_cfg_select_option(array(\'weight\', \'price\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_INTTABLE_HANDLING', '0', 'Handling fee for this shipping method.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_INTTABLE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_INTTABLE_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_INTTABLE_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_INTTABLE_STATUS', 'MODULE_SHIPPING_INTTABLE_COST', 'MODULE_SHIPPING_INTTABLE_MODE', 'MODULE_SHIPPING_INTTABLE_HANDLING', 'MODULE_SHIPPING_INTTABLE_TAX_CLASS', 'MODULE_SHIPPING_INTTABLE_ZONE', 'MODULE_SHIPPING_INTTABLE_SORT_ORDER'); } } ?> Now for the language files (change this to suit). includes/languages/english/modules/shipping/domtable.php <?php /* $Id: domtable.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_DOMTABLE_TEXT_TITLE', 'U.S. Territories'); define('MODULE_SHIPPING_DOMTABLE_TEXT_DESCRIPTION', 'Shipping to U.S.'); define('MODULE_SHIPPING_DOMTABLE_TEXT_WAY', 'Standard Delivery'); define('MODULE_SHIPPING_DOMTABLE_TEXT_WEIGHT', 'Weight'); define('MODULE_SHIPPING_DOMTABLE_TEXT_AMOUNT', 'Amount'); ?> includes/languages/english/modules/shipping/inttable.php <?php /* $Id: inttable.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_INTTABLE_TEXT_TITLE', 'International'); define('MODULE_SHIPPING_INTTABLE_TEXT_DESCRIPTION', 'Shipping to addresses outside the US'); define('MODULE_SHIPPING_INTTABLE_TEXT_WAY', 'Int. Standard Delivery'); define('MODULE_SHIPPING_INTTABLE_TEXT_WEIGHT', 'Weight'); define('MODULE_SHIPPING_INTTABLE_TEXT_AMOUNT', 'Amount'); ?> Try that, then install the shipping modules, then run the google shipping generator. Sorry for the lack of instruction before, I forgot I had edited the entire files.
  7. I dont ask for DOB (yes it is listed in admin and I have it as false) or Gender. I only ask for Suburb (which no one has ever put anything in that line!). I'll disable suburb. I'm not sure that this is gonna fix the time out issue.
  8. I am seeing this error again: Read timed out Your server must respond faster to merchant calculation callback requests I have this in my logs: Thu Aug 7 11:24:50 EDT 2008:- name lookup timed out I am assuming it comes from this in the response handler: // GC email is the most important one if ($customer_exists['customers_id'] != '') { $customer_id = $customer_exists['customers_id']; tep_session_register('customer_id'); } else if($customer_info['customers_id'] != ''){ $customer_id = $customer_info['customers_id']; tep_session_register('customer_id'); } else { list ($firstname, $lastname) = explode(' ', gc_makeSqlString($gc_data[$root]['buyer-billing-address']['contact-name']['VALUE']), 2); $sql_data_array = array ( 'customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $gc_data[$root]['buyer-billing-address']['email']['VALUE'], 'customers_telephone' => $gc_data[$root]['buyer-billing-address']['phone']['VALUE'], 'customers_fax' => $gc_data[$root]['buyer-billing-address']['fax']['VALUE'], 'customers_default_address_id' => 0, 'customers_password' => tep_encrypt_password(gc_makeSqlString($gc_data[$root]['buyer-id']['VALUE'])), 'customers_newsletter' => $gc_data[$root]['buyer-marketing-preferences']['email-allowed']['VALUE']=='true'?1:0 ); if (ACCOUNT_DOB == 'true') { $sql_data_array['customers_dob'] = 'now()'; } tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); $customer_id = tep_db_insert_id(); tep_session_register('customer_id'); tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int) $customer_id . "', '0', now())"); tep_db_query("insert into " . $googlepayment->table_name . " " . " values ( " . $customer_id . ", " . $gc_data[$root]['buyer-id']['VALUE'] . ")"); $new_user = true; } // The user exists and is logged in // Check database to see if the address exist. $address_book = tep_db_query("select address_book_id, entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "' and entry_street_address = '" . gc_makeSqlString($gc_data[$root]['buyer-shipping-address']['address1']['VALUE']) . "' and entry_suburb = '" . gc_makeSqlString($gc_data[$root]['buyer-shipping-address']['address2']['VALUE']) . "' and entry_postcode = '" . gc_makeSqlString($gc_data[$root]['buyer-shipping-address']['postal-code']['VALUE']) . "' and entry_city = '" . gc_makeSqlString($gc_data[$root]['buyer-shipping-address']['city']['VALUE']) . "' "); // If not, add the addr as default one if (!tep_db_num_rows($address_book)) { $buyer_state = $gc_data[$root]['buyer-shipping-address']['region']['VALUE']; $zone_answer = tep_db_fetch_array(tep_db_query("select zone_id, zone_country_id from " . TABLE_ZONES . " where zone_code = '" . $buyer_state . "'")); list ($firstname, $lastname) = explode(' ', gc_makeSqlString($gc_data[$root]['buyer-shipping-address']['contact-name']['VALUE']), 2); $sql_data_array = array ( 'customers_id' => $customer_id, 'entry_gender' => '', 'entry_company' => $gc_data[$root]['buyer-shipping-address']['company-name']['VALUE'], 'entry_firstname' => $firstname, 'entry_lastname' => $lastname, 'entry_street_address' => $gc_data[$root]['buyer-shipping-address']['address1']['VALUE'], 'entry_suburb' => $gc_data[$root]['buyer-shipping-address']['address2']['VALUE'], 'entry_postcode' => $gc_data[$root]['buyer-shipping-address']['postal-code']['VALUE'], 'entry_city' => $gc_data[$root]['buyer-shipping-address']['city']['VALUE'], 'entry_state' => $buyer_state, 'entry_country_id' => $zone_answer['zone_country_id'], 'entry_zone_id' => $zone_answer['zone_id'] ); tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array); $address_id = tep_db_insert_id(); tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int) $address_id . "' where customers_id = '" . (int) $customer_id . "'"); $customer_default_address_id = $address_id; $customer_country_id = $zone_answer['zone_country_id']; $customer_zone_id = $zone_answer['zone_id']; } else { $customer_default_address_id = $address_book['address_book_id']; $customer_country_id = $address_book['entry_country_id']; $customer_zone_id = $address_book['entry_zone_id']; } $customer_first_name = $gc_data[$root]['buyer-billing-address']['contact-name']['VALUE']; tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); tep_session_register('customer_first_name'); // Customer exists, is logged and address book is up to date Is there anything I can do to speed this portion up? I did find this: http://groups.google.com/group/google-chec...c95ae5ae596201# but I'd appreciate it if someone with more knowledge could confirm this would help. Thanks in advance!
  9. I had issues with table rates and had to rename the table file to domestic.php. First I uninstalled the table rate, renamed all the files (languange files too) uninstalled google checkout (just in the admin) reinstalled the table rate, ran the shipping generator, then reinstalled google. My experience was that the name "table" was causing the issue. It was the same file with the same code, just a new name and it worked fine.
  10. I assumed it was possible, any suggestions on how this would be accomplished? I dont know where to pull the page number information from. I have followed that thread. I dont have a problem with the other pages, just my category pages. I dont want to put a no follow tag on my category pages, since I DO want google to follow those to my products. I also want the categories to be indexed. I just hoped I could add a "page 2", "page 3" and so on to the meta tag.
  11. Google is reporting Duplicate Title Tags for my category pages. Is it somehow possible to add the page number to the tag? I think it may be pretty important to have that page number there. Thanks!
  12. I am by no means a google checkout expert, just experienced in my own errors. It is probably something messed up in your shipping file. Since you havent touched it. Try this, uninstall google checkout in your admin (remember to have all the info in there saved somewhere -copy and paste it all into notepad so you can quickly add it back in). Analyze and optimize your database. Run the shipping generator again (http://www.YOURSITE.com/googlecheckout/shipping_generator/shipping_method_generator.php) copy and paste that code into googlecheckout/shipping_methods.php. Reinstall google checkout. I have no idea if that will help, but if you havent changed any files it may. At least its a starting point. I can also give this one piece of advice to all since I've done this repeatedly. Watch what you add to the spiders.txt (in the includes) you might break google checkout. Always check to be sure your google checkout is working if you add to this file ;)
  13. I am having an issue with google checkout and the product quantities. The attributes are flowing through fine, however the stock is not being reduced at all. I have all the settings correct (subtract stock, true, etc.) and checkout through the site is working to remove stock correctly. Can anyone tell me what I need to change to get the google checkout code to remove the stock properly? Thank you in advance for your help!
  14. I am having an issue where google checkout (normal, not ipn) will not subtract the products stock when using qtpro. I am not sure why this is happening. Can someone point me in the right direction for clearing this up?
  15. I've figured out how to get the category name to show after the product name. I've modified this file so much though I dont know what to share. Here's something to play with for those of you interested. I can tell you that I added this: $category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_PRODUCTS_TO_CATEGORIES . " pc where cd.categories_id = pc.categories_id and pc.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); after this: $product_meta_query = tep_db_query("select products_name, products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); and then this is what I changed to add the category after the products name: $product_meta['products_name'] . ' | ' . $category['categories_name'] That returns a tag like this: PRODUCTS NAME | PRODUCTS CATEGORY I'm still working on the double quote thing... If I figure it out I'll let you know.
  16. I did see this reply "Well you could modify this file: includes/easy_meta_tags.php to strip out " from descriptions and names " Can someone point me in the right direction on how to modify this? I understand it would be an edit of the following, but I am not quite sure how to get the ereg_replace and preg_replace to work properly. $meta_description = ereg_replace('<[^>]*>', '', $product_meta['products_description']); $meta_description = preg_replace('/\s\s+/', ' ',$meta_description); I would also like to add the category name after the product name just as someone else had asked here. Has anyone done this successfully?
  17. I am very interested in this contrib, however I dont have the boxes on my site (just the categories and manufacturers) and would like the box in the product info page. Can anyone who has done this share their modification? Thank you in advance.
  18. I've decided to try this, looks like what I'd like to have on one of my sites. I've installed it (Popup Estimated Shipping v1.7b with UPS/USPS support), looks fine, no errors reported. However, the box is just refreshing when I try to get an estimate. I tried the Register Globals Fix but it is refreshing regardless of the fix and not returning any results. Is anyone using or supporting this who knows why this would be happening? I am using USPS (without issue) only. Thank you in advance.
  19. I worked on this mod some time ago, I dont actually use it (as I've mentioned) any longer so it is hard for me to support it. If you are just starting with oscommerce, I suggest dowloading the original osc and working with it, testing it, playing with changes so that you understand how it works and how everything is connected. Then install this mod. I dont think anyone has shown interest in updating or filling wishlists for it. I actually expanded on the original writers code. I had hoped someone else with more knowledge could do the same for what I've added.
  20. I didnt get that far with this mod. I had the store up and working fine and had hoped to elaborate on the admin section as it progressed. I had planned on it being for our local antique stores to sort of co-op their products so we could see what others had, while still having those items available online to the world. But, I couldnt convince the group that it would be an asset to every one of us. I ended up just going with a flat osc store for myself.
  21. Its been a long time since I've used this (ended up not needing it) but I believe I was able to show the individual store owners items the same way you would show a manufacturers products (drop down box in a column). You could click the store owners name and it would show all of their individual products.
  22. It has just been brought to my attention that verison 1.01 had an error in the code which resulted in a tep-get error. This was due to some extra info I had hard coded to my test site that was added to the instructions accidentally. I've updated the instructions in Version 1.02 to avoid the tep_get error in product_listing.php. I've uploaded a full package with instructions. http://www.oscommerce.com/community/contributions,5351
  23. Thanks so much Alex! I figured as much, but thought I'd better ask to confirm! :)
  24. My response log is getting very fat. Would I hurt anything at all by deleting old entries in this log? Thanks to all!
  25. You'll need to double check your installation. I couldnt view your site, seems you have bigger issues than just this.
×
×
  • Create New...