Jump to content
Sign in to follow this  
nana

fast easy checkout

Recommended Posts

Hello,

 

I installed FEC and it seems to work okay, but the right column of boxes on my homepage are underneath all my other text in the middle. How do I get the boxes back up in the proper position. you can see what I mean at www.seashellcrafter.com. Thank you for your help!

 

Janelle

Share this post


Link to post
Share on other sites
Hello,

 

I installed FEC and it seems to work okay, but the right column of boxes on my homepage are underneath all my other text in the middle. How do I get the boxes back up in the proper position. you can see what I mean at www.seashellcrafter.com. Thank you for your help!

 

Janelle

 

Hi did you replace your index.php. if so replace it with default or could it be due to this

Seashell Crafter also creates and sells trendy jewelry with seashell beads, pearls, Swarovski crystals, and sterling silver silver sea life charms.

 

Seashell Crafter Promotions

 

FREE SHIPPING! Receive FREE SHIPPING on all Jewelry Orders. Flat rate $4.99 shipping on all other orders.

 

FREE SEASHELL BRACELET! Not only will you get free shipping, but you will also get a free seashell bracelet ($2.99 Value) with a $25.00 purchase.

 

 

 

Seashell Crafter Schedule

Share this post


Link to post
Share on other sites

If anyone has trouble with php5.2 with uncommenting out line in below code

//fast easy checkout start
 foreach ($_SESSION as $key => $val) {
//Uncomment the next line for diagnostic purposes ONLY!
//print $key.' => '.$val.' - ';print_r($val);echo '<br>';
$HTTP_POST_VARS[$key] = $val;
 }

 

change to

//fast easy checkout start
 foreach ($_SESSION as $key => $val) {
//Uncomment the next line for diagnostic purposes ONLY!
//print $key.' => '.(is_object($val)?'':$val).' - ';print_r($val);echo '<br>';
$HTTP_POST_VARS[$key] = $val;
 }

Share this post


Link to post
Share on other sites

I'm also having problems with FEC and Discount Coupons. They seem incompatible out of the box and I'm trying to reinstate the functionality of my coupons.

 

I see that checkout_payment.php is bypassed in the filenames.php file (I think after FEC mod). I've moved the contents for the discount contribution to the checkout_shipping file to make the input portion execute. It does "pick up", but nothing else executes or recomputes the total value of the order.

 

I seem to be getting 'coupon_code' registered through the input box but in the checkout_confirmation.php file all the three following checks fail:

 

if (isset($_POST['coupon_code']) && !empty($_POST['coupon_code']) && (!tep_session_is_registered('coupon_code')) ) {

 

If anyone made this stuff work together, please throw a hint in this direction :)

Share this post


Link to post
Share on other sites

Hi!!

 

Somebody have installed Fast Easy Checkout with Points and Rewards??

 

Are this contribution compatible?

Share this post


Link to post
Share on other sites

Hello,

 

I installed FEC version 1.6 and CCGV (Full Package 29 Aug 2009). I was able to create discount coupon from admin and receive a coupon code in my email. For FEC, I use both part one and part two. I use create_account3.php version (I rename create_account3.php to create_account.php). I am getting these error messages when i try to use the coupon code:

 

1. When there's no item in the shopping cart, I click "Checkout" (checkout_shipping.php) and it tells me

 

Parse error: syntax error, unexpected T_STRING in /.../includes/classes/payment.php on line 89

 

the code on line 89 is:

payment_value='cot_gv';

 

2. When I add item to shopping cart (shopping_cart.php) and it gave me this message:

 

Fatal error: Call to a member function on a non-object in /.../includes/classes/shopping_cart.php on line 279

 

The code on line 279 is:

$this->total_virtual += $currencies->calculate_price($products_price, $products_tax, $qty * $no_count);

 

 

After this no matter which page i go, this error message remains there. I am not a php expert. I searched the forum and couldn't find the solution. Can anyone help please? Thank you very much!!

Edited by minipassat

Share this post


Link to post
Share on other sites

Hello,

 

I installed FEC version 1.6 and CCGV (Full Package 29 Aug 2009). I was able to create discount coupon from admin and receive a coupon code in my email. For FEC, I use both part one and part two. I use create_account3.php version (I rename create_account3.php to create_account.php). I am getting these error messages when i try to use the coupon code:

 

