That is pure GENIUS Nathan! - CS-Cart please note !
This concept solves so many problems - let me elaborate:
The import add-on for Multistore does not import from Community to Multistore and the Upgrade from Community to Ultimate will only ever import one store at a time (when it works) and not combine multiple stores into one Ultimate installation.
This concept of importing by Product Code solves this problem and more. With multiple stores and the same product in some of the stores, using this idea to import by product code you will be linking the order items to the new single product. This way you can import the products using the standard import tool and all the order items will be linked correctly from each store to one product.
I was going down the route of having to modify the order items to change the ProductID within the order items (exported from Community) to match the new ProductID of Ultimate. I guess I could still do this - but by realising that the product code could be used to achieve a 1-1 relationship between source and target stores it is so much easier. Although it wouldn't work if you had used the same product code for different products (even on different stores) - but then product codes should be unique to the product anyway (even across stores).
I recommend that CS-Cart support this brilliant idea as it solves so many issues with converting from multiple stores to Ultimate and keeping order items linked correctly (ideally products and combinations). It also allows importing of orders from other shopping carts (which is I guess is what Nathan developed this for) and would allow users of competitor carts to import order items when they realise they should have been using CS-Cart all along and decide to switch (better late than never!).
Thank you for sharing - and would be glad to know of any problems / fixes that you encounter.
One question though - which version / package have you had this working on - I am hoping it would work for 3.0.2 Ultimate. Order items are not associated with stores (but with orders), so hoping it would work on Ultimate.
|