Abhishek Gupta
03/04/2024, 9:16 PMbenmorganio
03/04/2024, 9:35 PMTejas Kale
03/06/2024, 5:48 AMbenmorganio
03/10/2024, 5:46 AMaddToCartButtonPriceChangeHandler()
? lol
https://github.com/solidusio/solidus_starter_frontend/blob/6e2f055dee02424c3ea03d6[…]7f/templates/app/views/cart_line_items/_product_submit.html.erbEric Gross
03/10/2024, 11:35 PMlivemode
off on production when using solidus stripe - i see that i am currently setting livemode
in my initializer:
Spree::Config.static_model_preferences.add(
"SolidusStripe::PaymentMethod",
"solidus_stripe_env_credentials",
api_key: ENV.fetch("STRIPE_API_KEY"),
publishable_key: ENV.fetch("STRIPE_PUBLISHABLE_KEY"),
test_mode: ENV.fetch("STRIPE_API_KEY").start_with?("sk_test_"),
webhook_endpoint_signing_secret: ENV.fetch("SOLIDUS_STRIPE_WEBHOOK_SIGNING_SECRET")
)
but i'd like to be able to perform test transactions any time without having to swap the keys.
i have the test keys in my rails credentials, but i'd like to determine whether to use livemode
when it matters rather than globally. is anyone else doing that? any ideas how to make it work?Eric Gross
03/13/2024, 6:49 PMSpree::OrderMailerSubscriber
from firing off emails when an order completes? i'm handling sending the emails outside of solidus at this point so i'd like to turn off the confirmations being sent by solidus.Norbert
03/14/2024, 6:24 PMSpree::Store
in my app for which there is only one available locale, also I've set I18n.default_locale
to :pl
language, yet when I enter the site the locale I see is english. Only when I set config.i18n.fallbacks
to true I see intended locale (however there are still some parts that default to en
translation, which should not happen). do I miss something there? 🤔Eric Gross
03/16/2024, 1:34 PMm b
03/20/2024, 2:01 PMlength
(because we group by variant_id). If my shop doesn't offer split shipment - would that be safe to simply iterate on order.line_items
to display ordered line items in the admin panel or is there more to it? Just to make sure you understand - i'm talking about only view part of the admin panel, not the actual logicРуслан Жубанов
03/20/2024, 3:32 PMРуслан Жубанов
03/20/2024, 3:33 PMРуслан Жубанов
03/20/2024, 3:34 PMРуслан Жубанов
03/20/2024, 3:38 PMJared Norman
config/database.yml
needs to be updated to reflect the correct credentials for your local Postgres database.m b
03/20/2024, 4:12 PMlength
column added to LineItem
and using line item comparison hooks, i'm checking if there is already given variant with given length
in the cart - if so, i'm incrementing the quantity and if not - i'm adding a new line item.
It works great but - when i add two line items with a different length
attribute and i move to checkout and move from address to shipment step, inventory units are being assigned only to the second line item of that order. First one is being left without any inventory units assigned. It's like somewhere between these two steps there is a method that operates simply on variant_id
and i have to modify it to also take the length
into consideration but i have no idea how to locate that piece of code - any ideas and tips? 🙂 Thanks in advance !Iggy
03/21/2024, 1:33 PManjana sharma
03/21/2024, 1:49 PManjana sharma
03/21/2024, 1:53 PMZaka Ahmad
03/26/2024, 10:50 AMCarlos
04/05/2024, 2:50 PMseven charmer
04/07/2024, 1:59 AManjana sharma
04/08/2024, 3:30 PMA. Samuel
04/10/2024, 10:03 AMproduct.master..stock_items.where(...).first.set_count_on_hand(number)
As you can guess this is very bad and I am kind of shooting myself in the foot server resource wise. Just wanted to ask if someone already dealt with a similar thing and would be open to help me out.Jeremy Hinkle
04/10/2024, 1:52 PMKrupali Patel
04/12/2024, 5:12 PManjana sharma
04/15/2024, 10:39 AMvictor
04/15/2024, 7:37 PMAntonio Irizarry
04/17/2024, 6:15 PMEric Gross
04/23/2024, 3:58 PMCheckoutsController#update
because
solidus_stripe-5.0.2/app/models/solidus_stripe/payment_intent.rb:118:in `block in create_stripe_intent': undefined method `type' for nil (NoMethodError)
from /app/vendor/bundle/ruby/3.3.0/gems/stripe-8.7.0/lib/stripe/stripe_client.rb:206:in `request'
from /app/vendor/bundle/ruby/3.3.0/gems/solidus_stripe-5.0.2/app/models/solidus_stripe/gateway.rb:194:in `request'
from /app/vendor/bundle/ruby/3.3.0/gems/solidus_stripe-5.0.2/app/models/solidus_stripe/payment_intent.rb:110:in `create_stripe_intent'
which i think means that payment.source.stripe_payment_method
is not set. i'm assuming this was due to some temporary issue and that it generally works.
i also noticed that the stripe customer was created but that none of the other stripe activities seem to have happened. i figured that after this happened, the order would not be complete
and that refreshing the checkouts controller would result in another attempt to collect payment. but what i see is that the confirmation page is shown upon reload, because the order seems to return completed?
as true in this case even though there is not an authorized payment.
is this expected? how can i improve my app so that it will present a request for payment until one is successfully authorized?Jacob Penn
04/23/2024, 11:31 PM