1. When there's no item in the shopping cart, I click "Checkout" (checkout_shipping.php) and it tells me

 

Parse error: syntax error, unexpected T_STRING in /.../includes/classes/payment.php on line 89

 

the code on line 89 is:

payment_value='cot_gv';

 

2. When I add item to shopping cart (shopping_cart.php) and it gave me this message:

 

Fatal error: Call to a member function on a non-object in /.../includes/classes/shopping_cart.php on line 279

 

The code on line 279 is:

$this->total_virtual += $currencies->calculate_price($products_price, $products_tax, $qty * $no_count);

 

 

After this no matter which page i go, this error message remains there. I am not a php expert. I searched the forum and couldn't find the solution. Can anyone help please? Thank you very much!!

 

I forgot to mention that I need both customer login and purchase without account functions. The FEC V1.6 works fine before i install CCGV module. Thank you!

Share this post


Link to post
Share on other sites

I forgot to mention that I need both customer login and purchase without account functions. The FEC V1.6 works fine before i install CCGV module. Thank you!

I think you might have removed some code or something do a file compare and check on the files you added CCGV with default FEC files use winmerge

Share this post


Link to post
Share on other sites

I think you might have removed some code or something do a file compare and check on the files you added CCGV with default FEC files use winmerge

 

Hi Steve,

 

Thank you for point this out. I open each file included in the FEC V1.6 and found that checkout_shipping.php (the new file) and create_account3.php have some code related to CCGV which were commented out. I'll try to un-comment them and see if they works. May I ask do you actually get these two modules works fine?

 

Thanks again!!

Share this post


Link to post
Share on other sites

Hi Steve,

 

Thank you for point this out. I open each file included in the FEC V1.6 and found that checkout_shipping.php (the new file) and create_account3.php have some code related to CCGV which were commented out. I'll try to un-comment them and see if they works. May I ask do you actually get these two modules works fine?

 

Thanks again!!

Hi,

 

Im using old version of FEC and coupons by ingo, so i don't have both of them modules, but i have added contributions that require the same line of code to be edited, and if not careful you can break the other contribution installed

 

Steve

Share this post


Link to post
Share on other sites

Hi,

 

Im using old version of FEC and coupons by ingo, so i don't have both of them modules, but i have added contributions that require the same line of code to be edited, and if not careful you can break the other contribution installed

 

Steve

 

Hi Steve,

 

I've double checked each file between FEC V1.6 and CCGV 5.19, it seems works "okay" until the checkout process stops at the checkout_confirmation.php page. The error message I received is:

 

When I select payment method with Paypal:

 

Fatal error: Cannot redeclare class paypal in .../includes/modules/payment/paypal.php on line 16

 

and the code of line 16 is:

 

