You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup a new Spree app with Spree multi vendor gem. I have encoutered an issue while accessing the vendor admin panel where it shows only orders for that vendor. I got error like vendor_id is not present in the spree_orders table. I have checked in the multi vendor gem and I have not found any support for vendor_id in the orders table. After debugging I have found that the issue is coming due to the vendor association that has been added in the orders model in spree core here - core/app/models/spree/order.rb.
if defined?(Spree::VendorConcern) include Spree::VendorConcern end
I am not sure why it is added directly in the spree core, there may be a reason I am not aware of but now the issue is happening because the vendor association is now added directly in spree core and multi vendor gem does not have support for it. Even If I add vendor ID to orders table it will still not be feasible because an order can have multiple vendors that's why we have it in line_items and shipments.
May be I have missed something here. So I just want to ask if this is really an issue or am I missing something here?
Would be glad to hear from you guys. Thank you in advance.
The text was updated successfully, but these errors were encountered:
I have setup a new Spree app with Spree multi vendor gem. I have encoutered an issue while accessing the vendor admin panel where it shows only orders for that vendor. I got error like
vendor_id is not present in the spree_orders table
. I have checked in the multi vendor gem and I have not found any support for vendor_id in the orders table. After debugging I have found that the issue is coming due to the vendor association that has been added in the orders model in spree core here -core/app/models/spree/order.rb
.if defined?(Spree::VendorConcern) include Spree::VendorConcern end
I am not sure why it is added directly in the spree core, there may be a reason I am not aware of but now the issue is happening because the vendor association is now added directly in spree core and multi vendor gem does not have support for it. Even If I add vendor ID to orders table it will still not be feasible because an order can have multiple vendors that's why we have it in line_items and shipments.
May be I have missed something here. So I just want to ask if this is really an issue or am I missing something here?
Would be glad to hear from you guys. Thank you in advance.
The text was updated successfully, but these errors were encountered: