Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't finalize the order


volvoman

Recommended Posts

Posted

When i run a test on my site at My Webpage i get this when i try to check out.

Help ME

 

Warning: order_total(includes/languages/english/modules/order_total/ot_coupon.php): failed to open stream: No such file or directory in /home/volvoman/public_html/catalog/includes/classes/order_total.php on line 25

 

Warning: order_total(): Failed opening 'includes/languages/english/modules/order_total/ot_coupon.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/volvoman/public_html/catalog/includes/classes/order_total.php on line 25

 

Warning: order_total(includes/modules/order_total/ot_coupon.php): failed to open stream: No such file or directory in /home/volvoman/public_html/catalog/includes/classes/order_total.php on line 26

 

Warning: order_total(): Failed opening 'includes/modules/order_total/ot_coupon.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/volvoman/public_html/catalog/includes/classes/order_total.php on line 26

 

Fatal error: Cannot instantiate non-existent class: ot_coupon in /home/volvoman/public_html/catalog/includes/classes/order_total.php on line 29

Posted

The problem is you have added a contribution for an order coupon. What you havent done is uploaded the correct files to the languages folder.

 

Either

 

1. Go into your admin and remove the coupon order total module, then delete ot_coupon.php from catalog/includes/modules/order_total

2. Upload the language files from the contribution to catalog/includes/languages/english/modules/order_total

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

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

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted
The problem is you have added a contribution for an order coupon. What you havent done is uploaded the correct files to the languages folder.

 

Either

 

1. Go into your admin and remove the coupon order total module, then delete ot_coupon.php from catalog/includes/modules/order_total

2. Upload the language files from the contribution to catalog/includes/languages/english/modules/order_total

This is what that file looks like. I can't find what you are talking about.

<?php

/*

$Id: ot_total.php,v 1.7 2003/02/13 00:12:04 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

class ot_total {

var $title, $output;

 

function ot_total() {

$this->code = 'ot_total';

$this->title = MODULE_ORDER_TOTAL_TOTAL_TITLE;

$this->description = MODULE_ORDER_TOTAL_TOTAL_DESCRIPTION;

$this->enabled = ((MODULE_ORDER_TOTAL_TOTAL_STATUS == 'true') ? true : false);

$this->sort_order = MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER;

 

$this->output = array();

}

 

function process() {

global $order, $currencies;

 

$this->output[] = array('title' => $this->title . ':',

'text' => '<b>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</b>',

'value' => $order->info['total']);

}

 

function check() {

if (!isset($this->_check)) {

$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_TOTAL_STATUS'");

$this->_check = tep_db_num_rows($check_query);

}

 

return $this->_check;

}

 

function keys() {

return array('MODULE_ORDER_TOTAL_TOTAL_STATUS', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER');

}

 

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 ('Display Total', 'MODULE_ORDER_TOTAL_TOTAL_STATUS', 'true', 'Do you want to display the total order value?', '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 ('Sort Order', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER', '4', 'Sort order of display.', '6', '2', now())");

}

 

function remove() {

tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

}

}

?>

Posted

what you posted in response has nothing to what Mark said at first:

 

The problem is you have added a contribution for an order coupon. What you havent done is uploaded the correct files to the languages folder.

 

look in the contribution you installed, find where it asks you to write to or add items into the languages/whatever folder/file.

 

just takes patience, reading the installatio procedures all the way, then reread them again and then start merging . . .

Posted
what you posted in response has nothing to what Mark said at first:

 

The problem is you have added a contribution for an order coupon. What you havent done is uploaded the correct files to the languages folder.

 

look in the contribution you installed, find where it asks you to write to or add items into the languages/whatever folder/file.

 

just takes patience, reading the installatio procedures all the way, then reread them again and then start merging . . .

The problem is that i have not added a contribution into this catalog. I did add a contributon into a folder that i have named store but i think that somehow it has affected my database for my catalog.

How you doin John

Posted

/ot_coupon.php):

 

There is no such file in the default install of osCommerce, so at some point in time this installation has had its 'order total' function modified.

 

Vger

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...