Skip to content

Instantly share code, notes, and snippets.

@MonteLogic
Last active July 25, 2024 15:52
Show Gist options
  • Save MonteLogic/977d4c15bf03aa1b63b553de241f4cae to your computer and use it in GitHub Desktop.
Save MonteLogic/977d4c15bf03aa1b63b553de241f4cae to your computer and use it in GitHub Desktop.
api-layer-bug-wordpress

Start: Wed 24 Jul 2024 04:20:29 PM CDT

Goal, reproduce the bug.

Find the logic which is creating the bug.

HubSpot has a good system for adding add-ons to HubSpot.

We could stop the flow automatically unless changed it setting but that could not be considered a real fix.

Is HubSpot alright or is being edited by WooCommerce? HubSpot.com isn't alright because its being editing by Woo

I need to figure out a way to get custom API keys and then I can do a lot more better stuff.

Because if I can get keys for one user and then

So, I think I'm going to make a private app and then I will make it so that

This sync log, shows when stuff is synced, so I wonder how often the name stuff gets changed. http://test-mwb-1.local/wp-admin/admin.php?page=hubwoo&hubwoo_tab=hubwoo-logs

I understand why people are ghosting you.

That sync happens immediately so doing an action before the sync happens isn't practical.

https://makewebbetter.com/product/hubspot-field-to-field-sync/

I'm not even sure how you would change the customer name from WooCommerce.

So changing any customer fields in the settings of MWB, thats not going to really work all that. Well, I mean you could do for like a last-ditch effort but It's better to just like keep it as is. But like take for instance, like there should be, there could be like an edit customer data thing.

That is that and you just edit customer data and do it through That would be the best solution because it would I wouldn't have to Go into and this make MWB stuff and edit it which is going to take me like a week Because how much code it is.

It's not really written in good, it's not really written best practices. So it's like really tough to get into So International adapt to like propose it to for them to like work on it. So you just go into like an edit customer data like area for the customers and just like, they'll be like a drop down here And just like edit it And he just add all this stuff.

I think, you'll be able to add extra fields onto HubSpot and not worry about this data being overwritten.

The extra fields do no include.

Name,Username,"Last active","Date registered",Email,Orders,"Total spend",AOV,"Country / Region",City,Region,"Postal code"

edit customer data woocommerce

Third party plugin that kinda does something like this: https://woocommerce-manager.com/useful-articles/woocommerce-customer-management/

Here they are bemoaning the problem: https://wordpress.org/support/topic/modify-customer-data-as-administrator/

So, I am going to make it first, a edit customer data area and then once I get that done focus on integrating it through 'private apps' on HubSpot.

We will be modifying WooCommerce logic/data rather than MWB stuff so there will be greater continuity.

Start: Thu 25 Jul 2024 10:52:52 AM CDT

So going to create a plugin called 'Edit Customer Data'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment