Jared Norman
Tom Wilson
09/13/2021, 2:52 PMDaniel
09/14/2021, 2:27 PMdelivery
state and now have the issue, that no shipments are getting created during checkout now. What I would like to do is somehow move the delivery state steps to the cart or address steps without having to duplicate the entire Spree::Core::StateMachines::Order
module to avoid future update fiascos. I haven't found an answer by browsing through the guides / code. Is there an easy way to do this?Tom Wilson
09/14/2021, 5:23 PMsolidus_stripe
gem doesn't support Solidus 3. https://github.com/solidusio/solidus_stripe Is this something that's on the roadmap, or is there a better path to take to integrate Stripe?Locon
09/14/2021, 6:47 PM2.6.6 (console)[3] » Spree::Product::SEARCHER_STRING_LIMIT
NameError: uninitialized constant Spree::Product::SEARCHER_STRING_LIMIT
am I missing something else?
Thanks.victor
09/14/2021, 9:53 PMSpree::StockMovement
I wanted to go through the entire order flow. This way the order also shows up when the user logs in or an admin needs to track something.
Been looking at the specs, api and frontend controllers but I am having little successTyler Kocheff
09/15/2021, 6:09 PMsolidus_handling_fees
gem? I'm attempting to add a handling fee to specific items during checkout, but upon installing this gem and setting the shipping calculator per the readme, checkout errors out after entering the address with You cannot call create unless the parent is saved
I think this is the code it's complaining about in order_decorator.rb
of the gem:
shipment.adjustments.create!({
source: shipment.stock_location,
adjustable: shipment,
amount: amount,
order: shipment.order,
label: "Handling"
})
Tom Wilson
09/17/2021, 3:02 PMTom Wilson
09/17/2021, 3:03 PMconfirm
, the cart can be completed and end up in the "balance owed" state. It seems like it should invalidate the payments and kind of start again. Am I missing something here?kennyadsl
Tom Wilson
09/17/2021, 3:28 PMTom Wilson
09/17/2021, 3:29 PMkennyadsl
Tom Wilson
09/17/2021, 6:04 PMadvance
, which immediately moves the order from cart
back to confirm
. So it seems like the transition from payment
into confirm
doesn't actually require that the current payments on the order will cover the total.Tom Wilson
09/17/2021, 6:09 PMconfirm
to mean that you can successfully check it out.victor
09/19/2021, 7:59 PMNeil Johari
09/20/2021, 7:06 AMGuillermo Quezada
09/20/2021, 5:01 PMremove_line_items
endpoint and order.contents.remove_line_items
method then iterate to remove each one remove_line_item
DELETE /api/orders/:id/remove_line_items(.:format)
def remove_line_items_attributes
items = order.line_items
{
order: { line_items_attributes: [{id: items[1][:id]}, {id: items[2][:id]}]},
order_token: order.guest_token
}
end
context 'with authorization' do
stub_authorization!
it 'should remove line_items in batch' do
delete "/api/orders/#{order.number}/remove_line_items.json?token=#{user.spree_api_key}", params: remove_line_items_attributes
json_response = JSON.parse(response.body)
expect(json_response['line_items'].count).to eq(1)
end
end
OR
2. Add support in current Line items DELETE endpoint using rails REST API as a comma separated values
DELETE /api/orders/:order_id/line_items/:id
DELETE /api/orders/:order_id/line_items/:id1,id2,id3
Edwin Cruz
09/20/2021, 5:18 PMorder_contents = {
order: { number: order.number,
line_items_attributes: [{id: 1, quantity: 0}, {id: 2, quantity: 0}]
}
post :orders_update_cart(token: user.spree_api_token). params: order_contents
Felipe Fiebig
09/21/2021, 9:33 PMpayment_method_id
as seen here.
Is this expected behaviour ?Neil Johari
09/22/2021, 4:58 AMRafael Monroy
09/23/2021, 12:19 AMDaniel
09/23/2021, 10:33 AMHussain
09/23/2021, 11:53 AMrails g solidus:install
I get the following error:
/lib/ruby/gems/3.0.0/gems/mimemagic-0.3.10/lib/mimemagic/tables.rb69in `initialize': Is a directory @ rb_sysopen - /Ruby_ruby_on_rails/shared-mime-info-2.0/shared-mime-info-2.0/shared-mime-info-2.0/data (Errno::EISDIR)
Upon searching on the internet it says 'data' should be a file and not a directory.
I tried deleting/renaming 'data' it but it leads to more errors. So I guess this is required.
How do I resolve this?Valentín Sanjuan
09/23/2021, 3:17 PMafdev82
09/24/2021, 2:57 PMrails g solidus:update
generator?
If I run it on Solidus v3.1.1 I get the following:
$ bin/rails g solidus:update
Running via Spring preloader in process 12705
Could not find generator 'solidus:update'. Maybe you meant "solidus:install"?
Run `rails generate --help` for more options.
I thought it was supposed to be there in the new version.jakemumu
09/24/2021, 4:43 PMmattdala
09/24/2021, 8:41 PMAlistair Norman
09/24/2021, 9:27 PMRails::Paths::Path#paths
seems to not exist until then.
Update: Yeah looking at the history I think 3.1 now requires Rails 6.1. I'll just make an issueK
09/25/2021, 5:15 AMbundle install
to update the extension content.
Is it possible to update extension content during run time?
The way I add my local extension
gem "solidus_extension_name", path: "path/to/extension"
Thanks!