Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Product type fix #56

Merged
merged 4 commits into from Sep 8, 2016
Merged

Product type fix #56

merged 4 commits into from Sep 8, 2016

Conversation

decarvalhoaa
Copy link
Contributor

  • Add _translation_porduct_type meta to products created before plugin activation
  • Replace get_product soft deprecated for wc_get_product
  • Correct "porduct" typo

Note/ToDo: _translation_porduct_type has a typo that was deliberately not corrected. Correcting it was result in brake product synchronization for products already translated in the BD.
To correct this we could enhance the new class method addProductTypeMeta() with a switch/case implementation

case "typo: replaces with correct meta name and use existing value
case "not found": add meta
case "found": do nothing

Let me know if you want me to implement this?

@decarvalhoaa decarvalhoaa changed the base branch from master to new_release September 8, 2016 19:55
@decarvalhoaa decarvalhoaa added this to the Release 0.29 milestone Sep 8, 2016
@decarvalhoaa decarvalhoaa merged commit 25ba5b9 into new_release Sep 8, 2016
@decarvalhoaa decarvalhoaa mentioned this pull request Sep 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants