Hey @s2ontwerp
You can use our ‘pmxi_single_category’ hook for this. Here are a couple of examples: https://paste.ee/p/9StwB
Awesome, that brings me one step closer to my goal.
Is it also possible to apply a bit of fuzzy matching at the beginning and the end of the taxonomy name?
Alternatively, could I perhaps use wildcards in category mapping to take a different approach? For instance, if I want to map a certain group of products into an overlapping child category and parent category, based on model and brand:
Bosch Boormachine GBM 1600 RE Professional
Bosch Boormachine GBM 6 RE Professional
Bosch Boormachine GBM 13 HRE Professional
Bosch Boormachine GBM 130 HRE Professional
Mapped in your file:
‘Bosch Boormachine GBM *’
Translated to:
‘Bosch Boormachine GBM’
Would this be possible to do with mapping?
Hey @s2ontwerp
This wouldn’t be possible in our dedicated mapping section, but you could use a custom PHP function in the import to map it yourself.
Depending on your data, you might need to do it differently, but here’s a really basic example: https://paste.ee/p/LyyVb
With this, if you called [soflyy_map_cat({category[1]})] when {category[1]} equals “Bosch Boormachine GBM 130 HRE Professional” (for example), it would return only “Bosch Boormachine GBM”.
Thanks a lot for creating this amazing plug-in and giving top-class support to your paying users! I wish nothing but the best to your team