Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    186
    Plugin Contributions
    0

    Default 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?

    Thank you
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

  2. #2
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    186
    Plugin Contributions
    0

    Default 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).
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

 

 

Similar Threads

  1. Configuring Taxes for Canadian Sites/Zones
    By DrByte in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 305
    Last Post: 30 Jul 2012, 07:18 PM
  2. session objects in the observer class
    By wdrwc in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Jul 2006, 06:48 PM
  3. session objects in the observer class
    By wdrwc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2006, 11:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •