benmorganio
11/11/2022, 5:56 PMbenmorganio
11/11/2022, 5:58 PMEdwin Cruz
11/11/2022, 5:58 PMseandawes
11/11/2022, 8:31 PMSean Denny (he/him)
11/11/2022, 9:30 PMKurtis
11/12/2022, 10:52 AMKurtis
11/12/2022, 10:54 AMKurtis
11/12/2022, 10:55 AMKurtis
11/12/2022, 10:55 AMKurtis
11/12/2022, 10:59 AMSébastien Ternest
11/13/2022, 11:45 AMFelipe Araujo
11/13/2022, 4:56 PMMarie Lamoureux
11/14/2022, 8:36 AMJosé Garibotti
11/14/2022, 9:21 AM3.0.8
to 3.1.8
I followed the steps on the Changelog but I have some problems with the preferences.
We have a class like this:
module Spree
module Calculator::CompanyAmount
class FlatDefault < CompanyAmountCalculator
preference :rate, :decimal, default: 25.0
preference :fixed_amount, :decimal, default: 0.0
preference :click_and_collect_rate, :decimal, default: -> { preferred_rate }
preference :click_and_collect_fixed_amount, :decimal, default: -> { preferred_fixed_amount }
preference :co_branding_rate, :decimal, default: -> { preferred_rate }
preference :co_branding_fixed_amount, :decimal, default: -> { preferred_fixed_amount }
end
end
end
And when tryin to initialize it it can not access the preffered_rate
(or preferred_fixed_amount
)
Failure/Error: preference :click_and_collect_rate, :decimal, default: -> { preferred_rate }
NameError:
undefined local variable or method `preferred_rate' for #<Class:0x000000012e280030>
Did you mean? preference_encryptor
Did I miss something or are preferences not utilized correctly ?Sébastien Ternest
11/14/2022, 9:45 AMKurtis
11/15/2022, 9:28 AMKurtis
11/15/2022, 9:28 AMKurtis
11/15/2022, 9:28 AMKurtis
11/15/2022, 9:28 AMMarie Lamoureux
11/17/2022, 8:37 AMLoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
but I checked and I already installed vips - or:
ActionController::RoutingError (No route matches [POST] "/")
ActionController::RoutingError (No route matches [GET] "/.env"
Any idea what I'm doing wrong?Sébastien Ternest
11/17/2022, 10:17 AMOmari Mubutu
11/17/2022, 11:35 AMbefore_action :authenticate_spree_user!
on my store controller but it renders unauthorized (solidus 3.2) as well as it say _redirected too many times on the browser. I'_m trying to authenticate customers before they can shop; is there another way of achieving this ??jakemumu
11/17/2022, 11:21 PMjakemumu
11/18/2022, 12:15 AMGabriel Guérin
11/21/2022, 1:47 PMstorefront.html.erb
seems to work however (with the text being very small).jakemumu
11/22/2022, 8:03 PMRasna Shakya
11/23/2022, 7:29 AMBFX462heo
11/23/2022, 9:38 AMBFX462heo
11/23/2022, 9:40 AMBFX462heo
11/23/2022, 9:42 AM