Results 1 to 10 of 10

Hybrid View

  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
    [email protected]

  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
    69,402
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  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
    66,443
    Plugin Contributions
    279

    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!
    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.

  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
    66,443
    Plugin Contributions
    279

    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!
    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.

  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. HI, i need a help about categories's display ,thank you
    By kaelin.joy in forum General Questions
    Replies: 4
    Last Post: 8 Oct 2013, 01:56 PM
  2. Need Urgent Help please and Thank you
    By wondergirl in forum General Questions
    Replies: 1
    Last Post: 11 Aug 2010, 06:28 AM
  3. How do you add text to last Thank You page after purchase complete?
    By catangirl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Sep 2007, 10:25 PM
  4. Need urgent help on checkout page..pls
    By tom2u in forum General Questions
    Replies: 10
    Last Post: 14 Aug 2007, 07:06 PM
  5. On thank you page- customer service link- need to change default email-HELP!
    By catangirl in forum Customization from the Admin
    Replies: 1
    Last Post: 19 Jan 2007, 06:54 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