Comments (1)
I finally implemented my own solution, anyway for there are my points for necessary updates to Spree 4.2 compatibility:
https://github.com/spree/spree/blob/c47e591882d79e766847c627773d29186aa2224b/frontend/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js#L283
-> this pass empty param[:options]… JavaScript have to be customized for passing selected variant of the part (update of the part variant selector form to 4.2 style would be also nice)
===========
-> double of [:selected_variants]['selected_variants’] … should be only [:selected_variants]
===========
Maybe Spree issue, if not then create decorator …:
spree/spree#10986
===========
-> outdated implementation that doubles InventoryUnits … should be maybe like
module Spree
module Stock
module InventoryUnitBuilderDecorator
def units
@order.line_items.flat_map do |line_item|
line_item.quantity_by_variant.flat_map do |variant, quantity|
byebug
Spree::InventoryUnit.new(
pending: true,
line_item_id: line_item.id,
variant_id: variant.id,
quantity: quantity,
order_id: @order.id,
)
end
end
end
end
end
end
… maybe another issues, but this was what I noticed
from spree-product-assembly.
Related Issues (20)
- ETA on 3-0-stable compatibility? HOT 3
- translation missing en.spree.validation.must_be_int HOT 1
- Bundler could not find compatible versions for gem "activemerchant"
- Parts should be linked to Variants instead of Products. HOT 7
- Possible Issue with setting part master to not track inventory HOT 1
- Disabling of before_payment state eliminates payment_sources HOT 3
- Part items pricing not adding up
- Option to NOT add part to product assembly
- can_be_part and individual_sale translation
- Didn't work for spree 3.0.0 HOT 1
- Compatibility with Rails 5 and Spree 3.2
- Need of a clearer readme || Getting started || Documentation HOT 1
- spree 3.3 compatible? HOT 3
- Stock availability bug with multiple variants in assembly HOT 2
- Missing products due to translations HOT 2
- Caching issue on assembly product pages (product cache key) HOT 1
- Spree 3.7 compatibility
- undefined method `variant_options' in admin/orders/######/edit HOT 1
- Not tracking inventory correctly when same product in multiple bundles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree-product-assembly.