Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Add additional fields at checkout page, NEED URGENT HELP. Thank you

    Dear All,

    Refer to the "how to add additional fields into checkout page" at

    http://www.zen-cart.com/forum/showthread.php?t=45080

    I had done all what it said. and i immedialy face the error which is

    Fatal error: Cannot redeclare class order in C:\Domains\tom2u.com\wwwroot\includes\classes\order.php on line 20

    And i check on the line 20, it is abt

    class order extends base {
    var $info, $totals, $products, $customer, $delivery, $content_type, $email_low_stock, $products_ordered_attributes,
    $products_ordered, $products_ordered_email;

    i am very confuse now, anyone can help me, please...

    if you need the 3 files which require to modify, i will send to you or post here.

    tom
    tom@tom2u.com

  2. #2
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    My godness.!!!

    Even i change back to orginal file (i rename the orginal file only..) the whole website still cannot work? what happen?

    it still shows

    Fatal error: Cannot redeclare class order in C:\Domains\tom2u.com\wwwroot\includes\classes\order.php on line 20

    Please help.!!!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,883
    Plugin Contributions
    6

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    Sounds like you have a backup or renamed file being loaded that uses the same class ...

    In the Developers Tool Kit, in the bottom input box, enter:
    class order

    Search the Catalog and see how many files contain that text ...

    There can be only 1 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    ya, i just rename my original file and put beside, and upload the amened copy.

    after i found out problem with amended copy, so, i delete the amened copy and rename back the original copy. and it CANNOT work anymore...

    is that cache problem? need to clear? from server?

    Expert pls help..!!!!!!!!!!!! pls


    Tom

  5. #5
    Join Date
    Jan 2004
    Posts
    58,456
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    In the Developers Tool Kit, in the bottom input box, enter the following, and select "All Files - Catalog" from the pulldown menu:
    Code:
    'order.php'
    (including the quote marks)

    What does it tell you ?

    Then do the same thing again for this phrase:
    Code:
    new order;
    What do you find?

    Please paste all the results here.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    'Order.php' Result search

    C:/Domains/tom2u.com/wwwroot/ipn_main_handler.php

    Line #180 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/checkout_process.php

    Line #40 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/account_history_info/header_php.php

    Line #59 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_confirmation/header_php.php

    Line #57 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_payment/header_php.php

    Line #83 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping/header_php-addadditional.php

    Line #70 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping/header_php.php

    Line #70 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping_address/header_php.php

    Line #33 : require(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/payment/paypalwpp.php

    Line #1385 : require(DIR_WS_CLASSES . 'order.php');

    Line #2370 : require_once(DIR_WS_CLASSES . 'order.php');


    C:/Domains/tom2u.com/wwwroot/includes/modules/shipping_estimator.php

    Line #85 : require(DIR_WS_CLASSES . 'order.php');

  7. #7
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    new order; RESULT as below:


    C:/Domains/tom2u.com/wwwroot/includes/modules/checkout_process.php

    Line #41 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_confirmation/header_php.php

    Line #58 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_payment/header_php.php

    Line #84 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping/header_php-addadditional.php

    Line #71 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping/header_php.php

    Line #71 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping_address/header_php.php

    Line #34 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/payment/paypalwpp.php

    Line #1386 : $order = new order;

    Line #2371 : $order = new order;



    C:/Domains/tom2u.com/wwwroot/includes/modules/shipping_estimator.php

    Line #86 : $order = new order;

  8. #8
    Join Date
    Jan 2004
    Posts
    58,456
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    Quote Originally Posted by tom2u View Post
    C:/Domains/tom2u.com/wwwroot/includes/modules/pages/checkout_shipping/header_php-addadditional.php
    Line #70 : require(DIR_WS_CLASSES . 'order.php');
    Try deleting that file, or renaming it so it doesn't end in ".php"
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  9. #9
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    THANK YOU DR.BYTE..!!!! YOU ARE GREAT..!!! REALLY APPRECIATED for the help..

    It back to original.

    but, may i know why need to rename that file become something not end with *.php? is that because it will not read default if some other php file exist?

    thank you very much again

    tom

  10. #10
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Add additional fields at checkout page, NEED URGENT HELP. Thank you

    Dr.Byte,

    I really need to add the additional fields at the checkout page (shipping page). and i just follow the first ariticle i posted above, and it not success. and i couldn't figure out what's wrong, can you help me in details?

    thank you

    Tom

 

 

Similar Threads

  1. 2Checkout Direct Return Update
    By Farrukh in forum Addon Payment Modules
    Replies: 25
    Last Post: 10 Nov 2011, 04:16 PM
  2. How To Accept ONLY Google Checkout
    By geoman64 in forum Addon Payment Modules
    Replies: 20
    Last Post: 28 Dec 2007, 06:36 PM
  3. Replies: 2
    Last Post: 25 May 2007, 01:22 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
  •