Tom Wilson
08/12/2021, 8:18 PMTom Wilson
08/12/2021, 8:18 PMselect_shipping_method
Tom Wilson
08/12/2021, 8:18 PMTom Wilson
08/12/2021, 8:18 PMTom Wilson
08/12/2021, 8:22 PMHaroon Khalid
08/16/2021, 11:39 AMHaroon Khalid
08/16/2021, 11:39 AMVlad Danciu
08/16/2021, 12:10 PMTom Wilson
08/16/2021, 9:23 PMselect_shipping_rate
method to the spree/api/shipments_controller.rb
class, and I'm having some difficulties.Tom Wilson
08/16/2021, 9:24 PMTom Wilson
08/16/2021, 9:24 PMlock_order
, which makes good sense.Tom Wilson
08/16/2021, 9:25 PMbefore_action
for invoking find_shipment
(which sets the @order
variable) only for specific actions: https://github.com/solidusio/solidus/blob/master/api/app/controllers/spree/api/shipments_controller.rb#L7Tom Wilson
08/16/2021, 9:25 PMlock_order
method before reaching my new code.Tom Wilson
08/16/2021, 9:29 PMbefore_action
to invoke find_shipment
seems like it doesn't work because it either ends up clearing the other before actions or runs in the wrong order.Jared Norman
before_actions
like we do with the middleware stack.
If there's not a reasonable way to make it work, I would take it as a sign to just add your own API controller that works the way you need and switch over to using that.Tom Wilson
08/16/2021, 9:55 PMTom Wilson
08/16/2021, 9:56 PMfind_shipment unless @order
to the lock_order
call. In case anyone else happens to have a similar use case)Tom Wilson
08/16/2021, 9:56 PMGiven Reed
08/17/2021, 7:25 PMproduct = Spree::Product.find_by(sku: row['associated'])
) results in a message that says:
column spree_products.sku does not exist
, which is true, it doesn't.
I've done this loading on other fields, but I guess I've done it on fields that exist in the actual table. I see the sku in spree_variants
, but it doesn't seem to like Spree:Variant
either.
I can see that there's a sku search in the admin, but I can't quite sort out how it pulls the info. Any pointers?Kevin I
08/18/2021, 8:03 PMTom Wilson
08/18/2021, 10:00 PMTom Wilson
08/18/2021, 11:27 PMAhmad Ridwan Fauzi
08/19/2021, 7:31 AMTEMITAYO ADELEKE
08/19/2021, 4:12 PMline_item
based on the days of the week(Mon, Tues, Wed, Thurs, Fri, Sat, Sun), this is basically to change item price depending on the day. I'm a beginner(.i.e I've just started learning solidus) and I'm just trying to understand how to implement this using the modules mentioned in the documentation(handler, action, and rule). I will appreciate any tips, suggestions, or advice. Thanks 🙏Matheus Kemer
08/20/2021, 1:55 PMVlad Danciu
08/20/2021, 5:56 PMVlad Danciu
08/20/2021, 5:57 PMGiven Reed
08/20/2021, 7:27 PMtax_rates_controller.rb
as a proof of concept, but I know that's not the right way to go about it. What's the best way to extend / override an existing controller action to add some additional functionality?
I've seen some articles talking about overrides, some use decorators. I'm sure it's super easy to do, I just haven't seen the right explanation for it so it hasn't "clicked" in my head yetAhmad Ridwan Fauzi
08/23/2021, 9:19 AMUmair Ali
08/23/2021, 2:20 PM