Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
PHP Errors adding to cart
Posted: 30 May 2012 10:23 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  21
Joined  2012-05-09

I’m experiencing PHP errors when trying to add to cart. There are two instances when this happens. The first only happens on packs. I had an add to cart form working fine in my template for single products like so:

{exp:cartthrob:add_to_cart_form entry_id="{entry_id}" no_tax="{no_tax}" no_shipping="{no_shipping}" return="cart"}
<input type="hidden" id="product_quantity" name="quantity" value="1"  />
<
input class="button" type="submit" value="Add to Cart" />
{/exp:cartthrob:add_to_cart_form} 

So that works on single product, but when I try to add a package product to the cart, I get a bunch of PHP errors like so:

So I tried the add to cart template method like this:

{exp:cartthrob:add_to_cart entry_id="{segment_3}" quantity="1" return="cart/index"

That doesn’t work for any product, single or package and results in the following errors:

Interestingly, with either method the products appear to be added to the cart when I manually go to the cart page.

I really need to get this solved as quickly as possible. Any help on this?

Thanks!

Profile
 
 
Posted: 30 May 2012 12:07 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10223
Joined  2008-09-29

The error is being thrown by CT Admin, so I’ve moved this to the CT Admin forums. Make sure you are up-to-date on the latest CT Admin. I"ll leave the rest to Eric.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 30 May 2012 12:09 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  21
Joined  2012-05-09
Chris Newton - 30 May 2012 12:07 PM

The error is being thrown by CT Admin, so I’ve moved this to the CT Admin forums. Make sure you are up-to-date on the latest CT Admin. I"ll leave the rest to Eric.

As soon as I got the email saying you moved it to the CT Admin thread, I looked at the PHP errors again and realized it was referencing CT Admin, not just Cart Throb. My bad. I’ll check that it’s up to date.

Profile
 
 
Posted: 30 May 2012 12:15 PM   [ Ignore ]   [ # 3 ]
Wallflower
Rank
Total Posts:  22
Joined  2011-11-04

Hi TJ,

Please let me know how it goes; this sounds like an old, and solved, bug but I’m here to get things right if it’s new smile

Thanks,
Eric

Profile
 
 
Posted: 30 May 2012 12:15 PM   [ Ignore ]   [ # 4 ]
Wallflower
Rank
Total Posts:  21
Joined  2012-05-09

I do appear to be up to date with CT Admin 1.4.4.

I de-installed the CT Admin module and both methods are working properly now. So looking like a bug in CT Admin.

Profile
 
 
Posted: 30 May 2012 12:21 PM   [ Ignore ]   [ # 5 ]
Wallflower
Rank
Total Posts:  22
Joined  2011-11-04

Hi TJ,

I just sent you an update that should fix you right up. Please let me know how it goes.

Thanks,
Eric

Profile
 
 
Posted: 30 May 2012 12:55 PM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  21
Joined  2012-05-09
Eric Lamb - 30 May 2012 12:21 PM

Hi TJ,

I just sent you an update that should fix you right up. Please let me know how it goes.

Thanks,
Eric

The update you sent seems to have resolved the issue. Both methods for adding to cart now work as they should with both single products and packages.

Thanks!

Profile