Closed JamesFX2 closed 1 year ago
Hi @JamesFX2 - thank you for raising this issue. In May we released an update to our extension (4.0.4) which removes Product descriptions from the Added to Cart payload - this descriptions were often too large. I noticed in the payload you posted the description is present, have you updated to the latest version of the extension? We are currently looking into updating the field type as you mentioned as well as looking into how we can optimize our added to cart implementation.
We've added handling for this in the latest release 4.0.7, see #215 . This includes adding in try catch blocks like you suggested so any exceptions due to existing truncated payloads in the DB don't prevent other rows from syncing. This is a first round of future added to cart improvements we plan to make - thank you for your continued feedback as we work to make our extension better!
Notice: Undefined index: Categories in app/code/Klaviyo/Reclaim/Cron/EventsTopic.php on line 156
Assuming it's because the payload field is truncated. I'm sure you're just going to change it to mediumtext but please consider a more optimal storage strategy, i.e. pulling the details from the product repository (so they're cached) and instead of loading the same category over and over, try caching any pulled names cos... yeah, that's gonna slow your process. You might also want to use a try/catch.
Here's the payload field from the top entry.
Hah, had to double truncate it - "There was an error creating your Issue: body is too long (maximum is 65536 characters)."