Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix SKU from model field or default to using the source on config as a string #12

Closed
wants to merge 3 commits into from

Conversation

talelmishali
Copy link

Hey! Came across the need to default the SKU prefix to a predefined string and not necessarily based on a field from the model.

-Check if the specified source field in the config file exists on the model, if not then use the source field as a string to prefix the SKU.

…as a string

-Check if the specified source field in the config file exists on the model, if not then use the source field as a string to prefix the SKU.
@nickfls
Copy link
Contributor

nickfls commented Jan 30, 2021

I would rather create SKU generator contract and offer an alternative implementation, but that is just me.
Let me check in a few

@cyrillkalita
Copy link
Member

@talelmishali you are not forgotten; you just reminded me of the original plan. Hold on tight, a new version is coming up

@cyrillkalita
Copy link
Member

@talelmishali take a look at #13
SkuGenerator is now fully customizable; you can just plug in your own login, either by extending or replacing completely.

@talelmishali
Copy link
Author

A very elegant solution, working great.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants