Jump to content

Print Order Form not working.


Guest

Recommended Posts

Help, our print order form function is not working!

It does the transfering thing, but then you get sent to the View Cart page and it says, "Your shopping cart is currently empty." Then if you go back to the "homepage" you can see that your cart is empty. Click, "view basket" and the item is gone. But if you go back and place the item back in your cart, you then have 2 items items in there.

From the admin side, you get the order.

Please let me know what I should do, would installing estelle's Print Order form email mod work?

Jen

Link to comment
Share on other sites

I am running for the specific cart 3.0.4 . And I don't want to post the address on here because it will get hacked.

Sir William, Estelle, Aikdo?? Are you willing to take a look? I'll send you addy in PM.

Jen

Link to comment
Share on other sites

Guest global777

modules/gateway/Print_Order_Form/orderform.php

look for this

// get session data

include_once("../../../includes/session.inc.php");

replace with this

// get session data

include_once("../../../includes/sessionStart.inc.php");

include_once("../../../includes/session.inc.php");

[ Copied from this post-

http://www.cubecart.com/site/forums/index....indpost&p=68525 ]

Worked for me!

Link to comment
Share on other sites

Guest markyvuk

This problem was sorted in version 3.0.5

Suggest you upgrade to that as a minimum if using Print Order Form. Also the email mod for print order form works very well.

BUT ensure you add the security mods if using this version!!!

Mark

Link to comment
Share on other sites

Guest tinydancer

Hi Ya,

I've also got this same problem, and I have just installed the latest 3.7Pl1?

The problem is the same as described by grassmeyer.

Any advice would be most appreciated.

Glenn.

Link to comment
Share on other sites

  • 4 weeks later...
Guest thomasdarton

Thanks for that information. I am running v3.0.8 and it worked for me also.

modules/gateway/Print_Order_Form/orderform.php

look for this

// get session data

include_once("../../../includes/session.inc.php");

replace with this

// get session data

include_once("../../../includes/sessionStart.inc.php");

include_once("../../../includes/session.inc.php");

[ Copied from this post-

http://www.cubecart.com/site/forums/index....indpost&p=68525 ]

Worked for me!

Link to comment
Share on other sites

Guest walmarc

ditto

I had this problem in 3.0.8 and Estelle told me to do the following in addtion to the above mod:

"Also, you probably need to make sure that your paths in includes/global.inc.php start with http://www.domain... rather than http://domain..."

Mine now works every time.

Hope this helps.

Edit: Also you need to clear your browser cache so that you don't get the former result. ;)

Link to comment
Share on other sites

ditto

I had this problem in 3.0.8 and Estelle told me to do the following in addtion to the above mod:

"Also, you probably need to make sure that your paths in includes/global.inc.php start with http://www.domain... rather than http://domain..."

Mine now works every time.

Hope this helps.

Can you be a bit more specific there?

Link to comment
Share on other sites

Guest walmarc

Can you be a bit more specific there?

I use Cute FTPO Pro to edit my files on-line. Go to your installation and find the folder "includes". Then edit the file global.inc.php so it looks like this:

<?php

$glob['dbdatabase' ] = '****_ccrt1' ;

$glob['dbhost' ] = 'localhost' ;

$glob['dbusername' ] = '****_ccrt1' ;

$glob['dbpassword' ] = '*******' ;

$glob['dbprefix' ] = '' ;

$glob['installed' ] = '1' ;

$glob['rootDir' ] = '/home/****/public_html/yourstore' ;

$glob['rootRel' ] = '/' ;

$glob['storeURL' ] = 'http://www.yourstore.****.com' ;

?>

**** will show the name of your domain or database & password etc (I'm not showing you mine) ;)

The important part is to make sure the 'storeURL' field shows 'http://www.yourstore.com' and not 'http://yourstore.com' without the www.

Link to comment
Share on other sites

I did that and now I get the following errors all over...

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/*****/public_html/shop/includes/global.inc.php:20) in /home/*****/public_html/shop/includes/sessionStart.inc.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/shop/includes/global.inc.php:15) in /home/*****/public_html/shop/includes/sessionStart.inc.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/shop/includes/global.inc.php:15) in /home/*****/public_html/shop/includes/content/logout.inc.php on line 41

and more...

Link to comment
Share on other sites

Guest walmarc

I did that and now I get the following errors all over...

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/*****/public_html/shop/includes/global.inc.php:20) in /home/*****/public_html/shop/includes/sessionStart.inc.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/shop/includes/global.inc.php:15) in /home/*****/public_html/shop/includes/sessionStart.inc.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/shop/includes/global.inc.php:15) in /home/*****/public_html/shop/includes/content/logout.inc.php on line 41

and more...

I hope you didn't put the "*****" into the code? I was using the asterisks to block out the details of my domain. You only need to change one thing - http://yourdomain.com to http://www.yourdomain.com. Where "yourdomain" is the name of your domain e.g. http://www.computerstore.com". Restore the file and just change the last line. ;)

Edit: Make sure you don't amend or delete anything else e.g. the ' - just change the URL starting from http to .com

Link to comment
Share on other sites

Well I just reinstalled the site from backup and the issue was fixed... no clue what caused it, but everything is working right now.

Only problem is after the order form loads... IE starts opening window after window after window.

Link to comment
Share on other sites

  • 3 months later...
Guest Insurrectus

// get session data

include_once("../../../includes/sessionStart.inc.php");

include_once("../../../includes/session.inc.php");

This worked for me on CC 3.0.8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...