Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can anyone tell me how to setup easy discount


nihanshe

Recommended Posts

Hi would really appreciate some guidance on this have installed the easy discount in order total but when I try to install I get

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true', 'false'), ', now())' at line 2

 

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Activate Easy Discount', 'MODULE_ORDER_TOTAL_EASY_DISCOUNT_STATUS', 'true', 'Do you want to enable the Easy discount module?', '6', '1','tep_cfg_select_option(array('true', 'false'), ', now())

 

[TEP STOP]

 

I relay don’t know what all this means and getting nowhere

 

Regards Mevyn

Link to comment
Share on other sites

Try this:

 

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Activate Easy Discount', 'MODULE_ORDER_TOTAL_EASY_DISCOUNT_STATUS', 'true', 'Do you want to enable the Easy discount module?', '6', '1','tep_cfg_select_option(array('true', 'false'), '', now())'

Link to comment
Share on other sites

Try this:

 

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Activate Easy Discount', 'MODULE_ORDER_TOTAL_EASY_DISCOUNT_STATUS', 'true', 'Do you want to enable the Easy discount module?', '6', '1','tep_cfg_select_option(array('true', 'false'), '', now())'

 

 

Thanks for the reply Manfred i tried this code that you have sent me

I now have this error in order total

 

Parse error: syntax error, unexpected T_STRING in /home/turnedwooduk/public_html/catalog/includes/modules/order_total/ot_easy_discount.php on line 51

 

this is from line 40 to 54

 

function keys() {

return array('MODULE_ORDER_TOTAL_EASY_DISCOUNT_STATUS', 'MODULE_ORDER_TOTAL_EASY_DISCOUNT_SORT_ORDER');

}

 

function install() {

tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order,

set_function, date_added) values ('Activate Easy Discount', 'MODULE_ORDER_TOTAL_EASY_DISCOUNT_STATUS', 'true', 'Do you want to enable the Easy discount

module?', '6', '1','tep_cfg_select_option(array('true', 'false'), '', now())'

 

}

function remove() {

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

}

}

?>

 

Many thanks again Manfred

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...