Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    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
    199
    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. where to put my diy shipping class extends core class ?
    By linjuming in forum General Questions
    Replies: 3
    Last Post: 21 Aug 2012, 02:58 PM
  2. Replies: 1
    Last Post: 20 Jan 2012, 01:43 AM
  3. Custom body id and class
    By plinth in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Sep 2011, 06:23 PM
  4. 1st Class and 1st Class recorded for different categories
    By fabsanchez in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Nov 2009, 09:58 PM
  5. Replies: 3
    Last Post: 3 Aug 2009, 06:13 AM

Posting Permissions

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