×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: CMC 3 not fetching all lists from mailchimp

CMC 3 not fetching all lists from mailchimp 7 years 7 months ago #34719

  • Ben
  • Ben's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
I am trying to configure CMC 3.0.0 on a standard Joomla 3.6.2 install. I have supplied my API key and so far so good. I am able to connect to my Mailchimp account, but for some reason, I am only seeing the first 10 lists in the component when attempting to sync while there are 18 in my Mailchimp account. Importantly, the list I would like to sync w/ Joomla is not available in the list.

I am running PHP 5.5.38 on a LAMP stack and am using the default admin template. Do you have any suggestions for me to try? This really seems like a well-made component and I'm willing to help troubleshoot with whatever dev knowledge I can offer.

Based on the Mailchimp API v. 3, it seems that the default list limit is 10, so what I'm seeing would make sense if there's no 'count' query parameter passed.

developer.mailchimp.com/documentation/ma...mp-api-3/#parameters

Can you address this? I see where I could hack the CmcHelperChimp class to add a 'count' parameter to the lists() call, but was wondering if you had any thoughts on supporting more than 10 lists officially.

CMC 3 not fetching all lists from mailchimp 7 years 7 months ago #34720

  • Ben
  • Ben's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
To confirm my suspicion, my hack worked and I was able to fetch all lists and not just the first 10 by changing /administrator/components/com_cmc/helpers/chimp.php, line 83 from:
$lists = $this->get('/lists');
to:
$lists = $this->get('/lists', array('count'=>'50'));

CMC 3 not fetching all lists from mailchimp 7 years 7 months ago #34821

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Okay, change made. Thanks for the help Ben!
  • Page:
  • 1
Time to create page: 0.155 seconds