dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
111 stars 31 forks source link

Sync existing memberships #184

Closed ciriousjoker closed 3 years ago

ciriousjoker commented 3 years ago

Is your feature request related to a problem? Please describe. We have lots of existing memberships. In a future app update, the mechanism to validate those wooCommerce subscription will change to use the new wp_memberships collection in Firestore.

Currently, only memberships that are updated in Woocommerce (ie new memberships & renewed/cancelled ones) will get synced to Firestore.

Describe the solution you'd like We'd like to have a button to import all existing memberships to Firestore.

Describe alternatives you've considered We've looked for a button in Woocommerce to trigger and update to all existing memberships, but we couldn't find such a thing.

Which fields does it relate to? Firestore

Additional context

N/A

ciriousjoker commented 3 years ago

A few things I've noticed:

dalenguyen commented 3 years ago

Hi @CiriousJoker, do you have a bulk Edit option in the membership? If you bulk edit, it will trigger the update for all.

image

ciriousjoker commented 3 years ago

This works, thank's. I've only tried with two memberships so far and I can imagine that this still takes quite a lot of time for 60+ pages, but that's something that can be fixed with a lot of work or an autoclicker script. #185 is the bigger issue here, since we can't fix this ourselves.

dalenguyen commented 3 years ago

Cool. I will close this one and will check #185 this weekend 👍