M
M
m0zal2017-05-10 03:53:10
MySQL
m0zal, 2017-05-10 03:53:10

Moving magento database - ruby ​​on rails spree. Question about importing images?

Good time, dear readers.
For the first time I will ask a question like this, I always found everything, but somehow I couldn’t.
I am migrating a site from mageno to rails spree. Faced the problem of importing in general.
At the very least, I dragged the goods into the database, but I'm at a dead end with pictures for the goods.
The product image in Magento has the storage address .x/b/c/img.png, the product image in the rails is repelled from the product folder and has the address ./(the root folder of the product) and does not let you go up, or I don’t understand how. Shouldn't I fill them with my hands?
Can someone suggest something?
For importing goods, there are 2 more gems:
- https://github.com/autotelik/datashift
- https://github.com/autotelik/datashift_spree
I still don't understand how to fill in --model=MODEL
when importing. In general, I did not manage to get these gems, although they were installed without problems. They give help about themselves, but when generating they are always dissatisfied with something. Guys, who fumbles, I really need help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
m0zal, 2017-05-10
@m0zal

Here is the error when importing via datashift, no matter xls or csv
.rvm/gems/ruby-2.4.0/bundler/gems/datashift_spree-acd8deeb0b98/lib/loaders/spree/image_loader.rb:28:in `initialize': uninitialized constant DataShift::SpreeEcom::ImageLoader::ModelMethodsManager (NameError)
.rvm/gems/ruby-2.4.0/bundler/gems/datashift_spree-acd8deeb0b98/lib/thor/spree/products_images.thor:83:in `new'
. rvm/gems/ruby-2.4.0/bundler/gems/datashift_spree-acd8deeb0b98/lib/thor/spree/products_images.thor:83:in `attach_images'
.rvm/gems/ruby-2.4.0/gems/thor-0.19 .4/lib/thor/command.rb:27:in `run'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
.rvm/gems/ruby-2.4.0/gems/thor-0.19. 4/lib/thor/runner.rb:44:in `method_missing'
..rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/command.rb:29:in `run'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/command.rb:126:in `run'
.rvm/gems/ruby-2.4.0/gems/thor-0.19. 4/lib/thor/invocation.rb:126:in `invoke_command'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
.rvm/ gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/bin /thor:6:in `'
.rvm/gems/ruby-2.4.0/bin/thor:23:in `load'
.rvm/gems/ruby-2.4.0/bin/thor:23:in `'
. rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question