Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2010
    Posts
    116
    Plugin Contributions
    0

    Default What does this mean?

    Can someone please explain the meaning of this....
    syntax error, unexpected '(' in xxxxxxx on line 116 ? Do i need to change or delete something?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What does this mean?

    What is the full error message?

    And when doing what?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2010
    Posts
    116
    Plugin Contributions
    0

    Default Re: What does this mean?

    The full message is..

    Parse error: syntax error, unexpected '(' in /home/2/p/provida/www/Shop/includes/modules/payment/cresco.php on line 116

    When modifying oscommerse file to zencart and uploading to the above folder.

    Thanks

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What does this mean?

    When modifying oscommerse file to zencart and uploading to the above folder.
    Would guess that it was not ported properly
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jan 2010
    Posts
    116
    Plugin Contributions
    0

    Default Re: What does this mean?

    Thanks Kobra,

    Did i mess something up when modifying this file code?


    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: cresco.php 1105 2005-04-04 22:05:35Z birdbrain $
    //

    class cresco{
    var $code, $title, $description, $enabled;

    // class constructor
    function cresco() {
    global $order;

    $this->code = 'cresco';
    $this->title = MODULE_PAYMENT_CRESCO_TEXT_TITLE;
    $this->description = MODULE_PAYMENT_CRESCO_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_PAYMENT_CRESCO_SORT_ORDER;
    $this->enabled = ((MODULE_PAYMENT_CRESCO_STATUS == 'True') ? true : false);

    if ((int)MODULE_PAYMENT_CRESCO_ORDER_STATUS_ID > 0) {
    $this->order_status = MODULE_PAYMENT_CRESCO_ORDER_STATUS_ID;
    }

    if (is_object($order)) $this->update_status();
    }

    // class methods
    function update_status() {
    global $order;

    if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_CRESCO_ZONE > 0) ) {
    $check_flag = false;
    $check_query = $db->Execute ("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_CRESCO_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    while (!$my_var->EOF) {
    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;
    }
    }

    // disable the module if the order only contains virtual products
    if ($this->enabled == true) {
    if ($order->content_type == 'virtual') {
    $this->enabled = false;
    }
    }
    }

    function javascript_validation() {
    return false;
    }

    function selection() {

    $selection = array('id' => $this->code,
    'module' => '<table widht=100% cellspacing=0 cellpadding=0><tr><td class="main"><b>' . $this->title . '</b>&nbsp;&nbsp;</td><td align="center">' . MODULE_PAYMENT_CRESCO_TEXT_TITLE2 . '</tr></table>',
    'fields' => array( array( 'title' => MODULE_PAYMENT_CRESCO_TEXT)));

    return $selection;
    }

    function pre_confirmation_check() {
    return false;
    }

    function confirmation() {
    return false;
    }

    function process_button() {
    return false;
    }

    function before_process() {
    return false;
    }

    function after_process() {
    global $insert_id;

    $db->Execute( "INSERT INTO `cresco_ordre` SET `ordrenr`=" . $insert_id . ", `egen_status`=3, `status`=99" );
    return false;
    }

    function get_error() {
    return false;
    }

    function check() {
    if (!isset($this->_check)) {
    $check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_CRESCO_STATUS'");
    $this->_check = $my_var->RecordCount()($check_query);
    }
    return $this->_check;
    }

    function install() {

    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cresco Module', 'MODULE_PAYMENT_CRESCO_STATUS', 'True', 'Do you want to accept CRESCO payments?', '6', '1', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())");
    $db->Execute("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_CRESCO_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");
    $db->Execute("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_CRESCO_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
    $db->Execute("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_CRESCO_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', ' zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())");

    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Brukerstedsnummer', 'MODULE_PAYMENT_CRESCO_STORE_NO', '0', 'Brukerstedsnummer som er gitt av Cresco som de bruker til å identifisere nettbutikken', '6', '0', now())");
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('KEY', 'MODULE_PAYMENT_CRESCO_KEY', '0', 'KEY som er gitt av Cresco, brukes til dekrypteringen', '6', '0', now())");
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('IV', 'MODULE_PAYMENT_CRESCO_IV', '0', 'IV som er gitt av Cresco, brukes til dekrypteringen', '6', '0', now())");
    }

    function remove() {
    $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }

    function keys() {
    return array('MODULE_PAYMENT_CRESCO_STATUS', 'MODULE_PAYMENT_CRESCO_ZONE', 'MODULE_PAYMENT_CRESCO_ORDER_STATUS_ID', 'MODULE_PAYMENT_CRESCO_SORT_ORDER', 'MODULE_PAYMENT_CRESCO_STORE_NO', 'MODULE_PAYMENT_CRESCO_KEY', 'MODULE_PAYMENT_CRESCO_IV');
    }
    }
    ?>

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What does this mean?

    I have not ported any OSC stuff - - Just know that it is not straight forward as ZenCart has progressed while OSC has not

    Maybe another can assist
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jan 2010
    Posts
    116
    Plugin Contributions
    0

    Default Re: What does this mean?

    Has anyone else on this forum imported OSC file codes to zencart?

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What does this mean?

    Has anyone else on this forum imported OSC file codes to zencart?
    I am sure that has been done but may have been a while ago when ZenCart and OSC were closer as to the DB
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jan 2010
    Posts
    116
    Plugin Contributions
    0

    Default Re: What does this mean?

    Thank you for your kind replys. I`v been useing this post http://www.zen-cart.com/wiki/index.p...dules_from_osC to modify files but still not working, is this tutorial trust worthy?

 

 

Similar Threads

  1. What does this mean
    By hootienchyna in forum General Questions
    Replies: 13
    Last Post: 31 Jul 2012, 05:31 AM
  2. what does this mean?
    By CAguy in forum General Questions
    Replies: 1
    Last Post: 14 Apr 2011, 05:08 PM
  3. What does this mean
    By oakwoodevents in forum Basic Configuration
    Replies: 5
    Last Post: 2 Jan 2008, 08:42 PM
  4. what does this mean?
    By BlushFashions in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 18 Apr 2007, 12:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg