Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Guarantee seal


dets03ab

Recommended Posts

Hi http://www.oscommerce.com/community/contri...ons,4471/page,7 trying to install this seal however the install instruction is not that great. Which file and where exactly should I insert:

 

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

 

and

 

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

Regards

 

Dets

Link to comment
Share on other sites

Hi http://www.oscommerce.com/community/contri...ons,4471/page,7 trying to install this seal however the install instruction is not that great. Which file and where exactly should I insert:

 

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

 

and

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

Regards

 

Dets

The instuctions say

How to install this add-on?

 

1- copy guarantee_seal.php to: catalog\includes\boxes\

 

2- add this line to catalog\includes\languages\english.php

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

 

4- In column left or right add the following to where you want to show the box.

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

That's all!!!

column left or right refers to catalog\includes\column_left.php or column_right.php

It really cannot get simpler than that

Link to comment
Share on other sites

Hi http://www.oscommerce.com/community/contri...ons,4471/page,7 trying to install this seal however the install instruction is not that great. Which file and where exactly should I insert:

 

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

 

and

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

Regards

 

Dets

Which line inside the page should I insert the line. After which code? I placed it in the top and got an error message........

Link to comment
Share on other sites

Hi http://www.oscommerce.com/community/contri...ons,4471/page,7 trying to install this seal however the install instruction is not that great. Which file and where exactly should I insert:

 

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

 

and

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

Regards

 

Dets

Yes I have tried that. It just does not state after which codes I put these lines? can i put anywhere inside the page? where exactly should I insert the code? e.g. can I paste include(DIR_WS_BOXES . 'Guarantee_seal.php'); anywhere inside the left column document? tried that and got error message......

Link to comment
Share on other sites

Which line inside the page should I insert the line. After which code? I placed it in the top and got an error message........

Which line of code?

 

The first can be put anywhere before the final ?> and personally I would put the code just above it. This is what you do when you put in new defines.

 

The second depends on where you want the box to be. On the left side of the page? on the right side of the page?

top, middle, bottom of left or right side, it is up to you.

Link to comment
Share on other sites

Yes I have tried that. It just does not state after which codes I put these lines? can i put anywhere inside the page? where exactly should I insert the code? e.g. can I paste include(DIR_WS_BOXES . 'Guarantee_seal.php'); anywhere inside the left column document? tried that and got error message......

There are 2 different english.php files - which one should I use? Sorry I am not programmer

Link to comment
Share on other sites

There are 2 different english.php files - which one should I use? Sorry I am not programmer

2- add this line to catalog\includes\languages\english.php

Link to comment
Share on other sites

Yes I have tried that. It just does not state after which codes I put these lines? can i put anywhere inside the page? where exactly should I insert the code? e.g. can I paste include(DIR_WS_BOXES . 'Guarantee_seal.php'); anywhere inside the left column document? tried that and got error message......

 

I get this error: Warning: main(includes/boxes/Guarantee_seal.php) [function.main]: failed to open stream: No such file or directory in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 29

 

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

?>

 

 

 

 

 

What am I doing wrong?

Link to comment
Share on other sites

I get this error: Warning: main(includes/boxes/Guarantee_seal.php) [function.main]: failed to open stream: No such file or directory in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 29

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

?>

What am I doing wrong?

Did you do

1- copy guarantee_seal.php to: catalog\includes\boxes\

 

2- add this line to catalog\includes\languages\english.php

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

Link to comment
Share on other sites

Did you do

1- copy guarantee_seal.php to: catalog\includes\boxes\

 

2- add this line to catalog\includes\languages\english.php

// Guarantee Verified Box

define ('GUARANTEE_HEADER', 'Guarantee');

Thanks m8 but I still get the error message. Then I saw I have not inserted the seal image in the "images" file, but that did not help.

 

Here is the codes for the 1 file in catalog/languages (English.php)

 


