3

Has anyone used Cartthrob with a super stuffed cart of 100 to 200 items in cart?

I'm attempting to create a system in the style of an online supermarket shopping cart where you can see all your products in a single cart.

Adding products works ok (could be quicker, 5s load time), but when using the update cart form takes minutes to load.

  • Could Brilliant Retail or Expresso Store do this job better? – Samsull Dec 5 '12 at 12:10
  • I'm not sure that the specific module used for this would matter much. I haven't looked, but I'd imagine all three ecommerce modules use a similar method of storing the cart. – Jeremy Gimbel Dec 5 '12 at 19:23
  • I think you might be best asking this on the CT forums if you haven't already. The BNI guys are the ones best placed to give a definitive answer, but I don't think any of them are currently members here. – Tom Davies Dec 5 '12 at 21:56
  • I have already cartthrob.com/forums/viewthread/7470 – Samsull Dec 6 '12 at 9:43
  • Have you looked at your debugging output yet? That should tell you where the issue is occurring on the save. – Anna_MediaGirl Dec 6 '12 at 18:25
1

As MediaGirl mentioned in the comments, you should look at your debugging output. There is nothing about CartThrob itself (or loading 100 products) that should cause the slowness that you describe. The debugging output will give you more info though. It's possible that it's not even CartThrob which is the core cause of your problems.

You might also want to try using your Chrome / Firefox developer tools to see if there is anything funky going on with loading resources.

Otherwise, you need to post more information. For example, does everything load fine when you only have a handful of products that you are working with?

  • I just did a comparison with an older build. Added over 30 products and less than a sec to load, on my new site it takes over 20 secs. Time to strip down the engine! I'll post back if I find the problem. – Samsull Dec 7 '12 at 10:12
  • Not solved just yet! I'm now having the same issue with the add_to_cart_form tag pair. It's used inside the exp:channel:entries tag pair to list out the products. When the add_to_cart_form tags are outside the exp:channel:entries tags it renders fast, the problem is I need to grab the entry_id so it can't go outside. – Samsull Dec 20 '12 at 12:56
1

I think you need to wrap the {exp:cartthrob:update_cart_form} tag round the {exp:cartthrob:cart_items_info} and not the other way round :)

  • That's it! this stops the update_cart_form from being called over and over again. – Samsull Dec 20 '12 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.