class paypal {

 

When pay with credit card:

 

Fatal error: Cannot redeclare class cc in .../includes/modules/payment/cc.php on line 13

 

and the code of line 13 is:

 

class cc {

Samething happens to AuthorizeNet AIM module. It seems to be the "class" issue. I am new to PHP but i am not aware of this code. Can you help please? Or anyone can help please?

 

Thanks again!!

Share this post


Link to post
Share on other sites

Hi,

 

Im using old version of FEC and coupons by ingo, so i don't have both of them modules, but i have added contributions that require the same line of code to be edited, and if not careful you can break the other contribution installed

 

Steve

 

Hi Steve,

 

I gave up the CCGV and installed Coupons By Ingo the latest version (01/07/2008). Due to FEC does not require customer to create account or login before the checkout process, when clicking"checkout", it'll take me to create_account3.php page. I add this code (suppose to be at login.php page) to create_account3.php.

 

// coupon addon start
       if (tep_session_is_registered('coupon_code_code')) {
         $code_check_query = tep_db_query("select date_purchased from " . TABLE_COUPONS_SALES . " where coupons_code = '" . tep_db_input($coupon_code_code) . "' and customers_id = '" . (int)($customer_id) . "'");
         if (tep_db_num_rows($code_check_query)>0) {
           $check_result = tep_db_fetch_array($code_check_query);
           tep_session_unregister('coupon_code_code');
           tep_session_unregister('coupon_code_value');
           tep_redirect(tep_href_link(FILENAME_DEFAULT, 'error_message=' . COUPON_BOX_SORRY_CUSTOMER . ' (' . tep_date_short($check_result['date_purchased']) . ')'));
         }
       }
// coupon addon end

 

and add this code to the checkout_shipping.php page (suppose to be at checkout_payment.php page) since FEC combines payment and shipping on one page.

 

<tr>
       <td class="main"><b><?php echo TEXT_COUPON_HEADING; ?></b></td>
     </tr>
     <tr>
       <td><?php require(DIR_WS_INCLUDES . 'boxes/coupon_payment.php'); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>

 

However I still don't see any box appearing at the checkout_shipping.php page which allows me to enter the coupon code. What did it miss??

 

Thank you!!

Share this post


Link to post
Share on other sites

Finally I've got FEC worked with Coupon by Ingo. Thank Steve! It works fine except the calculation of the total price. A example as below:

 

Product Price: $124.95

Coupon (code): -$10.00

Tax (8.75%): $10.06

Shipping Charge: $50

----------------------

Total Price: $175.88

 

If you do the calculation line after line, you'll find that the total price should be $175.01 instead of $175.88. This is because it calculates everything first except coupon THEN minus the amount of coupon. Does anyone have this issue too? Can anyone tell me how to fix it please? Thank you very much!

Share this post


Link to post
Share on other sites

Wondering if anyone can assist with a formating problem,

Because of a custom template i had to go through the checkout_shipping.php

But its throwing everything off.

 

you can see a demo of the form at

 

https://cityofperfumes.com/checkout_shipping3.php

 

The payment and shipping option are lower then the main frame/table.

 

Anyone know what can fix this?

Share this post


Link to post
Share on other sites

Hello,

 

Im using a custom template with FEC which in in the middle of installing, however, since i had to go through the checkout_shipping.php and grap all the code so it would work. It caused chaos to the formating of the site,

 

https://cityofperfumes.com/checkout_shipping3.php

 

It now jumples the payment and Shipping option lower then the actual card, and im not really sure how to rix this,

 

Anyone have any idea.

 

Id greatly appreciate it

 

Thanks,

Share this post


Link to post
Share on other sites

Anyone? :)

 

Hello,

 

Im using a custom template with FEC which in in the middle of installing, however, since i had to go through the checkout_shipping.php and grap all the code so it would work. It caused chaos to the formating of the site,

 

https://cityofperfumes.com/checkout_shipping3.php

 

It now jumples the payment and Shipping option lower then the actual card, and im not really sure how to rix this,

 

Anyone have any idea.

 

Id greatly appreciate it

 

Thanks,

Share this post


Link to post
Share on other sites

Hi,

 

sorry for my English.....

 

With the payment module Paypal is indicated into the email for the order confirmation no summary, about so:

 

Order overview:

http://xxx/catalog/account_history_info.php/order_id/137

 

The Articles:

------------------------------------------------------

1 x TESTXXXXXXXX (TESTartnr-WT) = 0.15 EUR

------------------------------------------------------

 

????

????NO Details for the Complet-Order, NO Sum, NO Tax, NO ENDSUM

????

 

an then here the Shipping Adress:

 

Shipping Adress

------------------------------------------------------

Shipping Adress

 

Again only with the manner of payment Paypal - over checkout_confirm is all o.k. - is built there however the email in

paypal_standard.php (also in ipn), is missing there a variable, only which?

 

Thanks!!!!

Michel

Share this post


Link to post
Share on other sites

Just wanted to drop in a word of thanks, this contrib is A M A Z I N G!!

My customers are happier now, my store's (http://tbeyond.com) conversion rate is higher and we are really happy.

 

I looked for the correct contrib for a few days but the threads all have problems and I was confused with all the editions. The actual contrib is also very old and I was really skeptical. But with a bit of PHP knowledge I got it to work.

 

I know OSCOM 3 will have this feature in built which is really great.

 

This module has combined login/account creation/shipping for me. PERFECT.

 

I know I am asking for too much, but is it possible to combine payments pgae with confirmation page? This would really be the killer one as it will reduce one more step. Since payments page just lets people select a mode of payment (which is actually just two options for me), confirmation page is a few lines where most of my customers confirm, having them on one page will allow them to see the final order and select payment mode & just pay.

 

Thanks for the wonderful contrib, I know it is a really old one but working wonders.

Share this post


Link to post
Share on other sites

Just wanted to drop in a word of thanks, this contrib is A M A Z I N G!!

My customers are happier now, my store's (http://tbeyond.com) conversion rate is higher and we are really happy.

 

I looked for the correct contrib for a few days but the threads all have problems and I was confused with all the editions. The actual contrib is also very old and I was really skeptical. But with a bit of PHP knowledge I got it to work.

 

I know OSCOM 3 will have this feature in built which is really great.

 

This module has combined login/account creation/shipping for me. PERFECT.

 

I know I am asking for too much, but is it possible to combine payments pgae with confirmation page? This would really be the killer one as it will reduce one more step. Since payments page just lets people select a mode of payment (which is actually just two options for me), confirmation page is a few lines where most of my customers confirm, having them on one page will allow them to see the final order and select payment mode & just pay.

 

Thanks for the wonderful contrib, I know it is a really old one but working wonders.

 

I had a small problem after installing this contrib, some customers said they couldn't retrieve new passwords when they clicked on password forgotten link. The error was error: the e-mail address was not found in our records, please try again.

After some study I found that the problem is with customers who have N in their createaccount col in customers table. Dont know why, I thought N would mean they dont want to create an account, but apparently this customer was trying to check the status of his order after opting to not create an account.

 

Solution: In password_forgotten.php in your root, around line 22, delete AND createaccount!='N'

If you still have problems then try editing includes/languages/english/password_forgotten.php and search for define('EMAIL_PASSWORD_REMINDER_BODY',

then change remove all \n\n as it creates problems sometimes.

 

Hope this helps someone!

Share this post


Link to post
Share on other sites

Hey All,

 

I'm Trying to add 'Country_based_shipping' (http://www.oscommerce.com/community/contributions,2173) with FEC.

 

Can this be done?

 

So far, I've had nothing but errors.

 

Please let me know,

 

thx, txcrew

 

I know it has been 4 long years since this was posted, but I had exactly the same problem, I have v2.2 RC2, STS, FEC installed on latest PHP 5. My page layout was totally jumbled up in checkout_shipping page and errors were coming.

Basics first, replace all <? with <?php (dont replace <?php! )

Follow all instructions in the install file, the only place it differs is step 5, it says

5)---FIND-----------------

 

<?php

if (tep_count_shipping_modules() > 0) {

?>

 

6)---BEFORE, ADD-------------------------

 

 

<?php //BEGIN Country_based_shipping

if ($allow_shipping) {

//END Country_based_shipping

?>

 

Don't add it there, in checkout_shipping.php look for:

<?php require('includes/fec/products_box.php');?>

above this put:

<?php

//BEGIN Country_based_shipping

if ($allow_shipping) {

//END Country_based_shipping

?>

 

That should do it!

Follow rest of the install instructions.

 

And there is no proper forum thread for 2173 to show how it can work with FEC

Share this post


Link to post
Share on other sites

Steve (or anyone with an answer):

 

I've been running FEC for years, and now I'm trying to install MVS (Multi Vendor Shipping). I can get everything to work except for the checkout2confirmation.php file doesn't include the "Combined Shipping". The Combined Shipping appears on the checkout_confirmation page. Everything works correctly except for this.

 

Has anyone gotten this to integrate successfully or can point me in the right direction?

 

Thanks,

 

John

Share this post


Link to post
Share on other sites

Hello,

 

My store setting:

FEC 3.2

with create_account3.php activated

OSC version: MS2

PHP Version 4+

 

Problem description:

shipping address can not be recorded in admin/database if customer edit the shipTo address at the checkout_confirmation.php page. The revised shipTo address appears correctly in the paypal confirmation email but incorrect in the admin/database. So it causes problem to me to ship the order to wrong locations.

 

I did this test and found this:

If I entered desired billTo and shipTo address at the beginning of create_account3.php page then complete the checkout process without modifing shipTo, then both Paypal and admin show the desired address (which is correct).

 

Then after the 1st order is done, I continue to pleace the 2nd order by selecting another item and go to checkout page, I was taken directly to the checkout_shipping.php page (without the need of entering billto/shipto again). Then I proceed to the checkout_confirmation.php page and saw that the shipTo address automatically picked the billTo address, so I click "Edit" link to change the shipTo address then proceed the checkout. Now the Paypal did capture the revised shipTo but the admin still use billTo address (which is wrong).

 

Here is what I need the assistance with:

1. Auto-logoff after each order is completed?

 

Is it possible to clear all information customer has entered after the order is completed (auto logoff for no-account user)? I think this might solve the above issue. Force customer to enter every information again if they decide to place the 2nd order immediately following the 1st order.

 

2. How do I add ship to address input fields on create_account1.php?

 

The store doesn't require customers to create account but it requires both Billing and Shipping address on one page. It’s not the option for create_account1.php; therefore I use create_account3.php instead of create_account1.php but hide the create account options by commenting out the tables on the page. Is this doable?

 

3. Browser's back button for no-account user?

 

I tried both create_account1.php and create_account3.php, however if customer proceed to checkout_shipping.php and click the browser's back button to go back to the previous create_account1(or 3).page trying to change the addresses, they will be redirected to account_password_new.php where the customer is asked to enter the password (which confuses customer because they chose not to create account at the beginning!).

 

I am sorry for the long writing. I’m just trying to describe my issue as clear as possible. I have been encountering this problem since i installed FEC 1.6 version. Recently I upgrade to FEC 3.2 because I saw the installation note indicated "fix the shipping address not being selected at times". However the problem is still there. Can anyone help me please?!!

 

Much appreciated!!

Share this post


Link to post
Share on other sites

Can somebody help me with this step in installing FEC. It has to do with the includes/header.php, the step says;

------------------------------------------------------------------------------------------------------------------------

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

----------------------------------------------------------------

 

change to

 

---------------------------------------------------------------------------------

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <a href="<?php if (!tep_session_is_registered('createaccount')) {echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; } else {echo tep_href_link('account_password_new.php', '', 'SSL'); ?>" class="headerNavigation"><?php echo 'Create Account'; } ?></a> | <?php } else { ?><a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN;

?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

------------------------------------------------------------------------------------------------------

 

 

And my header.php file looks like this

 

-----------------------------------------------------------------------------------------------

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<!-- start -->

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>

</tr>

</table>

<?php

}

?>

<!-- start -->

<table cellpadding="0" cellspacing="0" border="0"><tr><td class="bg2_body">

<table cellpadding="0" cellspacing="0" border="0" align="center" class="width_table">

<tr><td class="width_td">

<table cellpadding="0" cellspacing="0" border="0" align="center">

<tr><td class="row_1">

<table cellpadding="0" cellspacing="0" border="0">

<tr>

<td class="logo"><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'logo.gif')?></a></td>

