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

Write Magento Image labels based on a tidied up image filename #167

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

buttash
Copy link
Contributor

@buttash buttash commented Jul 19, 2016

I wanted to set my image labels to the product name and/or item colour. As my image filenames could be used for this purpose I wrote a change the image importer to set the label to the filename with certain edits, i.e. capitalised, underscores removed etc.

In doing this I also notice that filenames with ',' were being lost due to the gallery being encoded using commas. I've changed the encoding arbitrarily to '%%'. Likewise, I arbitrarily encode the filename/label using '||.

Not sure if this functionality is wanted/needed in PIMGento but I thought I'd offer it up.

Martin

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.

1 participant