datashift_spree icon indicating copy to clipboard operation
datashift_spree copied to clipboard

#<NoMethodError: undefined method `stock_location_name=' for #<Spree::Product:0x00000007ecd9a0>>

Open connecticus opened this issue 8 years ago • 2 comments

This error appears in logfile.

I think this explains why it is not working count on hands. Any ideas how to fix it, gentlemen?

Begin processing Row 1 from CSV file Applying default value [available_on] on (available_on) Populator assign - [2016-03-03 15:55:25 -0700] via available_on (assignment) Assign 2016-03-03 15:55:25 -0700 => [available_on](CAST 2 TYPE 2016-03-03 22:55:25 UTC) Applying default value [CostPrice] on (cost_price) Populator assign - [0] via cost_price (assignment) Brute force assignment of value 0 => [cost_price] No operator found for default [stock_location_name] trying basic assignment #<NoMethodError: undefined methodstock_location_name=' for #Spree::Product:0x00000007ecd9a0> ` Failed to assign [default] via operator stock_location_name Badly specified default - could not set stock_location_name(default) Applying default value [shipping_category] on (shipping_category) Populator assign - [default] via shipping_category (belongs_to)

Spree 2.4 datashift - master datashift_spree - master

connecticus avatar Mar 05 '16 06:03 connecticus

Not sure if it helps, but in my XLS, am using China:999 to specifiy stock location:count for stock_items column

ping0xFF avatar Mar 09 '16 00:03 ping0xFF

Hi, sybind, thank you for advice (and for #53 ) - I finally can use stock items. Now everything work for me.

Error still here, but this not affect base functions. But I keep this issue opened.

I appreciate your help.

connecticus avatar Mar 12 '16 04:03 connecticus