Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Add additional fields at checkout page, NEED URGENT HELP. Thank you

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

Locked

Started by tom2u on 6 Aug 2007, 1:32 PM · Views: 1,824

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
6 Aug 2007, 1:32 PM
#1
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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]

6 Aug 2007, 1:58 PM
#2
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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

6 Aug 2007, 3:10 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :cool:

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!

7 Aug 2007, 1:52 AM
#4
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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

7 Aug 2007, 2:11 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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:

'order.php'
```(including the quote marks)

What does it tell you ?

Then do the same thing again for this phrase:```
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.

8 Aug 2007, 1:07 AM
#6
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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');

8 Aug 2007, 1:09 AM
#7
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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 Aug 2007, 2:39 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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

tom2u:

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.

8 Aug 2007, 1:16 PM
#9
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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

8 Aug 2007, 1:21 PM
#10
tom2u avatar

tom2u

New Zenner

Join Date:
Jul 2006
Posts:
42
Plugin Contributions:
0

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