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!


