Jump to content
Sign in to follow this  
nana

fast easy checkout

Recommended Posts

Thanks for your reply...

 

I see some of you guys use Authorize.net for credit cards.. I use Paypal WPP and now I get this error message:

 

The credit card information you entered contains an error. Please check it and try again.

 

The first four digits of the number entered are:

If that number is correct, we do not accept that type of credit card.

If it is wrong, please try again.

 

The contribution is great, but if customers cant pay for their orthers.. then... what do have?

Share this post


Link to post
Share on other sites

The only est credit cardnumber that seems to work for me is 4111111111111111 with any future experation date and any 3 digit cvv code (if applicable).

 

Also...

did the fixes I posted work for you? I ask because I reinstalled this contribution in a different way (i left out the step #1 (combining shipping/payment). I was getting the same password error Then I applied the part of the instructions that stated to do so only if you had problems (see below). That did fix my password problem.

 

*************************

in includes/form_check.js.php

around line 61

change

THIS IS TO REMOVE THE ERROR IF NO PASSWORD IS SELECTED SO ONLY DO IF YOU HAVE PROBLEM

check_password("password", "confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_ERROR_NOT_MATCHING; ?>");
 check_password_new("password_current", "password_new", "password_confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING; ?>");
if (error == true) {
alert(error_message);
return false;
 } else {
submitted = true;
return true;
 }
}
//--></script>

 

to

 

