Re: Fast and Easy Checkout
Quote:
Originally Posted by
picandnix
Does it go any further than the 'your order is being processed' or does it just hang there? Do you get confirmation email of purchase?
Exactly my problem... Just hangs there...no confirmation e-mail
Re: Fast and Easy Checkout
Quote:
Originally Posted by
JRoberto
Exactly my problem... Just hangs there...no confirmation e-mail
I'm hoping you answer this question with an 'oh no I didn't...' but did you install CJ Loader when you installed FEC?
Re: Fast and Easy Checkout
No i didnt... do I have to download that else where?
Re: Fast and Easy Checkout
Quote:
Originally Posted by
JRoberto
No i didnt... do I have to download that else where?
Off top of my head I think there's a link to it in the FEC install docs. But if you can't find it then here are the individual files https://github.com/yellow1912/cjloader I'm sure I simply downloaded it as a fully packaged zip though rather than copying and pasting each file.
Quick edit, just spotted it, left hand side of page near top 'zip' :smartalec:
Re: Fast and Easy Checkout
once installed that should fix ya up. It's a few new files and one file to merge if my memory serves me well, header.php or something.
Re: Fast and Easy Checkout
Thank you, I will install and let you know! Thank you for the help once again!
Re: Fast and Easy Checkout for Zen Cart
Hi I wonder if someone could help me... I have added an additional field on my checkout page using this http://www.zen-cart.com/showthread.p...ld-to-Checkout. I have the field showing on the form but when I go to submit the order it comes up with the processing, then goes to WARNING: An Error occurred, please refresh the page and try again. Now I have altered the tpl_checkout_stacked.php and put the original file back on to see if it is this causing the problem and its still the same. I have also altered includes/classes/order.php and put the original back which fixed the problem. can anyone see from the below code what could be causing the issue. Obviously I know that the line numbers are slightly out.
Next, alter the order.php class file, found in includes/classes/order.php
There are a fair number of bits to add, but bare with me:
Line 43, add order_frequent_code, to the sql statement.
Line 114, before 'ip_address' insert the following line:
'frequent_code' => $order->fields['order_frequent_code'],
Line 343, before 'ip_address' insert the following line:
'frequent_code' => $_SESSION['frequent_code'],
Line 587, before 'ip_address', insert the following line:
'order_frequent_code' => $this->info['frequent_code'],
Ok, nearly there. So far, we've added the field to the template, added the column to the database, and editted the order class to record the value. We now need to get the input and pass it to the order class.
the only other file I have edited is includes/modules/pages/checkout_shipping/header_php.php
After line 116 add:
if (isset($_SESSION['frequent_code'])) {
$frequent_code = $_SESSION['frequent_code'];
}
After line 124, which starts $comments = $_SESS........ add
if (zen_not_null($_POST['frequent_code'])) {
$_SESSION['frequent_code'] = zen_db_prepare_input($_POST['frequent_code']);
}
$frequent_code = $_SESSION['frequent_code'];
Would really appreciate some help as I think this is more a FEC issue. I am a complete noob to this type of coding!
Many thanks
Re: Fast and Easy Checkout for Zen Cart
Quote:
Originally Posted by
lindsey80
Hi I wonder if someone could help me... I have added an additional field on my checkout page using this
http://www.zen-cart.com/showthread.p...ld-to-Checkout. I have the field showing on the form but when I go to submit the order it comes up with the processing, then goes to WARNING: An Error occurred, please refresh the page and try again. Now I have altered the tpl_checkout_stacked.php and put the original file back on to see if it is this causing the problem and its still the same. I have also altered includes/classes/order.php and put the original back which fixed the problem. can anyone see from the below code what could be causing the issue. Obviously I know that the line numbers are slightly out.
Next, alter the order.php class file, found in includes/classes/order.php
There are a fair number of bits to add, but bare with me:
Line 43, add order_frequent_code, to the sql statement.
Line 114, before 'ip_address' insert the following line:
'frequent_code' => $order->fields['order_frequent_code'],
Line 343, before 'ip_address' insert the following line:
'frequent_code' => $_SESSION['frequent_code'],
Line 587, before 'ip_address', insert the following line:
'order_frequent_code' => $this->info['frequent_code'],
Ok, nearly there. So far, we've added the field to the template, added the column to the database, and editted the order class to record the value. We now need to get the input and pass it to the order class.
the only other file I have edited is includes/modules/pages/checkout_shipping/header_php.php
After line 116 add:
if (isset($_SESSION['frequent_code'])) {
$frequent_code = $_SESSION['frequent_code'];
}
After line 124, which starts $comments = $_SESS........ add
if (zen_not_null($_POST['frequent_code'])) {
$_SESSION['frequent_code'] = zen_db_prepare_input($_POST['frequent_code']);
}
$frequent_code = $_SESSION['frequent_code'];
Would really appreciate some help as I think this is more a FEC issue. I am a complete noob to this type of coding!
Many thanks
Found out the problem.. The tablel created has an incorrect letter in! Simples
Re: Fast and Easy Checkout for Zen Cart
Please, please, please can someone who knows what they are doing help me?!
I am trying to make the box field and the gift-message field on this addon required, please can someone help. This is the most important part to the website as without entering their licence number they will be unable to buy the item. I have tried looking at other instructions and can't find a way to adapt it to what I want.
This is what I have showing in tpl_checkout_stacked.php
<?php
}
if (FEC_GIFT_MESSAGE == 'true') {
?>
<fieldset class="shipping" id="ukara">
<legend><?php echo TABLE_HEADING_GIFT_MESSAGE; ?></legend>
<html>UKARA Number <br /> </html>
<?php echo zen_draw_textarea_field('gift-message', '45', '3', $_SESSION['gift-message']); ?>
and
<?php
}
if (FEC_CHECKBOX == 'true') {
$checkbox = ($_SESSION['fec_checkbox'] == '1' ? true : false);
?>
<legend><?php echo TABLE_HEADING_FEC_CHECKBOX; ?></legend>
<label><?php echo TEXT_FEC_CHECKBOX; ?></label>
<?php echo zen_draw_checkbox_field('fec_checkbox', '1', $checkbox, 'id="fec_checkbox"'); ?>
Many thanks for you help in advance.
Re: Fast and Easy Checkout for Zen Cart
bump, thank you
Quote:
Originally Posted by
lindsey80
Please, please, please can someone who knows what they are doing help me?!
I am trying to make the box field and the gift-message field on this addon required, please can someone help. This is the most important part to the website as without entering their licence number they will be unable to buy the item. I have tried looking at other instructions and can't find a way to adapt it to what I want.
This is what I have showing in tpl_checkout_stacked.php
<?php
}
if (FEC_GIFT_MESSAGE == 'true') {
?>
<fieldset class="shipping" id="ukara">
<legend><?php echo TABLE_HEADING_GIFT_MESSAGE; ?></legend>
<html>UKARA Number <br /> </html>
<?php echo zen_draw_textarea_field('gift-message', '45', '3', $_SESSION['gift-message']); ?>
and
<?php
}
if (FEC_CHECKBOX == 'true') {
$checkbox = ($_SESSION['fec_checkbox'] == '1' ? true : false);
?>
<legend><?php echo TABLE_HEADING_FEC_CHECKBOX; ?></legend>
<label><?php echo TEXT_FEC_CHECKBOX; ?></label>
<?php echo zen_draw_checkbox_field('fec_checkbox', '1', $checkbox, 'id="fec_checkbox"'); ?>
Many thanks for you help in advance.