<td style="width:100%; vertical-align:middle;">

<table border="0" cellspacing="0" cellpadding="0" class="header">

<tr>

 

<td align="center">

<table border="0" cellspacing="0" cellpadding="0" align="center" style="width:210px">

<tr><td><?php echo BOX_HEADING_CURRENCIES?>:  </td><td style="width:100%;"><?php

echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');

reset($currencies->currencies);

$currencies_array = array();

while (list($key, $value) = each($currencies->currencies)) {

$currencies_array[] = array('id' => $key, 'text' => $value['title']);

}

$hidden_get_variables = '';

reset($HTTP_GET_VARS);

while (list($key, $value) = each($HTTP_GET_VARS)) {

if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {

$hidden_get_variables .= tep_draw_hidden_field($key, $value);

}

}

echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="select"') . $hidden_get_variables . tep_hide_session_id();

echo '</form>';

?></td>

</tr>

</table>

</td>

<td class="header_separator"><?php echo tep_image(DIR_WS_IMAGES.'header_separator.gif')?></td>

<td>

<table border="0" cellspacing="0" cellpadding="0" align="center" style="width:79px;">

<tr><td><?php

if (!isset($lng) || (isset($lng) && !is_object($lng))) {

include(DIR_WS_CLASSES . 'language.php');

$lng = new language;

}

