Zen Cart Logo
Forums / General Questions / Shopping Cart is empty

Shopping Cart is empty

Locked

Views: 1,976

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
27 Jun 2010, 1:38 AM
#1
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Shopping Cart is empty

I just started up my new web store and though I have used zen cart in the past with my previous website.

I am using version 1.3.9a, using the CEON URI Mod, Stock Attribute Mod, I have SEO URI mod installed but have it turned off and Super Orders. I am also using theme 325 from Template-Help.com.

I have all these mods on my other site https://www.altertimes.com, except for the template.

Now everytime I try to add a product to my cart it comes up saying Shopping Cart is empty and will not add the product. I can not figure out why, and I thought maybe it was the template, but when I switch back to the default template it still does it.

Now maybe it has just been so long since I installed my first site and this is a common problem I do not remember, but I am really having problems at this point.

The website is Kuro Neko Studios .

27 Jun 2010, 2:18 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,621
Plugin Contributions:
0

Re: Shopping Cart is empty

If you switch back to the stock, Classic template does it work?

27 Jun 2010, 5:09 PM
#3
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

No, I tried switching back and it does the exact same thing.

27 Jun 2010, 5:24 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Shopping Cart is empty

I am adding things to the cart on your site and not having problems ...

Did you fix this? :unsure:

27 Jun 2010, 5:27 PM
#5
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

No, this is odd. I never fixed it and when I go to Kuronekostudios.com I still can not add items to the cart. It tells me the shopping cart is empty still.

Were you able to just click on add cart.

27 Jun 2010, 5:28 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

On the Nuro Neko site, do you have any debug files in the cache?

1.3.9a includes an auto debug that may help.

27 Jun 2010, 5:30 PM
#7
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

I am not sure, let me check on that.

27 Jun 2010, 5:41 PM
#8
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

Ok I found the debug file and there is a bunch and each one says

PHP Warning: Invalid argument supplied for foreach() in /home/content/k/u/r/kuroneko/html/includes/templates/theme325/sideboxes/tpl_categories.php on line 20

Though when I look at it, I am not sure exactly what it should say.

27 Jun 2010, 5:43 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

difficult for us to say what the diff would be as we can't see the file.

Try winmerge to look at the one in the template against the one in template_default for your version.

27 Jun 2010, 5:48 PM
#10
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

Ok I have winmerge up and there is two different lines of code and I am looking at line 20 and I am not sure what is wrong.

27 Jun 2010, 5:51 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Shopping Cart is empty

My bad ... wrong site ... :blush:

27 Jun 2010, 5:54 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

@Ajeh
I hope the eyes are better:hug:

27 Jun 2010, 5:54 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Shopping Cart is empty

Not my bad ... I can add from New Products and All Products ... where I cannot add is things using your rewrites ... turn those off does it fix the problem?

27 Jun 2010, 5:55 PM
#14
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

How about posting lines 15-25 of the offending file?

27 Jun 2010, 6:01 PM
#15
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

Ok I just found out if I amlooking at the catergory and it gives me a list of items I can add them to my cart by selecting and then clicking the button that says "Add selected items to my cart". When I select to add the item to my cart button on the items actual. It will not add them and will only show what I already added or tell me that the shopping cart is empty.

27 Jun 2010, 6:03 PM
#16
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

This is line 15-25

$li_class="";
$levels = array();

$j = 0;
foreach($main_category_tree->tree as $key => $value){
for ($i=0;$i<sizeof($box_categories_array);$i++){
if($box_categories_array[$i]['path'] == 'cPath=' . $value['path']){
$levels[$i] = $value['level'];
}
}

27 Jun 2010, 6:15 PM
#17
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

Either you have accidentally overwritten the tpl_categories file, the template is installing a bogus file, or a mod has added a bogus file.

Try temporarily renaming the offending file to tpl_categories.php to tpl_categories.php.old. That will temporarily take it out of the picture and you can easily "put it back" if nothing changes.

27 Jun 2010, 6:19 PM
#18
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

Changing the name of the file doesn't change it.

27 Jun 2010, 6:21 PM
#19
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: Shopping Cart is empty

did the debug change or go away when the file was renamed?

27 Jun 2010, 6:23 PM
#20
themadhattermd avatar

themadhattermd

New Zenner

Join Date:
Jul 2008
Location:
Pittsburgh, Pa
Posts:
50
Plugin Contributions:
0

Re: Shopping Cart is empty

Yes the debug went away.