//fast easy checkout start
<?php if (($show_account_box >= 1)&&($fromlogin!=1)) {?>
if(form.elements["createaccount"].checked){
 check_password("password", "confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_ERROR_NOT_MATCHING; ?>");
 check_password_new("password_current", "password_new", "password_confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING; ?>");
}
<?php }?>
 <?php if ($fromlogin==1) {?>

 check_password("password", "confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_ERROR_NOT_MATCHING; ?>");
 check_password_new("password_current", "password_new", "password_confirmation", <?php echo ENTRY_PASSWORD_MIN_LENGTH; ?>, "<?php echo ENTRY_PASSWORD_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR; ?>", "<?php echo ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING; ?>");

<?php }?>
 <?php if ($second_address == 1){?>

check_input("ShipAddress", <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?>, "<?php echo ENTRY_STREET_ADDRESS_ERROR; ?>");
check_input("ShipFirstName", <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_FIRST_NAME_ERROR; ?>");
 check_input("ShipLastName", <?php echo ENTRY_LAST_NAME_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_LAST_NAME_ERROR; ?>");

 check_input("ShipAddress", <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_STREET_ADDRESS_ERROR; ?>");
 check_input("shippostcode", <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_POST_CODE_ERROR; ?>");
 check_input("ShipCity", <?php echo ENTRY_CITY_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_CITY_ERROR; ?>");
check_input("shiptelephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_TELEPHONE_NUMBER_ERROR; ?>");
<?php if (ACCOUNT_STATE == 'true') echo '  check_input("shippingstate", ' . ENTRY_STATE_MIN_LENGTH . ', "' . ENTRY_STATE_ERROR . '");' . "\n"; ?>

 check_select("shipcountry", "", "<?php echo ENTRY_SHIPPING_COUNTRY_ERROR; ?>");

<?php }else{?>
 if (form.elements["ShipAddress"] && (form.elements["ShipAddress"].value != '') ) {
check_input("ShipFirstName", <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_FIRST_NAME_ERROR; ?>");
 check_input("ShipLastName", <?php echo ENTRY_LAST_NAME_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_LAST_NAME_ERROR; ?>");

 check_input("ShipAddress", <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_STREET_ADDRESS_ERROR; ?>");
 check_input("shippostcode", <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_POST_CODE_ERROR; ?>");
 check_input("ShipCity", <?php echo ENTRY_CITY_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_CITY_ERROR; ?>");
check_input("shiptelephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_SHIPPING_TELEPHONE_NUMBER_ERROR; ?>");
<?php if (ACCOUNT_STATE == 'true') echo '  check_input("shippingstate", ' . ENTRY_STATE_MIN_LENGTH . ', "' . ENTRY_STATE_ERROR . '");' . "\n"; ?>

 check_select("shipcountry", "", "<?php echo ENTRY_SHIPPING_COUNTRY_ERROR; ?>");
}
<?php }?>
if (error == true) {
alert(error_message);
return false;
 } else {
submitted = true;
return true;
 }
}
//--></script>
<script LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var ShipFirstName = "";
var ShipLastName = "";
var shipsuburb = "";
var shipcompany = "";
var ShipAddress = "";
var shipsuburb = "";
var ShipCity = "";
var shippingstate = "";
var shipcountry = "";
var ShipStateIndex = 0;
var shippostcode = "";
var ShipConfirm = 0;

function InitSaveVariables(form) {
ShipFirstName = form.ShipFirstName.value;
ShipLastName = form.ShipLastName.value;
shipsuburb = form.shipsuburb.value;
shipcompany = form.shipcompany.value;
ShipAddress = form.ShipAddress.value;

ShipCity = form.ShipCity.value;
shipcountry = form.shipcountry.value;
shippostcode = form.shippostcode.value;
//ShipStateIndex = form.ShipState.selectedIndex;
shippingstate = form.shippingstate.value;
//ShipConfirm = form.ShipConfirm.checked;
}

function ShipToBillPerson(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.ShipFirstName.value = form.firstname.value;
form.ShipLastName.value = form.lastname.value;
form.shipcountry.value = form.country.value;
form.shipcompany.value = form.company.value;
form.ShipAddress.value = form.street_address.value;
form.shipsuburb.value = form.suburb.value;
form.ShipCity.value = form.City.value;
form.shippostcode.value = form.postcode.value;
form.shippingstate.value = form.state.value;
//form.ShipState.selectedIndex = form.state.selectedIndex;
//form.ShipConfirm.checked = form.BillConfirm.checked;
}
else {
form.ShipFirstName.value = ShipFirstName;
form.ShipLastName.value = ShipLastName;
form.shipcountry.value = shipcountry;
form.shipcompany.value = shipcompany;
form.ShipAddress.value = ShipAddress;
form.shipsuburb.value = shipsuburb;
form.ShipCity.value = ShipCity;
form.shippostcode.value = shippostcode;
form.shippingstate.value = shippingstate;
//form.ShipState.selectedIndex = ShipStateIndex;
//form.ShipConfirm.checked = ShipConfirm;
  }
}
//  End -->
</script>
<script type="text/javascript">
<?php if ($show_account_box == 1){?>
if (document.getElementById) onload = function () {
document.getElementById ('toggle').onclick = function () {document.getElementById ('lorem').className = this.checked ? 'show' : 'hide'}
document.getElementById ('lorem').className = 'hide'
}
<?php } ?>
</script>

<style type="text/css">
.hide {display:none}
.show {display:block}
</style>

Share this post


Link to post
Share on other sites

I am not able to see the new total when I click the "get new total" button. I also have an error on the page that does not seem to be causing any problems but the error is shown in the ststus bar as line 36(checkout_shipping)

tep_session_register('billto')

Share this post


Link to post
Share on other sites

i tried the same thing in form_check.js.php before and that didn't work on create_account2.php.

 

I also got this same problem "not able to see the new total when I click the "get new total" button.

 

So I decided to take out the contribution, since on top of all this paypal wpp i not working

Share this post


Link to post
Share on other sites

Hi Guys,

Looks great the contrib, its exactly what i would like done to my checkout...i just have a few questions -

 

I have PWA with no account creation option and

the straight to the shipping page contrib.

 

I want to combine the shipping page, payment page as seen in the page on your contrib. Is there any contribs or can any one point me in the right direction for this, just this addition to my setup? I mean just the shipping and payment page joining...

 

If you want to look at what i have setup on my site -

Natural Emu Oil Skin Care

 

Much would be appreciated on all comments...

Kind Regards,

Timon

http://www.naturalbodyskincare.com

Share this post


Link to post
Share on other sites
Would it be possible to install FEC without using the combo checkout_shipping/payment page?

The instrunctions for installation leads me to believe that it is possible. I don't know all of the code inside & out so I don't know if that would create additional errors.

 

So in essence, have the first page (create_account1.php,create_account2.php or create_account3.php) then the rest of the checkout procedure be the standard pages?

I ask this because I like the a.net AIM mod and I like having the "create account" option that FEC offers. I got the AIM mod to work (quite easily) with the standard checkout procedures.

 

 

I found a contrib called: Login Page a la Amazon

 

Check it out...

 

http://www.oscommerce.com/community/contri...ll/search,login

 

I havent installed it but I will, and i'll tell ya how it went

Share this post


Link to post
Share on other sites

I added the code to form_checkjs.php and the password problem is solved and it goes through to the checkout after you add the information required for billing and shipping. But I still can't figure out how to change that font color....any help?

 

spencermjax, thank you for taking a look at the site and letting me know about the password problem, I really appreicate it.

 

For anyone who might be able to help but needs to see which font I'm talking about here is the link to my site.....Oodles of Jewels

 

I just need to change the color of the "Create an Account?" font as it is almost the exact same color as the border/background. :blink:

Share this post


Link to post
Share on other sites

Hi again, I fixed the font problem...well I just changed the background color but it works so that's all good, so now once I get through that and process the order and I get to checkout_process.php I am getting these errors

Warning: Invalid argument supplied for foreach() in /xxx/xxxx/xxxx/xxxxx/oodlesofjewels.biz/checkout_process.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/oodlesofjewels.biz/checkout_process.php:129) in /xxx/xxx/xxxx/xxxxx/oodlesofjewels.biz/includes/functions/general.php on line 33

 

here is my checkout_process.php file

 

<?php

/*

$Id: checkout_process.php,v 1.128 2003/05/28 18:00:29 hpdl Exp $

 

Modified for MVS V1.0 2006/03/25 JCK/CWG

osCommerce, Open Source E-Commerce Solutions

[url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 

Copyright ? 2006 osCommerce

 

Released under the GNU General Public License

*/

 

////fec configuration

$allow_second_chance_account_in_email=1;// set to 1 to allow create an account in email

include('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . 'fast_account.php');

 

 

// if the customer is not logged on, redirect them to the login page

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

if (!tep_session_is_registered('sendto')) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

}

 

if ( (tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) ) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

}

 

// avoid hack attempts during the checkout procedure by checking the internal cartID

if (isset($cart->cartID) && tep_session_is_registered('cartID')) {

if ($cart->cartID != $cartID) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

}

}

 

include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PROCESS);

 

// load selected payment module

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment($payment);

 

//MVS start

// load the selected shipping module

if (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'true')){

include(DIR_WS_CLASSES . 'vendor_shipping.php');

} elseif (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'false')){

include(DIR_WS_CLASSES . 'shipping.php');

}

$shipping_modules = new shipping($shipping);

//MVS End

 

require(DIR_WS_CLASSES . 'order.php');

$order = new order;

 

// load the before_process function from the payment modules

$payment_modules->before_process();

 

require(DIR_WS_CLASSES . 'order_total.php');

$order_total_modules = new order_total;

 

$order_totals = $order_total_modules->process();

 

$sql_data_array = array('customers_id' => $customer_id,

'customers_name' => $order->customer['firstname'] . ' ' . $order->customer['lastname'],

'customers_company' => $order->customer['company'],

'customers_street_address' => $order->customer['street_address'],

'customers_suburb' => $order->customer['suburb'],

'customers_city' => $order->customer['city'],

'customers_postcode' => $order->customer['postcode'],

'customers_state' => $order->customer['state'],

'customers_country' => $order->customer['country']['title'],

'customers_telephone' => $order->customer['telephone'],

'customers_email_address' => $order->customer['email_address'],

'customers_address_format_id' => $order->customer['format_id'],

'delivery_name' => $order->delivery['firstname'] . ' ' . $order->delivery['lastname'],

'delivery_company' => $order->delivery['company'],

'delivery_street_address' => $order->delivery['street_address'],

'delivery_suburb' => $order->delivery['suburb'],

'delivery_city' => $order->delivery['city'],

'delivery_postcode' => $order->delivery['postcode'],

'delivery_state' => $order->delivery['state'],

'delivery_country' => $order->delivery['country']['title'],

'delivery_address_format_id' => $order->delivery['format_id'],

'billing_name' => $order->billing['firstname'] . ' ' . $order->billing['lastname'],

'billing_company' => $order->billing['company'],

'billing_street_address' => $order->billing['street_address'],

'billing_suburb' => $order->billing['suburb'],

'billing_city' => $order->billing['city'],

'billing_postcode' => $order->billing['postcode'],

'billing_state' => $order->billing['state'],

'billing_country' => $order->billing['country']['title'],

'billing_address_format_id' => $order->billing['format_id'],

'payment_method' => $order->info['payment_method'],

'cc_type' => $order->info['cc_type'],

'cc_owner' => $order->info['cc_owner'],

'cc_number' => $order->info['cc_number'],

'cc_expires' => $order->info['cc_expires'],

'date_purchased' => 'now()',

'orders_status' => $order->info['order_status'],

'currency' => $order->info['currency'],

'currency_value' => $order->info['currency_value']);

tep_db_perform(TABLE_ORDERS, $sql_data_array);

$insert_id = tep_db_insert_id();

for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {

$sql_data_array = array('orders_id' => $insert_id,

'title' => $order_totals[$i]['title'],

'text' => $order_totals[$i]['text'],

'value' => $order_totals[$i]['value'],

'class' => $order_totals[$i]['code'],

'sort_order' => $order_totals[$i]['sort_order']);

tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);

}

 

$customer_notification = (SEND_EMAILS == 'true') ? '1' : '0';

$sql_data_array = array('orders_id' => $insert_id,

'orders_status_id' => $order->info['order_status'],

'date_added' => 'now()',

'customer_notified' => $customer_notification,

'comments' => $order->info['comments']);

tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

 

//MVS - added insert for new orders_shipping table

$shipping_array = $shipping['vendor'];

foreach ($shipping_array as $vendors_id => $shipping_data) {

$vendors_query = tep_db_query("select vendors_name

from " . TABLE_VENDORS . "

where vendors_id = '" . (int)$vendors_id . "'"

);

$vendors_name = 'Unknown';

if ($vendors = tep_db_fetch_array($vendors_query)) {

$vendors_name = $vendors['vendors_name'];

}

$shipping_method_array = explode ('_', $shipping_data['id']);

if ($shipping_method_array[0] == 'fedex1') {

$shipping_method = 'Federal Express';

} elseif ($shipping_method_array[0] == 'upsxml') {

$shipping_method = 'UPS';

} elseif ($shipping_method_array[0] == 'usps') {

$shipping_method = 'USPS';

} else {

$shipping_method = $shipping_method_array[0];

}

$sql_data_array = array('orders_id' => $insert_id,

'vendors_id' => $vendors_id,

'shipping_module' => $shipping_method,

'shipping_method' => $shipping_data['title'],

'shipping_cost' => $shipping_data['cost'],

'shipping_tax' => $shipping_data['ship_tax'],

'vendors_name' => $vendors_name,

'vendor_order_sent' => 'no'

);

tep_db_perform(TABLE_ORDERS_SHIPPING, $sql_data_array);

}

//MVS End

 

// initialized for the email confirmation

$products_ordered = '';

$subtotal = 0;

$total_tax = 0;

 

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

// Stock Update - Joao Correia

if (STOCK_LIMITED == 'true') {

if (DOWNLOAD_ENABLED == 'true') {

$stock_query_raw = "SELECT products_quantity, pad.products_attributes_filename

FROM " . TABLE_PRODUCTS . " p

LEFT JOIN " . TABLE_PRODUCTS_ATTRIBUTES . " pa

ON p.products_id=pa.products_id

LEFT JOIN " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad

ON pa.products_attributes_id=pad.products_attributes_id

WHERE p.products_id = '" . tep_get_prid($order->products[$i]['id']) . "'";

// Will work with only one option for downloadable products

// otherwise, we have to build the query dynamically with a loop

$products_attributes = $order->products[$i]['attributes'];

if (is_array($products_attributes)) {

$stock_query_raw .= " AND pa.options_id = '" . $products_attributes[0]['option_id'] . "' AND pa.options_values_id = '" . $products_attributes[0]['value_id'] . "'";

}

$stock_query = tep_db_query($stock_query_raw);

} else {

$stock_query = tep_db_query("select products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

}

if (tep_db_num_rows($stock_query) > 0) {

$stock_values = tep_db_fetch_array($stock_query);

// do not decrement quantities if products_attributes_filename exists

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) {

$stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];

} else {

$stock_left = $stock_values['products_quantity'];

}

tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {

tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

}

}

}

 