<?php
/*
$Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'USD');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

// page title
define('TITLE', 'Netfirms Commerce Pro');

// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Catalog');
define('HEADER_TITLE_LOGOFF', 'Log Off');
define('HEADER_TITLE_LOGIN', 'Log In');

// footer text in includes/footer.php
define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

// text for gender
define('MALE', 'Male');
define('FEMALE', 'Female');
define('MALE_ADDRESS', 'Mr.');
define('FEMALE_ADDRESS', 'Ms.');

and here is the code for column left:


<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

?>

 

The Guarrantee seal.php file I have inserted under catalog\includes\boxes\

The jpg image I have insereted under "images"

 

So sorry but have no idea what I am doing wrong here....

Link to comment
Share on other sites

Thanks m8 but I still get the error message. Then I saw I have not inserted the seal image in the "images" file, but that did not help.

 

Here is the codes for the 1 file in catalog/languages (English.php)

 


<?php
/*
$Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'USD');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

// page title
define('TITLE', 'Netfirms Commerce Pro');

// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Catalog');
define('HEADER_TITLE_LOGOFF', 'Log Off');
define('HEADER_TITLE_LOGIN', 'Log In');

// footer text in includes/footer.php
define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

// text for gender
define('MALE', 'Male');
define('FEMALE', 'Female');
define('MALE_ADDRESS', 'Mr.');
define('FEMALE_ADDRESS', 'Ms.');

and here is the code for column left:


<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

?>

 

The Guarrantee seal.php file I have inserted under catalog\includes\boxes\

The jpg image I have insereted under "images"

 

So sorry but have no idea what I am doing wrong here....

Knew something was bugging me, bet it is missing a define in the includes/filenames.php

 

define('FILENAME_Guarantee_seal', 'guarantee_seal.php');

 

or something similar.

Link to comment
Share on other sites

Have added the page now under filenames. Now I get the messgage: Warning: main() [function.include]: Failed opening 'includes/boxes/Guarantee_seal.php' for inclusion (include_path='.:/usr/local/nf/lib/php') in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 28

 


<?php
/*
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include(DIR_WS_BOXES . 'categories.php');
}

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
} else {
include(DIR_WS_BOXES . 'manufacturers.php');
}

require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'information.php');
include(DIR_WS_BOXES . 'Guarantee_seal.php');

?>

Link to comment
Share on other sites

could it be something else?

Thanks m8 but I still get the error message. Then I saw I have not inserted the seal image in the "images" file, but that did not help.

 

Here is the codes for the 1 file in catalog/languages (English.php)

 


<?php
/*
$Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'USD');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

// page title
define('TITLE', 'Netfirms Commerce Pro');

// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Catalog');
define('HEADER_TITLE_LOGOFF', 'Log Off');
define('HEADER_TITLE_LOGIN', 'Log In');

// footer text in includes/footer.php
define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

// text for gender
define('MALE', 'Male');
define('FEMALE', 'Female');
define('MALE_ADDRESS', 'Mr.');
define('FEMALE_ADDRESS', 'Ms.');

and here is the code for column left:


<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'Guarantee_seal.php');

 

?>

 

The Guarrantee seal.php file I have inserted under catalog\includes\boxes\

The jpg image I have insereted under "images"

 

So sorry but have no idea what I am doing wrong here....

Link to comment
Share on other sites

Have added the page now under filenames. Now I get the messgage: Warning: main() [function.include]: Failed opening 'includes/boxes/Guarantee_seal.php' for inclusion (include_path='.:/usr/local/nf/lib/php') in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 28

 


<?php
/*
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include(DIR_WS_BOXES . 'categories.php');
}

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
} else {
include(DIR_WS_BOXES . 'manufacturers.php');
}

require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'information.php');
include(DIR_WS_BOXES . 'Guarantee_seal.php');

?>

I think it should have worked, but you could try

require(DIR_WS_BOXES . 'Guarantee_seal.php');

Link to comment
Share on other sites

Where should I insert that line?
Warning: main(includes/boxes/Guarantee_seal.php) [function.main]: failed to open stream: No such file or directory in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 28
Link to comment
Share on other sites

Warning: main(includes/boxes/Guarantee_seal.php) [function.main]: failed to open stream: No such file or directory in /mnt/w1006/d36/s07/b02be82e/www/products/catalog/includes/column_left.php on line 28

If that is what you got, change it back and PM the author.

Else, leave it till tomorrow night (my time).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...