gsdcypher:
they say they have fixed everything, but when someone tries to go through the checkout process they get this error:
Fatal error: Using $this when not in object context in /home/allk9/public_html/includes/modules/ALLK9/create_account.php on line 413
Please help... :frusty:
gsdcypher:
here is the code that is differnt from the clean file:
//The following bypasses the Create Account Success page if items are in the cart.
if (is_array($this->contents)) { // if items in cart, then by pass create account success
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); // Redirects the user to the "Shipping Information" part of the checkout (more streamlined).
} else { // no items in cart to show create account success page
zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); // Original line of code that redirects the user to the "create account success" page. Adds another step to the checkout process, and is not needed for a mroe streamlined approach.
}
// *******************************************************************************
It was working just fine... what do you think is the problem in the code?
According to the error message you first reported, the $this->content is the problem referenced.
One of your addons/contributions has likely added some extra code to the file, but you're missing a dependency from elsewhere for one reason or another.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.