// Update products_ordered (for bestsellers list)

tep_db_query("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('%d', $order->products[$i]['qty']) . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

 

//MVS start - added 'vendors_id' => ...

$sql_data_array = array('orders_id' => $insert_id,

'products_id' => tep_get_prid($order->products[$i]['id']),

'products_model' => $order->products[$i]['model'],

'products_name' => $order->products[$i]['name'],

'products_price' => $order->products[$i]['price'],

'final_price' => $order->products[$i]['final_price'],

'products_tax' => $order->products[$i]['tax'],

'products_quantity' => $order->products[$i]['qty'],

'vendors_id' => $order->products[$i]['vendors_id']

); //MVS end

tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);

$order_products_id = tep_db_insert_id();

 

//------insert customer choosen option to order--------

$attributes_exist = '0';

$products_ordered_attributes = '';

if (isset($order->products[$i]['attributes'])) {

$attributes_exist = '1';

for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {

if (DOWNLOAD_ENABLED == 'true') {

$attributes_query = "select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix, pad.products_attributes_maxdays, pad.products_attributes_maxcount , pad.products_attributes_filename

from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa

left join " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad

on pa.products_attributes_id=pad.products_attributes_id

where pa.products_id = '" . $order->products[$i]['id'] . "'

and pa.options_id = '" . $order->products[$i]['attributes'][$j]['option_id'] . "'

and pa.options_id = popt.products_options_id

and pa.options_values_id = '" . $order->products[$i]['attributes'][$j]['value_id'] . "'

and pa.options_values_id = poval.products_options_values_id

and popt.language_id = '" . $languages_id . "'

and poval.language_id = '" . $languages_id . "'";

$attributes = tep_db_query($attributes_query);

} else {

$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . $order->products[$i]['id'] . "' and pa.options_id = '" . $order->products[$i]['attributes'][$j]['option_id'] . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $order->products[$i]['attributes'][$j]['value_id'] . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'");

}

$attributes_values = tep_db_fetch_array($attributes);

 

$sql_data_array = array('orders_id' => $insert_id,

'orders_products_id' => $order_products_id,

'products_options' => $attributes_values['products_options_name'],

'products_options_values' => $attributes_values['products_options_values_name'],

'options_values_price' => $attributes_values['options_values_price'],

'price_prefix' => $attributes_values['price_prefix']);

tep_db_perform(TABLE_ORDERS_PRODUCTS_ATTRIBUTES, $sql_data_array);

 

if ((DOWNLOAD_ENABLED == 'true') && isset($attributes_values['products_attributes_filename']) && tep_not_null($attributes_values['products_attributes_filename'])) {

$sql_data_array = array('orders_id' => $insert_id,

'orders_products_id' => $order_products_id,

'orders_products_filename' => $attributes_values['products_attributes_filename'],

'download_maxdays' => $attributes_values['products_attributes_maxdays'],

'download_count' => $attributes_values['products_attributes_maxcount']);

tep_db_perform(TABLE_ORDERS_PRODUCTS_DOWNLOAD, $sql_data_array);

}

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name'];

}

}

