Latest News: (loading..)

parma

Members
  • Content count

    133
  • Joined

  • Last visited

About parma

  • Birthday 10/16/1984

Profile Information

  1. I'm going to give this a go on the weekend so I'll let you know how it goes.
  2. You genious, I will try this out on my setup. Thanks a lot, its a shame SagePage didnt help!
  3. good luck, thanks for keeping us updated!!
  4. Hey, So has anyone managed to resolve the redirect issue error 5006? I just cant work it out. Also for some reason the total given in Sagepay Server is incorrect, the delivery charge does not have vat/tax added on to that so the figure doesnt match oscommerce, any light on this? Thanks parma
  5. Hi there, I get the following error. [Mon Dec 14 00:29:49 2009] [error] [client 87.194.49.148] PHP Notice: Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/spray-wipe-sanitizer-pi-573.html Has anyone else experienced this? and if so know of a fix? Cant see any new images uploaded. Thanks Parma
  6. Hey, just wondering if anyone else is getting the same error. No file is created, the folder was created however not output txt file. File completed: gbase.txt Connected to uploads.google.com, for user ####### uploads.google.com: FTP upload has failed! Script timer: 4.184720 seconds.
  7. Hey, great contribution firstly! thanks works nicely. Only problem I have is in the admin side, I get the Catchable fatal error message for the info boxes. I have searched the topic for fixes however, no luck. Just wanted to know if anyone managed to find a fix? Thanks parma
  8. Hey, I have given Google Checkout another attempt, hopefully this time I will be more successful. Anyway I have just uploaded and configured version v1.4.5_CCS. I have put in the shipping methods which is shown below, all of my shipping methods are flat rate and do not change, they come up fine when the customer is taken to the google checkout page. I am using freeamount to offer free delivery for customers that order over a certain amount. Instead of only appearing when the value of freeamount is reached, it shows even when the value of the order is below the threshold. Is there a way of only showing the free shipping when the order is over a certain amount? Since testing it out, I have noticed all prices are taken from the entered amount in the Google Checkout payment module. Should it not take the amounts from the actual shipping modules? Thanks again, All help and suggestions are appreciated! GCL $this->mc_shipping_methods = $mc_shipping_methods; $this->mc_shipping_methods = array( 'priority' => array( 'domestic_types' => array( 'priority' => 'Priority Delivery', ), 'international_types' => array( ), ), 'flat' => array( 'domestic_types' => array( 'flat' => 'Standard Delivery', ), 'international_types' => array( ), ), 'freeamount' => array( 'domestic_types' => array( 'freeamount' => 'Free Shipping', ), 'international_types' => array( ), ), 'nextday' => array( 'domestic_types' => array( 'nextday' => 'Nexy Day Noon', ), 'international_types' => array( ), ), ); $this->mc_shipping_methods_names = $mc_shipping_methods_names; $this->mc_shipping_methods_names = array( 'priority' => 'Priority Delivery', 'flat' => 'Standard Delivery', 'freeamount' => 'Free Shipping', 'nextday' => 'Next Day Noon', );
  9. I have header tags installed on my website however, I cant get HTCA to work. Also under "Text Control" I have two blank pages on there which I cannot delete. I have index and have tried to use HTCA but with no luck. Is there anything that I might have missed out for it now to work? Thanks parma
  10. Ok you can ignore most of my previous post. I have configured all the shipping options. The only problem remaining is the free shipping option. Has anyone managed to get this working? Thanks
  11. Ok so ive installed the Google checkout module and everything with the installation seems fine. The only problem I come across is the shipping, when I go to the shopping_cart.php page it shows the following message: * There are multiple shipping options selected and they use different shipping tax tables or some dont use tax tablesError: Shipping Methods not configured freeamount (ignored) nextday (ignored) I think I know why the tax table error comes up, this is because the free shipping (freeamount.php) does not let you choose a tax class. Does anyone know how I can add the tax option to the free shipping module? I managed to configure the standard flat rate shipping and it shows the correct price when I go to the google checkout page however, I also have a module called priority.php and I configured this in the shipping_methods.php file however, this only shows £1 for delivery and does not seem to be linked to the module price. Also on our site the tax is added on the goods and the delivery, is this also the case with google checkout? freeamount.php (free shipping with minimum amount module) < Need to add tax class on this so that googlecheckout does not give the tax error. <?php /* $Id$ freeamount.php 2 The Exchange Project - Community Made Shopping! http://www.theexchangeproject.org Copyright (c) 2003 Released under the GNU General Public License ---------------------------------------------- ane - 06/02/02 - modified freecount.php to allow for freeshipping on minimum order amount originally written by dwatkins 1/24/02 Modified BearHappy 09/04/04 ---------------------------------------------- */ class freeamount { var $code, $title, $description, $icon, $enabled; // class constructor function freeamount() { global $order, $customer; $this->code = 'freeamount'; $this->title = MODULE_SHIPPING_FREEAMOUNT_TEXT_TITLE; $this->description = MODULE_SHIPPING_FREEAMOUNT_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_FREEAMOUNT_SORT_ORDER; $this->icon =''; $this->enabled = ((MODULE_SHIPPING_FREEAMOUNT_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEAMOUNT_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id, zone_country_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_FREEAMOUNT_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); $order_shipping_country = $order->delivery['country']['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']) { // } elseif ($check['zone_country_id'] == $order->delivery['country']['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; $dest_country = $order->delivery['country']['id']; $currency = $order->info['currency']; $get_total = false; $get_weight = false; $cart_total = $cart->show_total(); if (MODULE_SHIPPING_FREEAMOUNT_HIDE_SPECIALS == 'True') { // 28-9-2005 Check for articles on special which should not get free shipment // Adjust the cart total price for this $total_specials = 0; if ($cart->count_contents() > 0) { $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if ($special_price = tep_get_products_special_price($products[$i]['id'])) { $products_price = $special_price; $total_specials += $products_price; } } } $cart_total = $cart_total - $total_specials; } if ($cart_total < MODULE_SHIPPING_FREEAMOUNT_AMOUNT) { if (MODULE_SHIPPING_FREEAMOUNT_DISPLAY == 'True') { $this->quotes['error'] = MODULE_SHIPPING_FREEAMOUNT_TEXT_ERROR; } $get_total = false; } else { $get_total = true; } $total_weight = $shipping_num_boxes * $shipping_weight; if ($total_weight > MODULE_SHIPPING_FREEAMOUNT_WEIGHT_MAX) { if (MODULE_SHIPPING_FREEAMOUNT_DISPLAY == 'True') { $this->quotes['error'] = MODULE_SHIPPING_FREEAMOUNT_TEXT_TO_HEIGHT; } $get_weight = false; } else { $get_weight = true; } if (($get_total == true && $get_weight == true)) { $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREEAMOUNT_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FREEAMOUNT_TEXT_WAY, 'cost' => MODULE_SHIPPING_FREEAMOUNT_COST))); } 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_FREEAMOUNT_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 Free Shipping with Minimum Purchase', 'MODULE_SHIPPING_FREEAMOUNT_STATUS', 'True', 'Do you want to offer minimum order free shipping?', '6', '7', '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 ('Maximum Weight', 'MODULE_SHIPPING_FREEAMOUNT_WEIGHT_MAX', '10', 'What is the maximum weight you will ship?', '6', '8', 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 ('Enable Display', 'MODULE_SHIPPING_FREEAMOUNT_DISPLAY', 'True', 'Do you want to display text way if the minimum amount is not reached?', '6', '7', '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 ('Minimum Cost', 'MODULE_SHIPPING_FREEAMOUNT_AMOUNT', '50.00', 'Minimum order amount purchased before shipping is free?', '6', '8', 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 ('Disable for Specials', 'MODULE_SHIPPING_FREEAMOUNT_HIDE_SPECIALS', 'True', 'Do you want to disable free shipping for products on special?', '6', '7', '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 ('Sort Order', 'MODULE_SHIPPING_FREEAMOUNT_SORT_ORDER', '0', 'Sort order of display.', '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 ('Shipping Zone', 'MODULE_SHIPPING_FREEAMOUNT_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())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { $keys = array( 'MODULE_SHIPPING_FREEAMOUNT_STATUS', 'MODULE_SHIPPING_FREEAMOUNT_WEIGHT_MAX', 'MODULE_SHIPPING_FREEAMOUNT_SORT_ORDER', 'MODULE_SHIPPING_FREEAMOUNT_DISPLAY', 'MODULE_SHIPPING_FREEAMOUNT_HIDE_SPECIALS', 'MODULE_SHIPPING_FREEAMOUNT_AMOUNT', 'MODULE_SHIPPING_FREEAMOUNT_ZONE' ); return $keys; } } ?> shipping_methods.php <?php /* **GOOGLE CHECKOUT ** v1.4 * @version $Id: shipping_methods.php 5342 2007-06-04 14:58:57Z ropu $ * */ // this are all the available methods for each shipping provider, // see that you must set flat methods too! // CONSTRAINT: Method's names MUST be UNIQUE // Script to create new shipping methods // http://demo.globant.com/~brovagnati/tools -> Shipping Method Generator $mc_shipping_methods = array( 'usps' => array( 'domestic_types' => array( 'Express' => 'Express Mail', 'First Class' => 'First-Class Mail', 'Priority' => 'Priority Mail', 'Parcel' => 'Parcel Post' ), 'international_types' => array( 'GXG Document' => 'Global Express Guaranteed Document Service', 'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service', 'Express' => 'Global Express Mail (EMS)', 'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)', 'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)', 'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)', 'Airmail Letter' => 'Airmail Letter Post', 'Airmail Parcel' => 'Airmail Parcel Post', 'Surface Letter' => 'Economy (Surface) Letter Post', 'Surface Post' => 'Economy (Surface) Parcel Post' ), ), 'fedex1' => array( 'domestic_types' => array( '01' => 'Priority (by 10:30AM, later for rural)', '03' => '2 Day Air', '05' => 'Standard Overnight (by 3PM, later for rural)', '06' => 'First Overnight', '20' => 'Express Saver (3 Day)', '90' => 'Home Delivery', '92' => 'Ground Service' ), 'international_types' => array( '01' => 'International Priority (1-3 Days)', '03' => 'International Economy (4-5 Days)', '06' => 'International First', '90' => 'International Home Delivery', '92' => 'International Ground Service' ), ), 'upsxml' => array( 'domestic_types' => array( 'UPS Ground' => 'UPS Ground', 'UPS 3 Day Select' => 'UPS 3 Day Select', 'UPS 2nd Day Air A.M.' => 'UPS 2nd Day Air A.M.', 'UPS 2nd Day Air' => 'UPS 2nd Day Air', 'UPS Next Day Air Saver' => 'UPS Next Day Air Saver', 'UPS Next Day Air Early A.M.' => 'UPS Next Day Air Early A.M.', 'UPS Next Day Air' => 'UPS Next Day Air' ), 'international_types' => array( 'UPS Worldwide Expedited' => 'UPS Worldwide Expedited', 'UPS Saver' => 'UPS Saver' ), ), 'zones' => array( 'domestic_types' => array( 'zones' => 'Zones Rates' ), 'international_types' => array( 'zones' => 'Zones Rates intl' ), ), 'flat' => array( 'domestic_types' => array( 'flat' => 'Flat Rate Per Order' ), 'international_types' => array( 'flat' => 'Flat Rate Per Order intl' ), ), 'item' => array( 'domestic_types' => array( 'item' => 'Flat Rate Per Item' ), 'international_types' => array( ), ), 'itemint' => array( 'domestic_types' => array( ), 'international_types' => array( 'itemint' => 'Flat Rate Per Item intl' ), ), 'table' => array( 'domestic_types' => array( 'table' => 'Table' ), 'international_types' => array( 'table' => 'Table intl' ), ), 'priority' => array( 'domestic_types' => array( 'priority' => 'Flat Rate Per Order' ), ), ); $mc_shipping_methods_names = array( 'usps' => 'USPS', 'fedex1' => 'FedEx', 'upsxml' => 'Ups', 'zones' => 'Zones', 'flat' => 'Flat Rate', 'item' => 'Item', 'priority' => 'Next Day', 'itemint' => 'Item Inter', 'table' => 'Table', ); ?> Any help is greatly appreciated. Kind regards p4rma
  12. Anyone got this to work with google checkout?
  13. Thanks, I got it working now. The Only problem is when I get the confirmation the amount doesnt show a minus. Anyone know why this might be? Below is how it shows. Discount Coupon 123465 applied: £8.30 Sub-Total: £74.68 Table Rate (Best Way): £2.50 UK Tax 17.5%: £11.12 Total: £77.18
  14. Hello, Great contribution by the way. I only have one problem, Im using the latest OSC and have managed to pretty much get the whole contribution working. The only file giving me problems is order.php in classes. As when I try to update this file using the instructions the order total automatically goes to 0. My order.php shows the following code $shown_price = $currencies->calculate_price($this->products[$index]['final_price'], $this->products[$index]['tax'], $this->products[$index]['qty']); $this->info['subtotal'] += $shown_price; Where as the instructions ask me to edit the following code $shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty']; $this->info['subtotal'] += $shown_price; The contribution code does not have $currencies->calculate_price, I dont know if this is the only issue. I am using 2.2 RC1, if anyone knows a workaround it would be greatly appreciated it. Kind regards M PArmar
  15. Has anyone come accross the following error before? Regards parma