Jump to content

toefinger

Members
  • Content count

    78
  • Joined

  • Last visited

About toefinger

  • Birthday 04/25/1979

Profile Information

  • Real Name
    Darren
  • Gender
    Male
  • Location
    milton keynes
  1. toefinger

    Automatically send data feed to Froogle

    i am getting File completed: googlefeed.txt Fatal error: Call to undefined function ftp_connect() in /customers/dfader.com/dfader.com/httpd.www/admin/googlefeeder.php on line 368 could someone give me some quick advice......
  2. toefinger

    Google XML Sitemap w/ Admin support

    hello , i am getting an No input file specified. when i run my sitemap
  3. Fatal error: Maximum execution time of 300 seconds exceeded in \httpdocs\catalog\admin\includes\functions\database.php on line 45 any ideas?
  4. Hello , Does anyone happen to know if there is a contribute that will allow me to apply a discount to a load of individual products. or maybe a catagory ? any help is welcome thanks Darren
  5. toefinger

    Product Sales and Stats v2.0 Contribution

    Hi , i am getting the following error in the admin section Parse error: syntax error, unexpected ')' in C:\xxxxx\xxxxx\xxxxxxxxxxxxxx\xxxxxxx\admin\includes\boxes\reports.php on line 35 Can anyone help me i followed the instructions , i am just a bit rusty with the old php <?php /* $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . /*mod for heardabout conribution:*/ '<a href="' . tep_href_link(FILENAME_HEARDABOUT, '', 'NONSSL') . '" class="menuBoxContentLink">Heard About</a><br>' . /*end of mod for heardabout conribution:*/ '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_LOW_STOCK_ATTRIB, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_STATS_LOW_STOCK_ATTRIB . '</a>'); '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link('stats_products.php', '', 'NONSSL') . '" class="menuBoxContentLink">Product Sales v2.0</a>' ); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //-->
  6. toefinger

    Automatic Store Feeds Contribution

    Hey , i will try and help you , if you go into the froogle_uk.php or what ever one your using and edit the lines .. $location = 1; $default_location = "CITY, COUNTY, COUNTRY"; // Addresses should be formatted as: street, city, state, postal code, country. Each location element should be separated by a comma. and change the words CITY , COUNTY , COUNTRY to where ever you are so for example if you lived in london it would read $location = 1; $default_location = "London, L1 8jp, UK"; // Addresses should be formatted as: street, city, state, postal code, country. Each location element should be separated by a comma. hope that helps...
  7. toefinger

    Automatic Store Feeds Contribution

    I went and changed some settings and i have managed to get the items to load into google base , some of my products dont have descriptions , is there a way i can upload with having to put in a description ? or do all items need descriptions? thanks again sorry about the big post.
  8. toefinger

    Automatic Store Feeds Contribution

    Hello , i was wondering if anyone could give me some advice or a hand in getting this to work ? i have got it to work to the point , that it goes from my site to google base , but google base does not insert it and gives me errors Failed Data feed upload failed. No items are live. sorry for the long post. i upgraded to lastest version of Automatic store feed 3.3b , any advice is welcome in the past we have paid out people to get this working and they have left us with a version that did not work.. any advice is welcome. We didn't understand the header (first) row of your file. Please make sure you're using valid attribute names. help ship_to 1 This attribute is no longer supported. Please use a supported attribute. help language 1 We didn't understand the header (first) row of your file. Please make sure you're using valid attribute names. help model 1 This attribute is no longer supported. Please use a supported attribute. help instock 1 This attribute is no longer supported. Please use a supported attribute. help label 1 We recommend including this attribute. help upc We recommend including this attribute. help mpn We recommend including this attribute. help isbn We recommend including this attribute. help image link We recommend including this attribute. help brand We didn't understand this location. help location:Address of the items's location here 178 The item is missing a required attribute. help description 333 We didn't understand this location. help location:Address of the items's location here 691 We didn't understand this location. help location:Address of the items's location here 945 We didn't understand this location. help location:Address of the items's location here 345 We didn't understand this location. help location:Address of the items's location here 622 We didn't understand this location. help location:Address of the items's location here 905 We didn't understand this location. help location:Address of the items's location here 735 We didn't understand this location. help location:Address of the items's location here 545 We didn't understand this location. help location:Address of the items's location here 907 We didn't understand this location. help location:Address of the items's location here 748 We didn't understand this location. help location:Address of the items's location here 512 We didn't understand this location. help location:Address of the items's location here 716 The item is missing a required attribute. help description 116 We didn't understand this location. help location:Address of the items's location here 816 We didn't understand this location. help location:Address of the items's location here 471 We didn't understand this location. help location:Address of the items's location here 775 We didn't understand this location. help location:Address of the items's location here 595 We didn't understand this location. help location:Address of the items's location here 858 We didn't understand this location. help location:Address of the items's location here 899 We didn't understand this location. help location:Address of the items's location here 711 The item is missing a required attribute. help description 269 We didn't understand this location. help location:Address of the items's location here 875 We didn't understand this location. help location:Address of the items's location here 915 We didn't understand this location. help location:Address of the items's location here 921 The item is missing a required attribute. help description 79 You provide nothing for the attribute. help description: 79 We didn't understand this location. help location:Address of the items's location here 206 The item is missing a required attribute. help description 608 The item is missing a required attribute. help description 44 We didn't understand this location. help location:Address of the items's location here 838 The item is missing a required attribute. help description 180 The item is missing a required attribute. help description 307 We didn't understand this location. help location:Address of the items's location here 370 We didn't understand this location. help location:Address of the items's location here 714 We didn't understand this location. help location:Address of the items's location here 5 We didn't understand this location. help location:Address of the items's location here 725 We didn't understand this location. help location:Address of the items's location here 526 The item is missing a required attribute. help description 82 The item is missing a required attribute. help description 228 We didn't understand this location. help location:Address of the items's location here 485 We didn't understand this location. help location:Address of the items's location here 645 We didn't understand this location. help location:Address of the items's location here 824 We didn't understand this location. help location:Address of the items's location here 490 The item is missing a required attribute. help description 280 We didn't understand this location. help location:Address of the items's location here 493 The item is missing a required attribute. help description 415 We didn't understand this location. help location:Address of the items's location here 527 We didn't understand this location. help location:Address of the items's location here 570 The item is missing a required attribute. help description 148 We didn't understand this location. help location:Address of the items's location here 731 We didn't understand this location. help location:Address of the items's location here 738 The item is missing a required attribute. help description 453 The item is missing a required attribute. help description 371 We didn't understand this location. help location:Address of the items's location here 500 The item is missing a required attribute. help description 393 The item is missing a required attribute. help description 272 We didn't understand this location. help location:Address of the items's location here 367 We didn't understand this location. help location:Address of the items's location here 551 We didn't understand this location. help location:Address of the items's location here 553 We didn't understand this location. help location:Address of the items's location here 874 We didn't understand this location. help location:Address of the items's location here 712 The item is missing a required attribute. help description 50 The item is missing a required attribute. help description 61 The item is missing a required attribute. help description 383 The item is missing a required attribute. help description 320 We didn't understand this location. help location:Address of the items's location here 611 The item is missing a required attribute. help description 96 We didn't understand this location. help location:Address of the items's location here 606 The item is missing a required attribute. help description 347 The item is missing a required attribute. help description 151 The item is missing a required attribute. help description 224 The item is missing a required attribute. help description 94 We didn't understand this location. help location:Address of the items's location here 814 We didn't understand this location. help location:Address of the items's location here 402 The item is missing a required attribute. help description 219 We didn't understand this location. help location:Address of the items's location here 710 We didn't understand this location. help location:Address of the items's location here 226 We didn't understand this location. help location:Address of the items's location here 761 We didn't understand this location. help location:Address of the items's location here 541 We didn't understand this location. help location:Address of the items's location here 917 The item is missing a required attribute. help description 295 We didn't understand this location. help location:Address of the items's location here 783 We didn't understand this location. help location:Address of the items's location here 702 The item is missing a required attribute. help description 184 We didn't understand this location. help location:Address of the items's location here 499 The item is missing a required attribute. help description 391 We didn't understand this location. help location:Address of the items's location here 597 We didn't understand this location. help location:Address of the items's location here 661 We didn't understand this location. help location:Address of the items's location here 411 We didn't understand this location. help location:Address of the items's location here 567 We didn't understand this location. help location:Address of the items's location here 384 We didn't understand this location. help location:Address of the items's location here 351 The item is missing a required attribute. help description 210 We didn't understand this location. help location:Address of the items's location here 304 We didn't understand this location. help location:Address of the items's location here 362 We didn't understand this location. help location:Address of the items's location here 263 The item is missing a required attribute. help description 49 The item is missing a required attribute. help description 649 We didn't understand this location. help location:Address of the items's location here 543 We didn't understand this location. help location:Address of the items's location here 897 We didn't understand this location. help location:Address of the items's location here 789 The item is missing a required attribute. help description 138 The item is missing a required attribute. help description 392 We didn't understand this location. help location:Address of the items's location here 498 The item is missing a required attribute. help description 153 We didn't understand this location. help location:Address of the items's location here 109 We didn't understand this location. help location:Address of the items's location here 859 We didn't understand this location. help location:Address of the items's location here 216 We didn't understand this location. help location:Address of the items's location here 616 We didn't understand this location. help location:Address of the items's location here 574 We didn't understand this location. help location:Address of the items's location here 326 We didn't understand this location. help location:Address of the items's location here 308 The item is missing a required attribute. help description 302 We didn't understand this location. help location:Address of the items's location here 732 The item is missing a required attribute. help description 110 We didn't understand this location. help location:Address of the items's location here 934 The item is missing a required attribute. help description 521 We didn't understand this location. help location:Address of the items's location here 638 We didn't understand this location. help location:Address of the items's location here 674 We didn't understand this location. help location:Address of the items's location here 637 The item is missing a required attribute. help description 476 We didn't understand this location. help location:Address of the items's location here 240 The item is missing a required attribute. help description 171 We didn't understand this location. help location:Address of the items's location here 539 We didn't understand this location. help location:Address of the items's location here 442 We didn't understand this location. help location:Address of the items's location here 948 The item is missing a required attribute. help description 319 The item is missing a required attribute. help description 358 The item is missing a required attribute. help description 64 We didn't understand this location. help location:Address of the items's location here 652 The item is missing a required attribute. help description 389 We didn't understand this location. help location:Address of the items's location here 135 The item is missing a required attribute. help description 335 The item is missing a required attribute. help description 337 The item is missing a required attribute. help description 99 We didn't understand this location. help location:Address of the items's location here 820 The item is missing a required attribute. help description 104 The item is missing a required attribute. help description 111 We didn't understand this location. help location:Address of the items's location here 779 We didn't understand this location. help location:Address of the items's location here 881 We didn't understand this location. help location:Address of the items's location here 852 We didn't understand this location. help location:Address of the items's location here 851 We didn't understand this location. help location:Address of the items's location here 509 We didn't understand this location. help location:Address of the items's location here 753 We didn't understand this location. help location:Address of the items's location here 482 The item is missing a required attribute. help description 426 We didn't understand this location. help location:Address of the items's location here 654 We didn't understand this location. help location:Address of the items's location here 68 We didn't understand this location. help location:Address of the items's location here 380 We didn't understand this location. help location:Address of the items's location here 343 We didn't understand this location. help location:Address of the items's location here 876 The item is missing a required attribute. help description 309 The item is missing a required attribute. help description 382 We didn't understand this location. help location:Address of the items's location here 531 We didn't understand this location. help location:Address of the items's location here 682 We didn't understand this location. help location:Address of the items's location here 119 We didn't understand this location. help location:Address of the items's location here 705 We didn't understand this location. help location:Address of the items's location here 685 We didn't understand this location. help location:Address of the items's location here 286 We didn't understand this location. help location:Address of the items's location here 518 We didn't understand this location. help location:Address of the items's location here 200 We didn't understand this location. help location:Address of the items's location here 563 We didn't understand this location. help location:Address of the items's location here 250 We didn't understand this location. help location:Address of the items's location here 618 We didn't understand this location. help location:Address of the items's location here 28 We didn't understand this location. help location:Address of the items's location here 729 The item is missing a required attribute. help description 298 We didn't understand this location. help location:Address of the items's location here 734 The item is missing a required attribute. help description 427 We didn't understand this location. help location:Address of the items's location here 707 We didn't understand this location. help location:Address of the items's location here 723 The item is missing a required attribute. help description 352 The item is missing a required attribute. help description 81 We didn't understand this location. help location:Address of the items's location here 215 We didn't understand this location. help location:Address of the items's location here 900 We didn't understand this location. help location:Address of the items's location here 795 We didn't understand this location. help location:Address of the items's location here 741 The item is missing a required attribute. help description 242 We didn't understand this location. help location:Address of the items's location here 863 We didn't understand this location. help location:Address of the items's location here 237 The item is missing a required attribute. help description 238 We didn't understand this location. help location:Address of the items's location here 117 The item is missing a required attribute. help description 315 The item is missing a required attribute. help description 327 We didn't understand this location. help location:Address of the items's location here 378 The item is missing a required attribute. help description 802 The item is missing a required attribute. help description 181 The item is missing a required attribute. help description 797 We didn't understand this location. help location:Address of the items's location here 175
  9. toefinger

    Protx Form - Authenticate and Authorise problem

    hey guys could someone help me with a an issue , when customers try to use protx they get an error Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in C:\Inetpub\vhosts\kingunderground.com\httpdocs\catalog\includes\modules\payment\protx_form.php on line 18 just wondering if someone could give me some quick advice on fixing this. thanks Darren
  10. Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in C:\Inetpub\vhosts\kingunderground.com\httpdocs\catalog\includes\modules\payment\protx_form.php on line 18 <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2004 osCommerce Released under the GNU General Public License */ class protx_form { var $code, $title, $description, $enabled; // class constructor function protx_form() { $this->code = 'protx_form'; $this->title = MODULE_PAYMENT_PROTX_FORM_TEXT_TITLE; $this->description = MODULE_PAYMENT_PROTX_FORM_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_PROTX_FORM_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_PROTX_FORM_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_PROTX_FORM_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PROTX_FORM_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); if (MODULE_PAYMENT_PROTX_FORM_TEST_STATUS == 'true') { $this->form_action_url = 'https://ukvpstest.protx.com/vps2form/submit.asp'; //$this->form_action_url = 'https://ukvpstest.protx.com/showpost/showpost.asp'; //$this->form_action_url = 'https://ukvpstest.protx.com/VSPSimulator/VSPFormGateway.asp'; //$this->form_action_url = '../../decrypt_protx.php'; } else { $this->form_action_url = 'https://ukvps.protx.com/vps2form/submit.asp'; } } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PROTX_FORM_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PROTX_FORM_ZONE . "' and zone_country_id = '" . $order->billing['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->billing['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } function javascript_validation() { return false; } function simpleXor($InString, $Key) { $KeyList = array(); $output = ""; for($i = 0; $i < strlen($Key); $i++){ $KeyList[$i] = ord(substr($Key, $i, 1)); } for($i = 0; $i < strlen($InString); $i++) { $output.= chr(ord(substr($InString, $i, 1)) ^ ($KeyList[$i % strlen($Key)])); } return $output; } function getToken($thisString) { $Tokens = array("Status","StatusDetail","VendorTxCode","VPSTxID","TxAuthNo","Amount","AVSCV2"); $output = array(); $resultArray = array(); for ($i = count($Tokens)-1; $i >= 0 ; $i--){ $start = strpos($thisString, $Tokens[$i]); if ($start !== false){ $resultArray[$i]->start = $start; $resultArray[$i]->token = $Tokens[$i]; } } sort($resultArray); for ($i = 0; $i<count($resultArray); $i++){ $valueStart = $resultArray[$i]->start + strlen($resultArray[$i]->token) + 1; if ($i==(count($resultArray)-1)) { $output[$resultArray[$i]->token] = substr($thisString, $valueStart); } else { $valueLength = $resultArray[$i+1]->start - $resultArray[$i]->start - strlen($resultArray[$i]->token) - 2; $output[$resultArray[$i]->token] = substr($thisString, $valueStart, $valueLength); } } return $output; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $order, $currencies, $currency; switch (MODULE_PAYMENT_PROTX_FORM_CURRENCY) { case 'Default Currency': $protx_currency = DEFAULT_CURRENCY; break; case 'Any Currency': default: $protx_currency = $currency; break; } $plain = "VendorTxCode=" . date('Ymdhis') . "&"; $plain .= "Amount=" . number_format($order->info['total'] * $currencies->get_value($protx_currency), $currencies->get_decimal_places($protx_currency)) . "&"; $plain .= "Currency=" . $protx_currency . "&"; $plain .= "Description='" . STORE_NAME . "'&"; $plain .= "SuccessURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; $plain .= "FailureURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; $plain .= "CustomerName=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'] . "&"; $plain .= "CustomerEmail=" . $order->customer['email_address'] . "&"; $plain .= "VendorEMail=" . STORE_OWNER_EMAIL_ADDRESS . "&"; $delivery_address = $order->delivery['street_address']; if (ACCOUNT_SUBURB == 'true') { $delivery_address .= ',' . $order->delivery['suburb']; } $delivery_address .= ',' . $order->delivery['city']; if (ACCOUNT_STATE == 'true') { $delivery_address .= ',' . $order->delivery['state']; } $delivery_address .= ',' . $order->delivery['country']['title']; $billing_address = $order->billing['street_address']; if (ACCOUNT_SUBURB == 'true') { $billing_address .= ',' . $order->billing['suburb']; } $billing_address .= ',' . $order->billing['city']; if (ACCOUNT_STATE == 'true') { $billing_address .= ',' . $order->billing['state']; } $billing_address .= ',' . $order->billing['country']['title']; $plain .= "DeliveryAddress=" . $delivery_address . "&"; $plain .= "DeliveryPostCode=" . $order->delivery['postcode'] . "&"; $plain .= "BillingAddress=" . $billing_address . "&"; $plain .= "BillingPostCode=" . $order->billing['postcode'] . ""; //added by Mike Jackson************************************************************************* ********************************************************************************* if (MODULE_PAYMENT_PROTX_FORM_SHOPCART == 'true') { $plain .= "&"; //get ready to add more data to the query string // now add the shopping cart to the string so it gets sent to PROTX global $cart, $order; $Shipping = $order->info['shipping_cost']; $Shipping = number_format($Shipping, 2, '.', ''); $products = $cart->get_products(); $No_lines = sizeof($products); $No_lines = $No_lines + 1; // Don't forget the shipping as an item! $cart_string = "Basket=".$No_lines; for ($i=0, $n=sizeof($products); $i<$n; $i++) { $Description = $products[$i]['name']; $Description = str_replace(":", "", $Description); // added v1.09 MJ - Make sure that there are no colons (:) since we are producing a colon delimited list $Qty = $products[$i]['quantity']; $Price = $products[$i]['price'] + $cart->attributes_price($products[$i]['id']); $Tax = $Price/100 * tep_get_tax_rate($products[$i]['tax_class_id']); $Tax = number_format($Tax, 2, '.', ''); $final_price = $Price + $Tax; $final_price = number_format($final_price, 2, '.', ''); $Line_Total = $Qty * $final_price; $Line_Total = number_format($Line_Total, 2, '.', ''); $cart_string .= ":".$Description.":".$Qty.":".$Price.":".$Tax.":".$final_price.":".$Line_Total; } $cart_string .= ":Shipping:1:".$Shipping.":----:".$Shipping.":".$Shipping; //added v1.09 MJ - remove any newlines and carrige returns - PROTX protocol does not allow these in the shopping basket. $cart_string = str_replace("\n", "", $cart_string); $cart_string = str_replace("\r", "", $cart_string); $plain .= $cart_string; } // end added by Mike Jackson************************************************************************* ************************************************************************ $crypt = base64_encode($this->SimpleXor($plain, MODULE_PAYMENT_PROTX_FORM_PASSWORD)); //// PA Evers Added for Pre-Authorisation selection if (MODULE_PAYMENT_PROTX_FORM_PREAUTH == 'true') { $transaction_type = 'PREAUTH'; } else { $transaction_type = 'PAYMENT'; } //// EOF: PA Evers Added for Pre-Authorisation selection $process_button_string = tep_draw_hidden_field('VPSProtocol', '2.22') . // tep_draw_hidden_field('TxType', 'PAYMENT') . // CHANGED FOR PRE-AUTH BELOW tep_draw_hidden_field('TxType', $transaction_type) . tep_draw_hidden_field('Vendor', MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME) . tep_draw_hidden_field('Crypt', $crypt); return $process_button_string; } function before_process() { global $HTTP_POST_VARS, $crypt; $crypt = $_REQUEST['crypt']; $process_button_string = str_replace(" ", "+", $process_button_string); $Decoded = $this->SimpleXor(base64_decode(str_replace (" ", "+", $crypt)),MODULE_PAYMENT_PROTX_FORM_PASSWORD); $values = $this->getToken($Decoded); $Status = $values['Status']; $StatusDetail = $values['StatusDetail']; if ($Status != 'OK') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&error_message=' . urlencode($StatusDetail), 'SSL', false, false)); } } function after_process() { return false; } function get_error() { global $HTTP_GET_VARS; if (isset($HTTP_GET_VARS['message']) && (strlen($HTTP_GET_VARS['message']) > 0)) { $error = stripslashes(urldecode($HTTP_GET_VARS['message'])); } else { $error = MODULE_PAYMENT_PROTX_FORM_TEXT_ERROR_MESSAGE; } return array('title' => MODULE_PAYMENT_PROTX_FORM_TEXT_ERROR, 'error' => $error); } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_PROTX_FORM_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 Protx Form Module', 'MODULE_PAYMENT_PROTX_FORM_STATUS', 'True', 'Do you want to accept Protx Form payments?', '6', '1', '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 ('Merchant ID', 'MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME', 'TestVendor', 'Vendor Name to use with the Protx Form service', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Password', 'MODULE_PAYMENT_PROTX_FORM_PASSWORD', 'testvendor', 'Password to use with the Protx Form service', '6', '2', 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 ('Transaction Currency', 'MODULE_PAYMENT_PROTX_FORM_CURRENCY', 'Any Currency', 'The currency to use for credit card transactions', '6', '3', 'tep_cfg_select_option(array(\'Any Currency\', \'Default Currency\'), ', 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 of display.', 'MODULE_PAYMENT_PROTX_FORM_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '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 ('Payment Zone', 'MODULE_PAYMENT_PROTX_FORM_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', '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, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PROTX_FORM_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', 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 ('Test Mode', 'MODULE_PAYMENT_PROTX_FORM_TEST_STATUS', 'true', 'Use Test Mode?', '6', '4', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); //// PA Evers Added for Pre-Authorisation selection 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 ('Use Pre-Authorisation', 'MODULE_PAYMENT_PROTX_FORM_PREAUTH', 'true', 'Use Pre-Authorisation for all transactions?', '6', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); //// EOF: PA Evers Added for Pre-Authorisation selection //added by Mike Jackson for shopping cart selection*********************************************************************** ******************************************************** 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 ('Shopping cart', 'MODULE_PAYMENT_PROTX_FORM_SHOPCART', 'true', 'Send shopping cart details to Protx?', '6', '6', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); //end added by Mike Jackson for shopping cart selection*********************************************************************** ******************************************************** } function remove() { $keys = ''; $keys_array = $this->keys(); for ($i=0; $i<sizeof($keys_array); $i++) { $keys .= "'" . $keys_array[$i] . "',"; } $keys = substr($keys, 0, -1); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")"); } function keys() { //changed by Mike Jackson for shopping cart selection*********************************************************************** ******************************************************** return array('MODULE_PAYMENT_PROTX_FORM_STATUS', 'MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME', 'MODULE_PAYMENT_PROTX_FORM_PASSWORD', 'MODULE_PAYMENT_PROTX_FORM_CURRENCY', 'MODULE_PAYMENT_PROTX_FORM_ZONE', 'MODULE_PAYMENT_PROTX_FORM_ORDER_STATUS_ID', 'MODULE_PAYMENT_PROTX_FORM_SORT_ORDER', 'MODULE_PAYMENT_PROTX_FORM_TEST_STATUS', 'MODULE_PAYMENT_PROTX_FORM_PREAUTH', 'MODULE_PAYMENT_PROTX_FORM_SHOPCART'); // return array('MODULE_PAYMENT_PROTX_FORM_STATUS', 'MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME', 'MODULE_PAYMENT_PROTX_FORM_PASSWORD', 'MODULE_PAYMENT_PROTX_FORM_CURRENCY', 'MODULE_PAYMENT_PROTX_FORM_ZONE', 'MODULE_PAYMENT_PROTX_FORM_ORDER_STATUS_ID', 'MODULE_PAYMENT_PROTX_FORM_SORT_ORDER', 'MODULE_PAYMENT_PROTX_FORM_TEST_STATUS', 'MODULE_PAYMENT_PROTX_FORM_PREAUTH'); //end changed by Mike Jackson for shopping cart selection*********************************************************************** ******************************************************** } } ?> any help on this one ? thanks Darren
  11. toefinger

    Is this feature available in PAY PAL? ?

    whats the difference between PayPal and PayPal ipn ?
  12. toefinger

    Is this feature available in PAY PAL? ?

    A Pay pal module put it so i can take paypal payments as one of my payment services, rather than just letting people pay through pay pal now they can use it even if they dont have an account with pay pal , but also if they do have an account then they can? if that makes sense? Darren www.kingunderground.com
  13. toefinger

    Automatically send data feed to Froogle

    Just wanted to say thaks for the help i know get the msg Connected to uploads.google.com, for user kingunderground Uploaded C:/Inetpub/vhosts/kingunderground.com/httpdocs/catalog/feeds/FROOGLE_FTP_FILENAME to uploads.google.com as FROOGLE_FTP_FILENAME So this has worked hopefully, could anyone now tell me if I have to do anything else or will this now appear on Google base Thanks for all the help it’s really appreciated. Darren www.kingunderground.com
  14. toefinger

    Automatically send data feed to Froogle

    hi , i was wondering if anyone could shed some light on an error i am getting when trying to use a feed from my oscommerce shop i get the error Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: gethostbyname failed in C:\Inetpub\vhosts\kingunderground.com\httpdocs\catalog\admin\froogle.php on line 278 FTP open connection failed to FROOGLE_FTP_SERVER i understand i need to edit the froogle.php file which is fine but my php is a lets just say " basic " so if someone could point me in the right direction that would be a massive help. Darren
×