$languages_string = '';

reset($lng->catalog_languages);

$i = 0;

while (list($key, $value) = each($lng->catalog_languages)) {

if ($i) $languages_string .= tep_image(DIR_WS_IMAGES.'spacer.gif','','','',' style="margin:0px 0px 0px 3px;"');

$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name'],'','','') . '</a>';

$i++;

}

echo $languages_string;

?></td>

</tr>

</table>

</td>

<td class="header_separator"><?php echo tep_image(DIR_WS_IMAGES.'header_separator.gif')?></td>

<td class="z1">

<table cellpadding="0" cellspacing="0" border="0" align="center">

<tr>

<td><b><?php echo BOX_HEADING_SHOPPING_CART?>:</b><?php echo BOX_SHOPPING_NOW?><a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY?></a></td>

</tr>

</table>

</td>

</tr>

</table> </td>

</tr>

</table>

<table cellpadding="0" cellspacing="0" border="0" style="">

<tr><td style="width:100%;">

<table cellpadding="0" cellspacing="0" border="0" class="menu">

<tr>

<?php

switch($tab_sel){

case 2:

$item_menu_01 = 'id="over_m1" onMouseOut="this.id=\'over_m1\';" onMouseOver="this.id=\'over2_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

break;

 

case 3:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="over_m2" onMouseOut="this.id=\'over_m2\';" onMouseOver="this.id=\'over2_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

break;

 

case 4:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="over_m3" onMouseOut="this.id=\'over_m3\';" onMouseOver="this.id=\'over2_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

break;

 

case 5:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="over_m4" onMouseOut="this.id=\'over_m4\';" onMouseOver="this.id=\'over2_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

break;

 

case 6:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="over_m5" onMouseOut="this.id=\'over_m5\';" onMouseOver="this.id=\'over2_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

break;

 

case 7:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="over_m6" onMouseOut="this.id=\'over_m6\';" onMouseOver="this.id=\'over2_m6\';"';

break;

 

default:

$item_menu_01 = 'id="m1" onMouseOut="this.id=\'m1\';" onMouseOver="this.id=\'over_m1\';"';

$item_menu_02 = 'id="m2" onMouseOut="this.id=\'m2\';" onMouseOver="this.id=\'over_m2\';"';

$item_menu_03 = 'id="m3" onMouseOut="this.id=\'m3\';" onMouseOver="this.id=\'over_m3\';"';

$item_menu_04 = 'id="m4" onMouseOut="this.id=\'m4\';" onMouseOver="this.id=\'over_m4\';"';

$item_menu_05 = 'id="m5" onMouseOut="this.id=\'m5\';" onMouseOver="this.id=\'over_m5\';"';

$item_menu_06 = 'id="m6" onMouseOut="this.id=\'m6\';" onMouseOver="this.id=\'over_m6\';"';

}

