Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to add a little modification, be very grateful for help with an error


Guest

Recommended Posts

Posted

Hi

 

I'd like to add a simple sentence to checkout_shipping.php that states:

 

Our current lead time is x days (x being the current figure).

 

x needs to be updated in the admin as and when required.

 

I'm nearly there I think, I've run the following queries on the database:

INSERT INTO `configuration_group` ( `configuration_group_id` , `configuration_group_title` , `configuration_group_description` , `sort_order` , `visible` )
VALUES (
'17', 'LEAD TIME', 'Set the current lead time', '17', '1'
);

INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'318', 'Lead Time', 'LEAD_TIME', '2', 'Current lead time (days)', '17', '1', '2007-03-16 11:56:23', '2007-03-16 00:00:00', 'NULL', 'NULL'
);

 

That has given me the LEAD TIME page in the admin\configuration menu. I input 2 as the default and when I add

Our current lead time is <b> ' . LEAD_TIME . ' </b>

to langs\eng\checkout_shipping.php and call it on the page, it reads Our current lead time is 2 perfectly.

 

The problem occurs when I try to update the value in admin, if I click the edit button I get the following error message:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/goodwill/public_html/admin/configuration.php(125) : eval()'d code on line 1

 

The action mentioning eval in admin\configuration is about line 125, but I'm lost now I don't know what the error means. I'd be extremely grateful if someone could help please.

 

Many thanks in advance

Katie

Archived

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

×
×
  • Create New...