X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Altered Cart One page checkout error (https://forum.x-cart.com/showthread.php?t=57690)

ajitsnehra 01-23-2011 11:32 AM

Altered Cart One page checkout error
 
I am using x-cart 4.1.12 version. I found following error log. How to fix this error. I will highly appreciate any help.

<?php die(); ?>
[23-Jan-2011 13:21:42] Warning: Cannot modify header information - headers already sent by (output started at /home/em/public_html/store/modules/Checkout_One/checkout_one_init.php:50) in /home/em/public_html/store/include/func/func.core.php on line 1596

Ajit

pauldodman 01-24-2011 12:08 AM

Re: Altered Cart One page checkout error
 
This one's not in their knowledgebase, suggest you open a support ticket with AlteredCart.

wjbrewer 01-25-2011 07:01 AM

Re: Altered Cart One page checkout error
 
Double check the instructions for the include/func/func.core.php file and make sure they have been completed.

ajitsnehra 01-25-2011 05:32 PM

Re: Altered Cart One page checkout error
 
Bill, thank you so much for your response. I am really new to this kind of programing. Can you please tell me where to find instructions for the include/func/func.core.php file? How can I find if these has been completed or not? I will be really thankful to you for this.

7thdesire 01-27-2011 01:12 PM

Re: Altered Cart One page checkout error
 
hi

if you are useing version 1.4.5 of one page checkout and version 4.1 for xcart the instructions for the install guide are as follows

i would suggest using the code from the install file file incase my paste has broken the code in some way

Code:


include/func/func.core.php
Find this code near line 102:
[FONT='Courier New', Courier, mono]$location .= (strpos($location, "?") === false ? "?" : "&").implode("&", $added);
if (!empty($hash))
$location .= "#".$hash;
}

Immediately after insert this code:
[FONT='Courier New', Courier, mono]// Checkout One :: www.alteredcart.com //
global $xcart_dir, $active_modules;
if ($active_modules['Checkout_One']){
require $xcart_dir."/modules/Checkout_One/checkout_one_headers.php";
if ($_return)
return;
}
// End Checkout One //[/font]

 
Find this code near line 1510:
 
This may not be needed in all versions. If your func.core.php file doesn't contain this code you can safely skip this step.
 
This step may also have been made for a different alteredCart module. If this code change has already been made please skip this step.

[FONT='Courier New', Courier, mono]function func_setcookie() {
global $PHP_SELF, $HTTP_HOST;[/font]

Immediately after insert this code:
[FONT='Courier New', Courier, mono]// Checkout One :: www.alteredcart.com //
global $ajax_headers;
if ($ajax_headers)
return false;
// End Checkout One //[/font]

[/font]


wjbrewer 02-03-2011 04:54 AM

Re: Altered Cart One page checkout error
 
Update: The cause of the error was in the include/func/func.core.php file.

The 2nd step of the One Page Checkout instructions were from an older version, and not working with the updated file.

If anyone has a problem like this in the future and is reading this be sure the installation code is exactly as in the instructions for your version of X-Cart.

GMarler 10-19-2011 05:19 AM

Altered Cart One page checkout issue
 
I have the One Page Checkout module checked to automatically fix capitalization but it doesn't do it.
Anyone have any ideas?
Thanks,


All times are GMT -8. The time now is 12:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.