?>

 

<td <?php echo $item_menu_01;?> onClick="document.location='<?php echo tep_href_link('index.php')?>'" nowrap="nowrap"><? printf(BOX_MANUFACTURER_INFO_HOMEPAGE,"")?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td <?php echo $item_menu_02;?> onClick="document.location='<?php echo tep_href_link('products_new.php')?>'"><?php echo BOX_HEADING_WHATS_NEW?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td <?php echo $item_menu_03;?> onClick="document.location='<?php echo tep_href_link('specials.php')?>'"><?php echo BOX_HEADING_SPECIALS?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

 

<?php if (tep_session_is_registered('customer_id')) {

 

$acc_link = tep_href_link('account.php');

$acc_title= HEADER_TITLE_MY_ACCOUNT;

} else{

$acc_link = tep_href_link('create_account.php');

$acc_title= HEADER_TITLE_CREATE_ACCOUNT;

}

?>

<td <?php echo $item_menu_04;?> onClick="document.location='<?php echo $acc_link;?>'" nowrap="nowrap"><?php echo $acc_title;?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<?php if (tep_session_is_registered('customer_id')) {

 

$login_link = tep_href_link('logoff.php');

$login_title= HEADER_TITLE_LOGOFF;

} else{

$login_link = tep_href_link('login.php');

$login_title= HEADER_TITLE_LOGIN;

}

?>

<td <?php echo $item_menu_05;?> onClick="document.location='<?php echo $login_link;?>'"><?php echo $login_title;?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td <?php echo $item_menu_06;?> onClick="document.location='<?php echo tep_href_link('contact_us.php')?>'"><?php echo BOX_INFORMATION_CONTACT?></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

