Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configuring php


chandni

Recommended Posts

Posted

hello there,

i have downloaded an oscommerce template from bluevoda and trying to configure it...but i am lost..can anyone help me with how the confiq.php file look the third step says

 

add these lines to your /catalog/includes/configure.php script. These lines

should go before the final line with the ?> characters on it.

 

// STS: ADD: Define Simple Template System files

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

// STS: EOADD

 

NOTE: DO NOT put the files in the /admin/ directories. This contribution

only works in the /catalog/ section.

 

 

i tried doing this but yet i cannot see my template ...it still shows the default template of oscommerce.. can anyone help me with install of this template pls

Posted

I would try following the below instructions pulled from: http://www.oscommerce.com/community/contri...ch,STS+template

 

Installation

 

NOTE: These install instructions refer to the "catalog" folder of your store, as it is in standard osCommerce 2.2MS2. If you have changed the name of this folder, to "store" or "shop" for example, use this name instead of "catalog" when you read the instructions. In any case, the folder structure in the STS package follows the structure of osCommerce, so you should be able to see where the files should be copied.

 

1) Make a backup of your application.

2) Do it again

 

3a) If you have a fresh MS2 installation, copy the files from the folder "clean_osc/catalog" over your catalog. This will overwrite some original files and add new ones. That's it, you can now jump to the configuration section, little bit more down this document.

 

3b) If you have already installed other contributions, copy only new files to your application. All new files are located in the "upload/catalog" folder. You then have to do some changes manually. Continue reading:

 

 

Admin side

 

- admin/modules.php:

find: switch ($set) {

add after:

// START STS 4.1

case 'sts':

$module_type = 'sts';

$module_directory = DIR_FS_CATALOG_MODULES . 'sts/';

$module_key = 'MODULE_STS_INSTALLED';

define('HEADING_TITLE', HEADING_TITLE_MODULES_STS);

break;

// END STS 4.1

 

- admin/includes/languages/english.php (+other languages):

Add at the end:

//START STS 4.1

define('BOX_MODULES_STS', 'STS');

//END STS 4.1

 

- admin/includes/boxes/modules.php:

find:

'<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .

add after:

// START STS 4.1

'<a href="' . tep_href_link(FILENAME_MODULES, 'set=sts', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_STS . '</a><br>' .

// END STS 4.1

 

- admin/includes/languages/english/modules.php (+other languages):

Add at the end:

//START STS 4.1

define('HEADING_TITLE_MODULES_STS', 'STS Modules');

//END STS 4.1

 

 

Catalog side

 

- Open catalog/includes/application_top.php

add at the end:

// START STS 4.1

require (DIR_WS_CLASSES.'sts.php');

$sts= new sts();

$sts->start_capture();

// END STS 4.1

 

- Open catalog/includes/header.php

add at the beginning:

// START STS 4.1

$sts->restart_capture ('applicationtop2header');

// END STS 4.1

 

- Open catalog/includes/column_left.php

add at the beginning:

// START STS 4.1

if ($sts->display_template_output) {

include DIR_WS_MODULES.'sts_inc/sts_column_left.php';

} else {

//END STS 4.1

 

add at the end:

// START STS 4.1

}

// END STS 4.1

 

- Open catalog/includes/column_right.php

add at the beginning:

// START STS 4.1

if ($sts->display_template_output) {

$sts->restart_capture ('content');

} else {

//END STS 4.1

 

add at the end:

// START STS 4.1

}

// END STS 4.1

 

- Open catalog/includes/footer.php

add at the beginning:

// START STS 4.1

if ($sts->display_template_output) {

include DIR_WS_MODULES.'sts_inc/sts_footer.php';

} else {

//END STS 4.1

 

add at the end:

// START STS 4.1

}

// END STS 4.1

Andrew Yuen

osCommerce, Community Team

Archived

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

×
×
  • Create New...