Re: Fast and Easy Checkout for Zen Cart
Upgrading 1.3.8a to 1.3.9a trying to merge admin/orders.php
I have FEC, 1.5.1, Stock by Attributes 4.9 merged onto my 1.3.8a file. The parts to merge onto 1.3.9a file seem straight forward (lol) to me, but this section leaves me will cold feet.
In 1.3.9a:
[SCR] //send emails
$message =
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .[/SCR]
vs my merged copy in 1.3.8a which is same as this block in FEC most recent update.
[SCR]//send emails
$message = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n";
if(!$check_status->fields['COWOA_order']) {
$message .= EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n";
}
$message .= EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .[/SCR]
Question 1: any suggestions how to merge these two blocks.
Question 2: I also have Super Orders - does it override orders.php making my first question moot?
My server will be moving to PHP 5.3 but hasn't yet.
Re: Fast and Easy Checkout for Zen Cart
ok obviously I did something wrong as my quoted code vanished in the above post. Here's trying again:
In 1.3.9a:
Quote:
//send emails
$message =
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .
In merged copy of 1.3.8a
Quote:
//send emails
$message = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n";
if(!$check_status->fields['COWOA_order']) {
$message .= EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n";
}
$message .= EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .
Re: Fast and Easy Checkout for Zen Cart
I've bin loking for two days now for the solution for the following problem:
I was editing includes/classes/order.php and when I tried to go to checkout page (main_page=checkout&action=null) it turnd up blank.
I reinstalled the original order.php the page was still blank, allas.
When I turn fec off the checkout works with the normal three steps.
I reinstalled all the fec files, but still no luck.
I used the debugging tool and got an redeclare class error on line 1037 in order.php, but since the first time the blank page occurd I've installed the order.php at least twice.
So now I'm in the dark about it.
Any help would be welcome...
Re: Fast and Easy Checkout for Zen Cart
Quote:
Originally Posted by
soxophoneplayer
Upgrading 1.3.8a to 1.3.9a trying to merge admin/orders.php
I have FEC, 1.5.1, Stock by Attributes 4.9 merged onto my 1.3.8a file. The parts to merge onto 1.3.9a file seem straight forward (lol) to me, but this section leaves me will cold feet.
In 1.3.9a:
Code:
//send emails
$message =
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .
vs my merged copy in 1.3.8a which is same as this block in FEC most recent update.
Code:
//send emails
$message = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n\n";
if(!$check_status->fields['COWOA_order']) {
$message .= EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n";
}
$message .= EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status->fields['date_purchased']) . "\n\n" .
strip_tags($notify_comments) .
Question 1: any suggestions how to merge these two blocks.
Question 2: I also have Super Orders - does it override orders.php making my first question moot?
My server will be moving to PHP 5.3 but hasn't yet.
The only difference between those 2 sections is that it is adding a Seperator Line ####################_ and checking if you are using the COWOA (Checkout WithOUT an Account). A simple copy and paste over the new code in 1.39a will work fine.
Super_Orders uses it's own files but does require that you edit /includes/classes/order.php. I would compare this file from order.php in 1.39a and after you finsih that, add in any FEC changes.
Remember, Always BACKUP your FIles and DB BEFORE making changes!
Re: Fast and Easy Checkout for Zen Cart
Quote:
Originally Posted by
NickP
I've bin loking for two days now for the solution for the following problem:
I was editing includes/classes/order.php and when I tried to go to checkout page (main_page=checkout&action=null) it turnd up blank.
I reinstalled the original order.php the page was still blank, allas.
When I turn fec off the checkout works with the normal three steps.
I reinstalled all the fec files, but still no luck.
I used the debugging tool and got an redeclare class error on line 1037 in order.php, but since the first time the blank page occurd I've installed the order.php at least twice.
So now I'm in the dark about it.
Any help would be welcome...
Look at message 800 on page 80 (previous page) of this thread and see if that helps you out.
Re: Fast and Easy Checkout for Zen Cart
Quote:
Originally Posted by
JTheed
Look at message 800 on page 80 (previous page) of this thread and see if that helps you out.
To bad, it didn't work out for me.
It doesn't matter if a set al the other options from fec to 1 or 0, but when I switch fec on the page goes blank.
Wich file controls this?
Re: Fast and Easy Checkout for Zen Cart
Thank you JTheed for reply to my previous post.
Here is another question, this time re
includes/modules/create_account.php
There are many instances in the 1.3.9a file where 'login' is changed to 'create account'.
But there are also large blocks of unique code further down in the FEC file that use 'login', , for instance //shipping down around #300, so if I copy those blocks over into 1.3.9a will that be a problem
....should I change those instances of 'login' also to 'create account'?
This question also posted in 1.3.9a upgrade forum.
Re: Fast and Easy Checkout for Zen Cart
My Bad for not specifying this earlier, I am using version 173 of FEC. I haven't looked at 151 but it may not be compatible for 1.39.
NickP: If you turn off the FEC mod, then it is not your problem. Did you edit a core file to add it to your store? If so, put a copy of the original file that was edited back in and see if that clears the problem.
Remember EVERYONE, if you have a problem on a page, it HELPS A LOT to leave a link to your sight if you can and tell us what version of zen-cart and the mod you are using. This way it can be looked at and it might make the fix a lot easier to find.
Remember, Always BACKUP your files and DB Before add any modification!
Re: Fast and Easy Checkout for Zen Cart
Quote:
Originally Posted by
soxophoneplayer
Thank you JTheed for reply to my previous post.
Here is another question, this time re
includes/modules/create_account.php
There are many instances in the 1.3.9a file where 'login' is changed to 'create account'.
But there are also large blocks of unique code further down in the FEC file that use 'login', , for instance //shipping down around #300, so if I copy those blocks over into 1.3.9a will that be a problem
....should I change those instances of 'login' also to 'create account'?
This question also posted in 1.3.9a upgrade forum.
I would say No. Create_Account is for Creating a NEW Account and Login is for a Customer to Login because they have already created their account. I would leave it the way it is as far as Login and Create_Account go.
Remember, Always BACKUP your files and DB Before add any modification!
Re: Fast and Easy Checkout for Zen Cart
includes/modules/create_account.php is NOT on the list of modified files in the FEC 1.8.0 release.
However, the file is contained in the folder of required files and it is substantially different from either the zc 1.3.8a or 1.3.9a clean file which is why I was attempting to merge it.
There are several other files likewise not in the former but in the latter.
I took this to mean the exclusion from the list was accidental, but now it seems perhaps it was the inclusion of the files which was unintended. (?)
I'm getting befuddled trying to update FEC and zc concurrently.