vehiclefits / vfmagento

A set of modules for adding vehicle specific features to your Magento shopping cart.
http://vehiclefits.com
Open Software License 3.0
22 stars 18 forks source link

Vehicle on sales order #49

Open joshribakoff opened 11 years ago

joshribakoff commented 11 years ago

If you have a sales order come through it stores the ID of the vehicle. If the admin clears the schema & imports the fitments back in, that vehicle may have a new ID, so those orders may show the incorrect vehicle. I didn't think of this previously. I should probably store the name of the vehicle as a string instead of the ID of the vehicle.

Also if the vehicle is not found it throws an exception. I also need to rethink whether that situation should cause an exception/error, or just return null.

VF_Vehicle_Finder->findByLevel('model', 152433)
VF_Vehicle_Finder->findByLeaf(152433)