//------insert customer choosen option eof ----

$total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']);

$total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];

$total_cost += $total_products_price;

 

//MVS begin

if (SELECT_VENDOR_EMAIL_OPTION == 'false') {

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

}

}

if (SELECT_VENDOR_EMAIL_OPTION == 'true') {

$order_id = $insert_id;

require(DIR_WS_INCLUDES . 'vendor_order_data.php');

}

function vendors_email($vendors_id, $oID, $status, $vendor_order_sent) {

$vendor_order_sent = false;

$debug='no';

$vendor_order_sent = 'no';

$index2 = 0;

//let's get the Vendors

$vendor_data_query = tep_db_query("select v.vendors_id, v.vendors_name, v.vendors_email, v.vendors_contact, v.vendor_add_info, v.vendor_street, v.vendor_city, v.vendor_state, v.vendors_zipcode, v.vendor_country, v.account_number, v.vendors_status_send, os.shipping_module, os.shipping_method, os.shipping_cost, os.shipping_tax, os.vendor_order_sent from " . TABLE_VENDORS . " v, " . TABLE_ORDERS_SHIPPING . " os where v.vendors_id=os.vendors_id and v.vendors_id='" . $vendors_id . "' and os.orders_id='" . (int)$oID . "' and v.vendors_status_send='" . $status . "'");

while ($vendor_order = tep_db_fetch_array($vendor_data_query)) {

$vendor_products[$index2] = array('Vid' => $vendor_order['vendors_id'],

'Vname' => $vendor_order['vendors_name'],

'Vemail' => $vendor_order['vendors_email'],

'Vcontact' => $vendor_order['vendors_contact'],

'Vaccount' => $vendor_order['account_number'],

'Vstreet' => $vendor_order['vendor_street'],

'Vcity' => $vendor_order['vendor_city'],

'Vstate' => $vendor_order['vendor_state'],

'Vzipcode' => $vendor_order['vendors_zipcode'],

'Vcountry' => $vendor_order['vendor_country'],

'Vaccount' => $vendor_order['account_number'], 'Vinstructions' => $vendor_order['vendor_add_info'],

'Vmodule' => $vendor_order['shipping_module'], 'Vmethod' => $vendor_order['shipping_method']);

if ($debug == 'yes') {

echo 'The vendor query: ' . $vendor_order['vendors_id'] . '<br>';

}

$index = 0;

$vendor_orders_products_query = tep_db_query("select o.orders_id, o.orders_products_id, o.products_model, o.products_id, o.products_quantity, o.products_name, p.vendors_id, p.vendors_prod_comments, p.vendors_prod_id, p.vendors_product_price from " . TABLE_ORDERS_PRODUCTS . " o, " . TABLE_PRODUCTS . " p where p.vendors_id='" . (int)$vendor_order['vendors_id'] . "' and o.products_id=p.products_id and o.orders_id='" . $oID . "' order by o.products_name");

while ($vendor_orders_products = tep_db_fetch_array($vendor_orders_products_query)) {

$vendor_products[$index2]['vendor_orders_products'][$index] = array(

'Pqty' => $vendor_orders_products['products_quantity'],

'Pname' => $vendor_orders_products['products_name'],

'Pmodel' => $vendor_orders_products['products_model'],

'Pprice' => $vendor_orders_products['products_price'],

'Pvendor_name' => $vendor_orders_products['vendors_name'],

'Pcomments' => $vendor_orders_products['vendors_prod_comments'],

'PVprod_id' => $vendor_orders_products['vendors_prod_id'],

'PVprod_price' => $vendor_orders_products['vendors_product_price'],

'spacer' => '-');

//MVS end

if ($debug == 'yes') {

echo 'The products query: ' . $vendor_orders_products['products_name'] . '<br>';

}

$subindex = 0;

$vendor_attributes_query = tep_db_query("select products_options, products_options_values, options_values_price, price_prefix from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$oID . "' and orders_products_id = '" . (int)$vendor_orders_products['orders_products_id'] . "'");

if (tep_db_num_rows($vendor_attributes_query)) {

while ($vendor_attributes = tep_db_fetch_array($vendor_attributes_query)) {

$vendor_products[$index2]['vendor_orders_products'][$index]['vendor_attributes'][$subindex] = array('option' => $vendor_attributes['products_options'],

'value' => $vendor_attributes['products_options_values'],

'prefix' => $vendor_attributes['price_prefix'],

'price' => $vendor_attributes['options_values_price']);

 

$subindex++;

}

}

$index++;

}

$index2++;

// let's build the email

// Get the delivery address

$delivery_address_query = tep_db_query("select distinct delivery_company, delivery_name, delivery_street_address, delivery_city, delivery_state, delivery_postcode from " . TABLE_ORDERS . " where orders_id='" . $oID ."'");

$vendor_delivery_address_list = tep_db_fetch_array($delivery_address_query);

 

if ($debug == 'yes') {

echo 'The number of vendors: ' . sizeof($vendor_products) . '<br>';

}

$email='';

for ($l=0, $m=sizeof($vendor_products); $l<$m; $l++) {

 

$vendor_country = tep_get_country_name($vendor_products[$l]['Vcountry']);

$order_number= $oID;

$vendors_id=$vendor_products[$l]['Vid'];

$the_email=$vendor_products[$l]['Vemail'];

$the_name=$vendor_products[$l]['Vname'];

$the_contact=$vendor_products[$l]['Vcontact'];

$email= '<b>To: ' . $the_contact . ' <br>' . $the_name . '<br>' . $the_email . '<br>' .

$vendor_products[$l]['Vstreet'] .'<br>' .

$vendor_products[$l]['Vcity'] .', ' .

$vendor_products[$l]['Vstate'] .' ' .

$vendor_products[$l]['Vzipcode'] . ' ' . $vendor_country . '<br>' . '<br>' . EMAIL_SEPARATOR . '<br>' . 'Special Comments or Instructions: ' . $vendor_products[$l]['Vinstructions'] .'<br>' . '<br>' . EMAIL_SEPARATOR . '<br>' . 'From: ' . STORE_OWNER . '<br>' . STORE_NAME_ADDRESS . '<br>' . 'Accnt #: ' . $vendor_products[$l]['Vaccount'] . '<br>' . EMAIL_SEPARATOR . '<br>' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . '<br>' . EMAIL_SEPARATOR . '<br>' . '<br> Shipping Method: ' . $vendor_products[$l]['Vmodule'] . ' -- ' . $vendor_products[$l]['Vmethod'] . '<br>' . EMAIL_SEPARATOR . '<br>' . '<br>Dropship deliver to:<br>' .

$vendor_delivery_address_list['delivery_company'] .'<br>' .

$vendor_delivery_address_list['delivery_name'] .'<br>' .

$vendor_delivery_address_list['delivery_street_address'] .'<br>' .

$vendor_delivery_address_list['delivery_city'] .', ' .

$vendor_delivery_address_list['delivery_state'] . ' ' . $vendor_delivery_address_list['delivery_postcode'] . '<br><br>';

$email = $email . '<table width="75%" border=1 cellspacing="0" cellpadding="3">

<tr><td>Qty:</td><td>Product Name:</td><td>Item Code/Number:</td><td>Product Model:</td><td>Per Unit Price:</td><td>Item Comments: </td></tr>';

for ($i=0, $n=sizeof($vendor_products[$l]['vendor_orders_products']); $i<$n; $i++) {

$product_attribs ='';

if (isset($vendor_products[$l]['vendor_orders_products'][$i]['vendor_attributes']) && (sizeof($vendor_products[$l]['vendor_orders_products'][$i]['vendor_attributes']) > 0)) {

 

for ($j = 0, $k = sizeof($vendor_products[$l]['vendor_orders_products'][$i]['vendor_attributes']); $j < $k; $j++) {

$product_attribs .= '??' . $vendor_products[$l]['vendor_orders_products'][$i]['vendor_attributes'][$j]['option'] . ': ' . $vendor_products[$l]['vendor_orders_products'][$i]['vendor_attributes'][$j]['value'] . '<br>';

}

}

$email = $email . '<tr><td>?' . $vendor_products[$l]['vendor_orders_products'][$i]['Pqty'] .

'</td><td>?' . $vendor_products[$l]['vendor_orders_products'][$i]['Pname'] . '<br>??<i>Option<br> ' . $product_attribs . '</i>' .

'</td><td>?' . $vendor_products[$l]['vendor_orders_products'][$i]['PVprod_id'] .

'</td><td>?' . $vendor_products[$l]['vendor_orders_products'][$i]['Pmodel'] .

'</td><td>?' . $vendor_products[$l]['vendor_orders_products'][$i]['PVprod_price'] .

'</td><td><b>?' . $vendor_products[$l]['vendor_orders_products'][$i]['Pcomments'] . '</b></td></tr>';

 

}

}

$email = $email . '</table><br><HR><br>';

 

tep_mail($the_name, $the_email, EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID , $email . '<br>', STORE_NAME, STORE_OWNER_EMAIL_ADDRESS) ;

$vendor_order_sent = 'yes';

 

tep_db_query("update " . TABLE_ORDERS_SHIPPING . " set vendor_order_sent = '" . tep_db_input($vendor_order_sent) . "' where orders_id = '" . (int)$oID . "' and vendors_id = '" . (int)$vendors_id . "'");

 

if ($debug == 'yes') {

echo 'The $email(including headers:<br>Vendor Email Addy' . $the_email . '<br>Vendor Name' . $the_name . '<br>Vendor Contact' . $the_contact . '<br>Body--<br>' . $email . '<br>';

}

}

 

return true;

} //MVS end

 

//fec start

// lets start with the email confirmation

$email_order = STORE_NAME . "\n" .

EMAIL_SEPARATOR . "\n" .

EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n";

if (!tep_session_is_registered('createaccount'))

{ $email_order .= EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n";}

$email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

/////////////

$check_customer_query = tep_db_query("select customers_firstname, customers_lastname, customers_password, customers_id ,confirmation_key from " . TABLE_CUSTOMERS . " where customers_email_address = '" . $order->customer['email_address'] . "&

Edited by Proud

Share this post


Link to post
Share on other sites
what does the file structure look like, relative to catalog and includes?

 

I am not sure exactly how to explain this to you other than this

 

oodlesofjewels.biz/includes

 

I don't have it set up to be oodlesofjewels.biz/catalog/includes

 

does that help at all?

Share this post


Link to post
Share on other sites

Has anybody gotten this to play well w/ STS??

 

I want to use the create account 3 file...all works well w/ STS disabled, however when I turn on STS...all the javascript functions don't work. (i.e....use javascript for login box....the login box is already open w/ STS) Any pointers would be greatly appreciated!!!!!!!!

 

Thanks,

Greg


I only do what my Rice Krispies tell me to do!

Share this post


Link to post
Share on other sites

Can anyone help with this problem? I really don't want to have to uninstall and reinstall this contribution if I can avoid it, but my site is live and I can't afford to have it not working properly....any help with the errors would be greatly appreciated.

 

Thanks

Share this post


Link to post
Share on other sites

How can I hide or preferably ?gray out? so that it can not be changed a check box. I added 'true' which checks the box but I do not want the customer to be able to change this box. I want the customer to always create an account but I also want them to see it in the registration.

 

 

Here is the code

 

<tr>
<td class="main"><?php echo YES_ACCOUNT; ?></td>
<td class="main"><?php echo tep_draw_checkbox_field('createmyaccount', 'Y','true') . ' ' . (tep_not_null(ENTRY_YES_ACCOUNT_TEXT) ? '<span class="inputRequirement">' . ENTRY_YES_ACCOUNT_TEXT . '</span>': '');?></td>
</tr>

 

:'(

Share this post


Link to post
Share on other sites

Looks like I jumped the gun on the "grayed" checkbox here is the code just add "DISABLED" but i still do not know how to hide a checkbox or use a "hidden" form object.

 

<tr>
<td class="main"><?php echo YES_ACCOUNT; ?></td>
<td class="main"><?php echo tep_draw_checkbox_field('createmyaccount', 'Y','true','DISABLED') . '?' . (tep_not_null(ENTRY_YES_ACCOUNT_TEXT) ? '<span class="inputRequirement">' . ENTRY_YES_ACCOUNT_TEXT . '</span>': '');?></td>
</tr>

 

Oh well :thumbsup:

Share this post


Link to post
Share on other sites

Looks like I jumped the gun once again on the "grayed" checkbox. This is NOT working. This will gray out the box but it will not alow for the selection of "true" or yes create an account.

 

Hmmmm

 

Original code to alow CHECKED (works fine)

<tr>
<td class="main"><?php echo YES_ACCOUNT; ?></td>
<td class="main"><?php echo tep_draw_checkbox_field('createmyaccount', 'Y','true') . ' ' . (tep_not_null(ENTRY_YES_ACCOUNT_TEXT) ? '<span class="inputRequirement">' . ENTRY_YES_ACCOUNT_TEXT . '</span>': '');?></td>
</tr>

with DISABLED (works to gray out but will not add account as true)

<tr>
<td class="main"><?php echo YES_ACCOUNT; ?></td>
<td class="main"><?php echo tep_draw_checkbox_field('createmyaccount', 'Y','true','DISABLED') . ' ' . (tep_not_null(ENTRY_YES_ACCOUNT_TEXT) ? '<span class="inputRequirement">' . ENTRY_YES_ACCOUNT_TEXT . '</span>': '');?></td>
</tr>

 

Any ideas

 

:blush:

Share this post


Link to post
Share on other sites

Hi,

 

just added this and i've got a few problems.

 

Firstly when i click on the "Get New Total" button, it just sits there and does nothing???

 

secondly when i go to the orders page in admin i get the following error

 

Parse error: syntax error, unexpected T_CASE in /home/chapel00/public_html/shop/admin/orders.php on line 86

 

Line 86 is this

 

case 'deleteconfirm':

 

Any ideas?

 

Cheers

 

Daz

Share this post


Link to post
Share on other sites
Can anyone help with this problem? I really don't want to have to uninstall and reinstall this contribution if I can avoid it, but my site is live and I can't afford to have it not working properly....any help with the errors would be greatly appreciated.

 

Thanks

I would say your problem is related to integation of FEC with MVS. As for the specific error, posting the entire checkout_process.php file doesn't help much. Your error specifically mentioned line 129: that line and the code around it is where you should start looking.


Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Share this post


Link to post
Share on other sites

Can any one help?

I kinda new here and ended up with an error.

 

"Fatal error: Cannot redeclare tep_db_connect() (previously declared in /***/includes/functions/database.php:13) in /***/includes/functions/database.php on line 13"

 

This is a new install with no add-ons/contibutions added. (clean)

Only the fec3.2 contribution without the account modification

 

Thanks for the help.

Share this post


Link to post
Share on other sites

Hello.

 

I am having trouble finding the index or main page. all i am getting is http://mypage.com/shop if i try http://mypage.com it is blank. is there a way to move your index.php to get it to work on the main page, i did try to make a copy of index.php and put in the root directory but it was still blank, i am also not sure how you would go about making an html page with all of this.

 

any help would be appreciated.

:-"

Share this post


Link to post
Share on other sites
Hello.

 

I am having trouble finding the index or main page. all i am getting is http://mypage.com/shop if i try http://mypage.com it is blank. is there a way to move your index.php to get it to work on the main page, i did try to make a copy of index.php and put in the root directory but it was still blank, i am also not sure how you would go about making an html page with all of this.

 

any help would be appreciated.

:-"

 

starr,

Because the index page is located in the catalog folder. I sugest you create an index redirect page in your home directory. so when the user goes to: http://mypage.com it will automaticly move them to the correct place.

Edited by lefthand_right

Share this post


Link to post
Share on other sites
starr,

Because the index page is located in the catalog folder. I sugest you create an index redirect page in your home directory. so when the user goes to: http://mypage.com it will automaticly move them to the correct place.

 

 

do you know code i would use to redirect, what file i would put it in (like a index.php or index.html file), and how to do it without making it go somewhere other than http://mypage.com

 

I was able to get it to go to http://mypage.com/shop using this

<?php

$goto = "http://www.mypage.com/shop/");

header("HTTP/1.0 301 Moved Permanently");

header ("Location: $goto");

?>

on an index.php file i created and put in the root directory but can't get it to just go to the main http://mypage.com

:-"

Share this post


Link to post
Share on other sites
I would say your problem is related to integation of FEC with MVS. As for the specific error, posting the entire checkout_process.php file doesn't help much. Your error specifically mentioned line 129: that line and the code around it is where you should start looking.

 

Thank you for your response, I have already removed this contribution, and don't know enough about php to reinstall it and try to figure out the error myself from looking at line 129 and the code around it.

Share this post


Link to post
Share on other sites

Hi,

 

I have installed this mod and modified it to have the Points Rewards system and CCGV and Username.

 

If anyone has a few minutes I would greatly appreciate it.

 

I have everything working except two things. I want to have it show the Points Reward System only when then user has an account. Right now it shows it if they are checking out. Here is the code for it from catalog/store/includes/fec/payment_box.php:

		<td><!-- Points/Rewards Module V2.00 Redeemption box bof --><?php


 if ((USE_POINTS_SYSTEM == 'true') && (USE_REDEEM_SYSTEM == 'true') && ($username == 'Y')) {

echo points_selection();

if (tep_not_null(USE_REFERRAL_SYSTEM)) {

  echo referral_input();

}

 }

?><!-- Points/Rewards Module V2.00 Redeemption box eof --></td>

 

Also, I have this log-in box on the side. It shows fields for username and password to login if the customer is not logged in and if they are logged in it shows links for the account.

 

My problem is, if someone starts checking out and fills out the info on checkout_shipping.php, it thinks that they are logged in. I need to make it where it goes away if they do not create an account. Also, I would like to make it go away if they are on checkout_shipping.php as there is no need for two log-in boxes:

 

Here is the code from the catalog/includes/boxes/loginbox.php:

 

<?php

if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') )  {

?>

<!-- loginbox //-->

<?php

if (!tep_session_is_registered('customer_id')) {

?>

	  <tr>

		<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

							 'text'  => HEADER_TITLE_LOGIN

							);

new infoBoxHeading($info_box_contents, false, false);

$loginboxcontent = "

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

		<form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\">

		  <tr>

			<td align=\"center\" class=\"boxText\">

			  " . ENTRY_USERNAME . "

			</td>

		  </tr>

		  <tr>

			<td align=\"center\" class=\"boxText\">

			  <input type=\"text\" name=\"username\" maxlength=\"96\" size=\"15\" value=\"\">

			</td>

		  </tr>

		  <tr>

			<td align=\"center\" class=\"boxText\">

			  " . ENTRY_PASSWORD . "

			</td>

		  </tr>

		  <tr>

			<td align=\"center\" class=\"boxText\">

			  <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"15\" value=\"\"

			</td>

		  </tr>

		  <tr>

			<td align=\"center\" class=\"boxText\">

			  " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "

			</td>

		  </tr>

		</form>

		</table><BR>

	  <center>

	   <A HREF=\"" . tep_href_link(FILENAME_LOGIN, '', 'SSL') . "\">" . LOGIN_BOX_SECURE_LOGIN . "</A><BR>



		" . tep_draw_separator('pixel_trans.gif', '9', '4') . "<BR><A HREF=\"" . tep_href_link(FILENAME_CREATE_ACCOUNT, '','SSL') . "\">" . LOGIN_BOX_NEW_USER . "</A><BR>



		" . tep_draw_separator('pixel_trans.gif', '9', '4') . "<BR><A HREF=\"" . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . "\">" . LOGIN_BOX_PASSWORD_FORGOTTEN . "</A>

	   </center>

		  ";

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

							 'text'  => $loginboxcontent

							);

new infoBox($info_box_contents);

?>

		</td>

	  </tr>

<?php

 } else {



 // If you want to display anything when the user IS logged in, put it

 // in here...  Possibly a "You are logged in as :" text or something.

 }