</tr>

</table>

</td>

<td class="search">

<?php echo tep_draw_form('search',tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false),'get') ?>

<table border="0" cellspacing="0" cellpadding="0" align="right" style="width:238px;">

<tr>

<td style="width:100%;"><input type=text name="keywords" class="go" value=""></td>

<td style="vertical-align:top; padding-left:6px;"><?php echo tep_image(DIR_WS_IMAGES.'search_bg3.gif')?></td>

<td style="background:url(images/search_bg33.gif) 100% 0px repeat-x;height:22px; vertical-align:middle;"><?php echo tep_image_submit('button_search_prod.gif', '', '')?></td><td style="vertical-align:top;"><?php echo tep_image(DIR_WS_IMAGES.'search_bg333.gif')?></td>

 

</tr>

</table></form>

</td></tr>

</table>

</td></tr>

<tr><td class="row_2">

 

-------------------------------------------------------------------------------------------

 

Thank you so much in advance, this is the only step that i cant figure out so if somebody can help it would complete me.

Share this post


Link to post
Share on other sites

Hey guys, I am currently installing the FEC file, I came to the installation where it asks to change a few things in the header.php. My website is template based and the file it asks to change does not exist. it asks to change the following:

 

around line 64 change THESE CHANGES ARE TO THE HEADER NAVIGATION LINKS AND PROVIDE SECOND CHANCE CREATE ACCOUNT IN HEADER ADJUST THIS TO THE WAY YOU LIKE

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

to

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <a href="<?php if (!tep_session_is_registered('createaccount')) {echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; } else {echo tep_href_link('account_password_new.php', '', 'SSL'); ?>" class="headerNavigation"><?php echo 'Create Account'; } ?></a> | <?php } else { ?><a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN;

?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

I do not have that code in my header.php this is all that is on my header.php:

 

if ($messageStack->size('header') > 0) {

echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';

}

 

?>

 

<div id="header">

<div class="cl_both">

 

<a class="logo fl_left" href="<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?>

<div class="navigation_block fl_right">

 

<div class="cl_both" align="right">

<div class="cl_both ofh">

<div class="currencies fl_right">

<label class="fl_left"></label></div>

 

<div class="languages fl_right"><label class="fl_left"></label></div>

 

 

 

</div>

</div>

 

<?php

if (($oscTemplate->hasBlocks('boxes_user_menu'))){

?>

<?php echo $oscTemplate->getBlocks('boxes_user_menu'); ?>

 

 

<?php

}

?>

<div class="cl_both" align="right">

<div align="right">Follow Us On:</br>

<a href ="http://www.facebook.com/SavingsHUB" target="Facebook"><img src="images/facebook_32.png" alt="Facebook" /></a>

<a href ="http://twitter.com/#!/SavingsHUB" target="Twitter"><img src="images/twitter_32.png" alt="Twitter" /></a>

<a href ="http://www.linkedin.com/pub/savingshub-llc/36/8a1/ba1" target="LinkedIn"><img src="images/LinkedIn_32.png" alt="LinkedIn" /></a>

<a href ="http://savingshub.blogspot.com" target="Blog"><img src="images/Blog_32.png" alt="Blog" /></a>

</div>

</div>

</div>

</div>

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>

</tr>

</table>

<?php

}

?>

 

 

What should i do? Any help is appreciated thank you.

Share this post


Link to post
Share on other sites

Also, I do not get this last part of the install :

STEP FIVE

 

to change the create account procedure look on top of checkout_shipping.php and make the changes necessary or change the defenition of FILENAME_CREATE_ACCOUNT in includes/filenames.php

 

first choice removes the create account option totaly from this stage

second choice combines login. and optional create an account

third choice combines login. and optional create an account

also on top of each create account page

uncomment the line based on which file you want to use

// tep_redirect(tep_href_link('create_account1.php', '', 'SSL'));

// tep_redirect(tep_href_link('create_account2.php', '', 'SSL'));

// tep_redirect(tep_href_link('create_account3.php', '', 'SSL'));

 

also all create account files have some configurations on top of the file to help you allow you some flexibility with the login and password fields

 

What is actually needed in order to get this step done. thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×