nystudio107 / craft-instantanalytics

DEPRECATED: Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
https://nystudio107.com/
Other
20 stars 9 forks source link

Error adding a Donation to Cart #34

Closed antcooper closed 4 years ago

antcooper commented 4 years ago

Describe the bug

I have setup the Donation under Commerce > Store Settings and added the sample code to my Basket page. When I add an amount and submit, I run into errors with Instant Analytics.

It seems the Donation product is an oddity and missing certain parameters that a normal product has, such as Title.

To reproduce

Steps to reproduce the behaviour:

  1. Add donation form to a template. Enter an amount and submit

Expected behaviour

Item added to Basket. Donation product passed to Analytics

Versions

khalwat commented 4 years ago

@antcooper Can you get me the error logs produced by IA for this?

khalwat commented 4 years ago

Fixed via PR, thanks!