?>

<!-- loginbox_eof //-->

<?php

// WebMakers.com Added: My Account Info Box

} else {

 if (tep_session_is_registered('customer_id')) {

?>



<!-- my_account_info //-->

	  <tr>

		<td>

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

						   'text'  => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT

						  );

 new infoBoxHeading($info_box_contents, false, false);



 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

						   'text'  =>


									  '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . tep_draw_separator('pixel_trans.gif', '9', '4') . '<br>' . tep_draw_separator('pixel_silver.gif', '100%', '1') . '<br>' .

									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . tep_draw_separator('pixel_trans.gif', '9', '4') . '<br>' . tep_draw_separator('pixel_silver.gif', '100%', '1') . '<br>' .

									  '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . tep_draw_separator('pixel_trans.gif', '9', '4') . '<br>' . tep_draw_separator('pixel_silver.gif', '100%', '1') . '<br>' .

									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . tep_draw_separator('pixel_trans.gif', '9', '4') . '<br>' . tep_draw_separator('pixel_silver.gif', '100%', '1') . '<br>' .

									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . tep_draw_separator('pixel_trans.gif', '9', '4') . '<br>' . tep_draw_separator('pixel_silver.gif', '100%', '1') . '<br>' .

									  '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . HEADER_TITLE_LOGOFF . '</a>'

						  );

 new infoBox($info_box_contents);

