order_total class and class redeclaration
Hello, I'd like to use order_total class in function function process_button() in a payment module.
If I simply use it, then when it's called later in the script (in the normal ZC flow), I obtain a 'cannot redeclare class... (all the classes initialized by order total modules).
How to avoid this?
Is it possible to 'destroy' a class declaration after having used it?
Re: order_total class and class redeclaration
Solved, I duplicated the order_total class (renaming it, obviously) then I removed from its code the 'sub' classes declaration (plus other things I didn't need) and now it works (obviously I call my own order_total clas).
By DrByte in forum Currencies & Sales Taxes, VAT, GST, etc.
Last Post: 30 Jul 2012, 07:18 PM
By wdrwc in forum All Other Contributions/Addons
Last Post: 18 Jul 2006, 06:48 PM
By wdrwc in forum Templates, Stylesheets, Page Layout
Last Post: 18 Jul 2006, 11:19 AM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC