The easiest thing is to re-read the Super Orders install instructions and reverse any edits you may have made to core admin files.
Printable View
PERFECT
thank you!
i ended up using these few posts and the issue is solved:
http://www.zen-cart.com/forum/showth...=44668&page=86
We're getting an error message in the Admin when clicking on "Super Orders" or "Orders". This is just on our test account but I wanted to get it fixed before I put in in our live.
The error message is saying:
Fatal error: Call to a member function get_content_type() on a non-object in /home/mycup/public_html/test/teststore/admin/includes/classes/order.php on line 240
I've looked at the order.php file on line 240 but I do not know what to edit.
We're using the Checkout Without Account Module. And I'm having a feeling that has something to do with it. But I don't know what to change or edit.
Can someone please help?
Oddly admin/includes/classes/order.php has 178 lines in ZC 1.3.8a
get_content_type refers to whether a shopping cart contents are "real" or "virtual" as in downloadable. The error means that the shopping cart is not complete or corrupted in some manner. If Checkout Without Account modifies order.php then you should probably be at that thread.
Thank you
Philip.
Hi Philip. Well, the order.php file that is mentioned in the Readme of Super Orders is in includes/classes/order.php.
It also has instructions for editing the order.php file in the admin side, but I don't think that applies to us because we are on the latest version of Zen. And the instructions say: This is only required for Zen Cart versions prior to 1.3.6.
Thank you!
Hi, yes but you are not looking at the correct file your error message says
/home/mycup/public_html/test/teststore/admin/includes/classes/order.php
which is in admin not /home/mycup/public_html/test/teststore/includes/classes which you just mentioned, so it's not a super order thing unless something has been edited.
Are you using IntegratedCOWOA(1.3.8) because that has a line number 240 with this->content_type = $_SESSION['cart']->get_content_type(); on it ?
How good are you at PHP because this looks like on your system super orders will have to be re-integrated into it and from this:
http://www.zen-cart.com/wiki/index.p...ithout_Account
It appears that the developer has left.
PM me if you need professional help.
Philip.
Philip, with you saying all of that it got me thinking and I figured out that I had the wrong order.php file in admin/includes/classes!!!
So I got the right one and put it in the right place for our test and wallah!! Message was gone. So it seems the whole time that Super Orders was installed correctly (so far!) and the error message was because of another module.
It's crazy how someone elses input can influence how you figure things out.
I just installed this mod, it's great so far! But I was assuming there would be a way to edit the products? It looks like all I'm able to do is delete a product from an order, is this right?
Am I doing something wrong?
Glad to have been of service m'Lord.