?>

		</td>

	  </tr>

<!-- my_account_info_eof //-->



<?php

 }

}

?>

 

Any help would be greatly apprciated.

 

Thanks,

Philip

Edited by dwdonline

Share this post


Link to post
Share on other sites

Hi,

 

I solved the 2nd thing. I am still needing help on the 1st item though and here is the correct code (the other was wrong)

 

I want to have it show the Points Reward System only when then user has an account. Right now it shows it if they are checking out. Here is the code for it from catalog/store/includes/fec/payment_box.php:

<td><!-- Points/Rewards Module V2.00 Redeemption box bof --><?php


 if ((USE_POINTS_SYSTEM == 'true') && (USE_REDEEM_SYSTEM == 'true')) {

echo points_selection();

if (tep_not_null(USE_REFERRAL_SYSTEM)) {

  echo referral_input();

}

 }

?><!-- Points/Rewards Module V2.00 Redeemption box eof --></td>

 

Thanks,

Philip

Share this post


Link to post
Share on other sites

In the checkout process with FEC how do i sort Products Attributes ? I have the attributes showing up on the email and all the checkout sheets in random order i want to sort by "Product Options ". i have options like Class 1-1 , Class 1-2, Class 1-3 and so on but on the bill they show up in various order.

 

Any ideas

 

