Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configuration table with infobox display


ce7

Recommended Posts

Hi,

have CE1.0.5.0 version, and install addon How did you hear about us/referrals, it is all working except the configuration table setting if set as "Email for Quote: always" or Email for Quote: test mode", the front page template / infobox display will not in correct form, show as image below:
image.png.dbc324c5143a9b54a92d57f83b8e99a6.png
image.png.78d9c016605a2c101cca9a5417654514.png

and here is the original configuration modification:

	# osCommerce, Open Source E-Commerce Solutions
# http://www.oscommerce.com
#
# Database Changes for "Email For Quote" contribution v1.2 (OSC v2.3.1 version)
#
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values
('Email for Quote', 'EMAIL_FOR_QUOTE', 'off', 'Turn on email for quote instead of showing prices. <br /><br />Please note: To use test mode, you must specify a customer id to use for testing in the Email for Quote Admin configuration value.', '1', '', now(), now(), NULL, 'tep_cfg_select_option(array(\'always\', \'off\', \'no price\', \'test mode\'),');
update configuration set sort_order = ((select sort_order from (select * from configuration where configuration_group_id = '1' and configuration_key != 'EMAIL_FOR_QUOTE' order by sort_order desc limit 1) as c1)+1 ) where configuration_key = 'EMAIL_FOR_QUOTE' ;
	insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values
('Email for Quote', Admin', 'EMAIL_FOR_QUOTE_ADMIN', '0', 'Frontend customer id to show Email for Quote in test mode to.', '1', '', now(), now(), NULL, NULL);
update configuration set sort_order = ((select sort_order from (select * from configuration where configuration_key = 'EMAIL_FOR_QUOTE') as c1)+1) where configuration_key = 'EMAIL_FOR_QUOTE_ADMIN' ;
	insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values
('Email for Quote', Link Text', 'EMAIL_FOR_QUOTE_TEXT', 'Email for Quote', 'Text to display', '1', '999', now(), now(), NULL, NULL);
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values
('Email for Quote', Subject', 'EMAIL_FOR_QUOTE_SUBJECT', 'Quote for product: [%s] %s', 'Quote emails subject line (sprintf() format allowed)', '1', '', now(), now(), NULL, NULL);
	update configuration set sort_order = ((select sort_order from (select * from configuration where configuration_key = 'EMAIL_FOR_QUOTE_ADMIN') as c1)+1) where configuration_key = 'EMAIL_FOR_QUOTE_TEXT' ;
update configuration set sort_order = ((select sort_order from (select * from configuration where configuration_key = 'EMAIL_FOR_QUOTE_TEXT') as c1)+1) where configuration_key = 'EMAIL_FOR_QUOTE_SUBJECT' ;

any suggestion what cause this issue and how to fix it to display as
image.png.c3b25d43f77666463df2fbc532fab0d0.png

Many thanks!  Lyn

   
Link to comment
Share on other sites

On 3/9/2020 at 5:28 PM, JcMagpie said:

What version od the add-on are you using? I am not aware of a Bootstrap version of this!

When a display is bad like that it's normaly due to a bad/missing closing tag </div> 

 

Hi Zahid,

Thank you for reply. I had modified 2.3.3.4 version to be used on BS and uploaded the the new addon as Referrals (only works for BS not for CE) before .

I install on CE 1.0.5.0 version this time, it is all working, but same as BS, the only problem is with the infobox format not working properly if admin set as ALWAYS mode OR TEST mode.

Lyn

Link to comment
Share on other sites

I think you( and other people)  will just have to accept the Phoenix may/will brake add-on's that are not made for it.

As to your problem look at the html generated in both conditions and compare, once you see the html that is causing the problem you will need to trace it back to the php producing it and make the required changes. In most case like this it is normly a missing closing tag </div> or somthing like that.

If your not confident about beeing able to track down the cause then if it's a site on a server pm or post the link.

Alternativley contact the person who modified the code for you.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...