×

Notice

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

TOPIC: Not all my lists is showing

Not all my lists is showing 9 years 8 months ago #30411

  • stefan
  • stefan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi,

I got a problem with not all my lists from mailchimp is showing in my module or component list section

Any thoughts on this.

Thanks

Not all my lists is showing 9 years 8 months ago #30412

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The module doesn't fetch all the lists from mailchimp. It gets the lists that are synced in the component. So go to the component and sync all the lists that you want to use on the site and then they should appear in the module.
Regards,
Daniel

Not all my lists is showing 9 years 8 months ago #30413

  • stefan
  • stefan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel,

Thanks but that is where the problem is the list is not showing under the component, so i cant select it from there and sync it.

Regards,
Stephaan

Not all my lists is showing 9 years 8 months ago #30419

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Are you sure that you have the correct credentials? Have you provided the API key for the correct account?

Not all my lists is showing 9 years 8 months ago #30453

  • stefan
  • stefan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi.

Yes all the credentials are correct. I got 28 lists and only 25 of them shows. If i duplicate the lists not showing in mailchimp then they show but the original list still not showing.

Regards

Not all my lists is showing 9 years 8 months ago #30455

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Aha, you have more than 25 lists??? I just checked and the list call that we make to mailchimp has a limit set to 25. Are you sure that when you duplicate a list it shows in CMC? Is it possible that it shows, because this list now gets on top of the queue, but some other list is missing?
Try the following: administrator\components\com_cmc\controllers\sync.json.php on line 46 you have this:
$listStats = $chimp->lists(array('list_id' => $lists));

change it to:
$listStats = $chimp->lists(array('list_id' => $lists),0 , 100);

Do you see your list now?

Regards,
Daniel

Not all my lists is showing 9 years 8 months ago #30456

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
No, actually ignore the above post. It's wrong. Go here:
\administrator\components\com_cmc\views\sync\tmpl\default.php on line 21 you have
$lists = $chimp->lists();
change it to
$lists = $chimp->lists(array(), 0, 100);

Refresh the page and then the all lists should show in the list.
Regards,
Daniel

Not all my lists is showing 9 years 8 months ago #30458

  • stefan
  • stefan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel.

Awesome that works now in the component list.

How would i apply this to the module as well because the module still only show the same list even if i sync the new lists.

Regards

Not all my lists is showing 9 years 8 months ago #30459

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Interesting, I thought that the module is taking the results from the db, but it actually seems that we request them from mailchimp.
Go to \administrator\components\com_cmc\models\fields\cmclists.php line 30:
$lists = $api->lists();
change it to:
$lists = $api->lists(array(), 0, 100);

Not all my lists is showing 9 years 8 months ago #30460

  • stefan
  • stefan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel.

It is working now perfectly.
Thank you for the excellent support.

Kind regards.
Stephaan
  • Page:
  • 1
Time to create page: 0.126 seconds