here is an example

it shows like this in the emails (the order may change randomly)

 

1 x 1 Registration

- Time Slot 6 Pick 2: 6-1 Cont.. of 5-1, Tactical Use of Detection Devices

- Time Slot 6 Pick 1: PICK (none selected)

- Time Slot 5 Pick 2: 5-2 Risk Assessment Basics

- Time Slot 5 Pick 1: 5-2 Risk Assessment Basics

- Time Slot 4 Pick 2: 4-3 Cont.. of 3-3, LIVE CHEMICAL RISK ASSESMENT

- Time Slot 4 Pick 1: 4-3 Cont.. of 3-3, LIVE CHEMICAL RISK ASSESMENT

- Time Slot 3 Pick 2: 3-4 Challenges fixed-facilities hazardous-response teams

- Time Slot 3 Pick 1: 3-4 Challenges fixed-facilities hazardous-response teams

- Time Slot 1 Pick 1: 1-1 Non-Odorized Propellants-What?s All the Stink About?

- Time Slot 1 Pick 2: 1-4 Radiological Mitigation Procedures

- Time Slot 2 Pick 1: 2-3 Industrial Hygiene for First Responders

- Time Slot 2 Pick 2: 2-4 Cont.. of 1-4. Radiological Mitigation Procedures $250.00

Total $250.00

 

 

i want it to show like this

1 Registration

- Time Slot 1 Pick 1 1-1 Non-Odorized Propellants-What?s All the Stink About?

- Time Slot 1 Pick 2 1-4 Radiological Mitigation Procedures

- Time Slot 2 Pick 1 2-3 Industrial Hygiene for First Responders

- Time Slot 2 Pick 2 2-4 Cont.. of 1-4. Radiological Mitigation Procedures

- Time Slot 3 Pick 1 3-4 Challenges fixed-facilities hazardous-response teams

- Time Slot 3 Pick 2 3-4 Challenges fixed-facilities hazardous-response teams

- Time Slot 4 Pick 1 4-3 Cont.. of 3-3, LIVE CHEMICAL RISK ASSESMENT

- Time Slot 4 Pick 2 4-2 Talks on Tox

- Time Slot 5 Pick 1 5-1 Tactical Use of Detection Devices

- Time Slot 5 Pick 2 5-4 Agro Terror

- Time Slot 6 Pick 1 6-4 TERRORISM

- Time Slot 6 Pick 2 6-4 TERRORISM

 

:xBy the way i am setting this up for registration for a Hazardous Material's Conference (looking at the content of the seminars):x

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  

×