Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Checkout_shipping blank after adding stock with attributes

Checkout_shipping blank after adding stock with attributes

Views: 773

Results 1 to 4 of 4
1 Dec 2011, 5:01 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Checkout_shipping blank after adding stock with attributes

ZC 1.3.9h

After reloading the stock with attributes addon, I now get a blank page when I go to checkout_shipping. What did I do wrong?

John

1 Dec 2011, 5:26 PM
#2
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Checkout_shipping blank after adding stock with attributes

I'm also seeing this in the error log, which seems to be related:

[01-Dec-2011 09:05:58] PHP Notice: Undefined variable: stockAvailable in /nfs/c06/h05/mnt/92537/domains/quinceandco.com/html/store/includes/modules/pages/shopping_cart/header_php.php on line 176

Also -- the checkout page is only blank when buying a product that has attributes, so I'm guessing it has something to with with the stock with attributes addon.

1 Dec 2011, 6:37 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Checkout_shipping blank after adding stock with attributes

OK, getting a little desperate here....

I've undone the reinstall of the stock with attributes addon (replaced all overwritten files with the straight 1.3.9h files) and I'm still getting a blank checkout_shipping page.

In checking my DeBug files, I see this fatal error repeatedly:

[01-Dec-2011 09:05:54] PHP Fatal error: Cannot redeclare class order in /nfs/c06/h05/mnt/92537/domains/quinceandco.com/html/store/includes/classes/order.php on line 1091

I've replaced the /includes/classes/order.php file with one from the 1.3.9h fileset, but I'm still getting the error.

What's going on?

John

1 Dec 2011, 6:57 PM
#4
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Checkout_shipping blank after adding stock with attributes

Problem solved -- it was caused by my very incomplete knowledge of PHP (now a little deeper, however).

The problem was caused by the way I renamed files instead of overwriting them (to be careful).

Here's the thread the provided my answer:

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