I have a CSV with this format:

"SKU","Title","Price","FormattedPrice","Image","Description","Weight","Length","Width","Height"

and I have a mapper which maps FormattedPrice to three different target fields. Feeds does fine with this.

However, Feeds tamper only allows me to fiddle with the first mapping, not the other two.

In other words, I want Feeds Tamper to apply transformations to

FormattedPrice -> Cost
FormattedPrice -> List Price
FormattedPrice -> Sell Price

But it doesn't offer options two and three.

Comments

twistor’s picture

This is currently a limitation. The problem lies in the fact that tamper is dealing with is the source data, not the actual mappings. It modifies the data before the mappings take place. The "FormattedPrice -> Cost" is only there to remind the user what they're modifying, but it seems that it gives the wrong idea.

If the transformations that you want to perform on FormattedPrice are the same for each mapping then you're in luck. If not there are workarounds but they're not pretty.

twistor’s picture

Title: Document source copying, i.e. feeds_tamper_store and feeds_tamper_blank. » Assumption of unique mapping destinations is wrong
Component: Documentation » Code

I committed a patch that illustrates better that there are multiple targets being modified.

http://drupalcode.org/project/feeds_tamper.git/commit/64b95e3

twistor’s picture

Title: Assumption of unique mapping destinations is wrong » Document source copying, i.e. feeds_tamper_store and feeds_tamper_blank.
Component: Code » Documentation
Assigned: Unassigned » twistor

Now we(me) need to document how to perform separate modifications to the same source.

twistor’s picture

Title: Assumption of unique mapping destinations is wrong » Document source copying, i.e. feeds_tamper_store and feeds_tamper_blank.
Component: Code » Documentation
Status: Active » Closed (fixed)