Giter Site home page Giter Site logo

Comments (5)

oasisfleeting avatar oasisfleeting commented on June 20, 2024

Update.
I ran the utility again in order to set the correct order on my custom options.
I again got the foreign key contraint error when trying to save a simple product.
I went to configuration and turned on flat tables and re-indexed using the Magento core indexer and I no longer get the foreign key error when saving a product.

However, the second run, the option groups inserted in the correct order, but the options belonging to the drop_down were not inserted in the correct order in all entries, when comparing against my xml file.

If I try to edit the order of the options I get the foreign key contraint error again

Note: I can save the products fine as long as I don't mess with any of the Custom Options.

Magento 1.9.0.1
PHP 5.3.28
Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/0.9.8i mod_bwlimited/1.4
WebServer to PHP Interface cgi-fcgi
MySQL 5.1.73
Linux Centos (not sure which version anymore)

from magmi-git.

dweeves avatar dweeves commented on June 20, 2024

hi, magmi plugin for custom options destroys all custom options & recreate them. This is what causes discrepancies with magento indexes (unless rebuilding them).

I think custom options might not be the right path to go , configurables should work even without inventory control.

for custom options ordering, there is a way to control it using the long value syntax with: (colon) separator in the option value itself. Ordering is the last part of long value syntax (see http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Custom_Options , last sample of syntax paragraph)

from magmi-git.

oasisfleeting avatar oasisfleeting commented on June 20, 2024

Thanks for the reply. I will indeed use the long syntax when I rerun my datapump script the next time so that I can re-order the option values as well as the options themselves.

I have been considering creating one or more attribute sets and tying all or some simples to configurables, but I'm not ready for that yet.

It will take a lot of clean up on the old database output to do this as it was not an eav model database so it's the old garbage in garbage out thing again. For now I'm just writing the queries in sql server to fetch the data in xml and running the xml against magmi to see how things look and behave.

This is my first Magento in over 5 years and my first time using magmi.

Feel free to close this at any time as this issue is resolved.
Thank you.

from magmi-git.

dweeves avatar dweeves commented on June 20, 2024

Just to add, you may not need to use xml intermediate format , magmi has plugins to consume input data from SQL source as long as you can setup connectivity to it.

from magmi-git.

oasisfleeting avatar oasisfleeting commented on June 20, 2024

Yes, I noticed that in the documentation, but as you pointed out connectivity is an issue as well as my poor T-SQL skills. You have no idea how many times I have wished for an agg_array function like the one in PostgreSQL.

from magmi-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.