https://solidus.io logo
Join SlackCommunities
Powered by
# support
  • b

    benmorganio

    06/14/2022, 8:37 PM
    Anyone already handled this?
  • j

    Jared Norman

    06/14/2022, 9:41 PM
    looks like some kind of libvips issue, but I've never seen it before 🤷🏻‍♂️
  • r

    Rasmus Styrk

    06/17/2022, 7:06 AM
    Is this a bug?? Only way before_* was being called was to rename them with _test. How can that be? Any suggestions? 🙂
    w
    • 2
    • 72
  • r

    Rasmus Styrk

    06/17/2022, 7:07 AM
    Copy code
    diff --git a/app/controllers/spree/checkout_controller.rb b/app/controllers/spree/checkout_controller.rb
    index dcfee9c..05654d8 100644
    --- a/app/controllers/spree/checkout_controller.rb
    +++ b/app/controllers/spree/checkout_controller.rb
    @@ -189,11 +189,11 @@ module Spree
         end
     
         def setup_for_current_state
    -      method_name = :"before_#{@order.state}"
    +      method_name = :"before_#{@order.state}_test"
           send(method_name) if respond_to?(method_name, true)
         end
     
    -    def before_address
    +    def before_address_test
           @order.assign_default_user_addresses
           # If the user has a default address, the previous method call takes care
           # of setting that; but if he doesn't, we need to build an empty one here
    @@ -201,14 +201,14 @@ module Spree
           @order.ship_address ||= Spree::Address.build_default if @order.checkout_steps.include?('delivery')
         end
     
    -    def before_delivery
    +    def before_delivery_test
           return if params[:order].present?
     
           packages = @order.shipments.map(&:to_package)
           @differentiator = Spree::Stock::Differentiator.new(@order, packages)
         end
     
    -    def before_payment
    +    def before_payment_test
           if @order.checkout_steps.include? "delivery"
             packages = @order.shipments.map(&:to_package)
             @differentiator = Spree::Stock::Differentiator.new(@order, packages)
  • j

    juan

    06/17/2022, 3:46 PM
    hello im looking for buildpack deploy into heroku fast and easy button , no one of them fin out into github or other deploy correctly into heroku
    j
    • 2
    • 8
  • t

    Tyler Kocheff

    06/17/2022, 6:58 PM
    Having some trouble with the solidus_paypal_commerce_platform gem. When a user selects it as their payment method during the payment step of checkout, they get the popup for Paypal and enter their information, but after hitting continue, they are presented with the expected_total_mismatch error. If I check the order.total at that step of the gem, it is the total of the line items, but the shipping rate adjustment is no longer attached even though it shows on that checkout page. I checked the shipping method at the point where the gem compares it to the paypal total, and it looks like it is not using the shipping method defined by the user during checkout, but defaults to our second shipping method which is a 0 percentage amount and allows the user to enter their own shipping account number for billing to that. My best guess is that this happens when the gem updates the order address with the paypal address. If I disable this second shipping method, everything calculates correctly and checkout completes. Any way to get this gem to honor the selected shipping method when updating the address or am I missing something else that might be happening?
    k
    • 2
    • 12
  • k

    Kevin I

    06/17/2022, 9:28 PM
    Is there a pre-written solidus ‘checkout.com’ payment plugin or would I need to basically copy what’s being done in stripe (since it uses ActiveMerchant) and port the functionality over for checkout.com myself?
    j
    • 2
    • 2
  • a

    Alexander V

    06/21/2022, 8:43 AM
    Hi! How to translate custom Taxonomies (Categories, Brand) and nested products using solidus_i18n gem? How keys in locales should look like?
    w
    • 2
    • 5
  • r

    Rasmus Styrk

    06/21/2022, 7:01 PM
    Hi All.. Does anyone know how to hide the Settings tab in backend? I have created a custom policy for my manager that looks like this:
    Copy code
    class ManagerPermissions < ::Spree::PermissionSets::Base
      def activate!
        can :manage, :all
        cannot :manage, :reports
        cannot :manage, :general_settings
        cannot [:read, :admin], Spree::TaxCategory
        cannot [:read, :admin], Spree::TaxRate
        cannot [:read, :admin], Spree::Zone
        cannot [:read, :admin], Spree::Country
        cannot [:read, :admin], Spree::State
        cannot [:read, :admin], Spree::PaymentMethod
        cannot [:read, :admin], Spree::Taxonomy
        cannot [:read, :admin], Spree::ShippingMethod
        cannot [:read, :admin], Spree::ShippingCategory
        cannot [:read, :admin], Spree::StockLocation
        cannot [:read, :admin], Spree::StockMovement
        cannot [:read, :admin], Spree::RefundReason
        cannot [:read, :admin], Spree::ReimbursementType
        cannot [:read, :admin], Spree::ReturnReason
        cannot [:read, :admin], Spree::Refund
        cannot [:read, :admin], Spree::Store
        cannot [:read, :admin], Spree::StockItem
        cannot [:read, :admin], Spree::StockLocation
      end
    end
    But for some reason Settings and Refunds and returns is still visible
    c
    • 2
    • 8
  • r

    Rasmus Styrk

    06/21/2022, 7:01 PM
  • a

    Alexander V

    06/21/2022, 9:03 PM
    Any news regarding Rails 7 support, btw? As I can see some work has been done: https://github.com/solidusio/solidus/pull/4220
    j
    • 2
    • 2
  • a

    Alexander V

    06/22/2022, 12:24 PM
    Is it normal that frontend works so slowly? I've installed Nebulab's solidus_starter_frontend, same story. To enter product categories or individual products takes 1.5, 2, 2.5 seconds, some products with single medium picture like mugs and cups takes less then 1 second, but still, far from pleasant feeling. Are there any specific aspects to pay attention to regarding performance?
    j
    • 2
    • 2
  • a

    Alexander V

    06/22/2022, 12:28 PM
    ah, as soon I sent this message I saw a section about performance in the docs..
  • a

    Alexander V

    06/22/2022, 4:59 PM
    Copy code
    config.assets.debug = false
    setting this to false makes no difference in page load speed.
  • g

    Georg Keferböck

    06/23/2022, 4:14 PM
    Hi all, on the sample store, you can filter by product_properties (I don't mean taxonomies nor taxons). But when I fill my shop with products and associated product properties, they are nowhere to be seen in the filter on the left-hand side. So how to make product properties visible in the filter? I couldn't find anything in the documentation, and the samle store didn't give away how it works.
    j
    g
    • 3
    • 14
  • j

    Jonathan Zisser

    06/23/2022, 8:47 PM
    Hi everyone, can I ask a question about
    solidus_paypal_braintree
    here? It concerns the “What’s This?” link under the Card Code field. It seems to link to a route in my app that doesn’t exist. It routes to /content/cvv.
    a
    • 2
    • 5
  • j

    jakemumu

    06/27/2022, 4:29 PM
    Is anyone using Solidus Klaviyo? Looks like it will no longer function on heroku 22 stacks
    j
    a
    • 3
    • 6
  • p

    Prabu

    06/28/2022, 11:39 AM
    Hi all, I am looking for authorized.net payment services extensions for Solidus. I did not find any supported extensions on this site https://guides.solidus.io/developers/payments/payment-service-providers.html. I would be helpful if you share some related links.
  • r

    Rajeswari

    06/28/2022, 1:33 PM
    Hi everyone, I am trying to use solidus_adyen gem in my app. But couldn't install with Solidus 3.0.1 and Rails version 6.0.4. Anyone used any other wrapper gem to use with Adyen payment gateway? Kindly share your thoughts. Below is the error i got while bundle install the gem.
    k
    • 2
    • 2
  • g

    gerritwessels

    06/30/2022, 6:31 PM
    Hi everyone, i was hoping to get some advice from anyone who is using solidus_avatax_certified. I see now that there is an email from Avatax informing us of Colorado retail delivery fee effective July 1, 2022.
  • g

    gerritwessels

    06/30/2022, 6:32 PM
    Has anyone made any tweaks to their code to account for this? We are admittedly on number 99 here, but wanted to see what the best path forward was to account for this new delivery fee.
    j
    a
    +2
    • 5
    • 10
  • g

    Given Reed

    07/01/2022, 2:24 PM
    Is there a setting in the admin to set whether tax is applied before or after order discounts? We've got a site where taxes are applied BEFORE a discount and that results in collecting too much tax from the customer. The tax it's collecting is on the original $144.99. We'd like to tax the discounted amount which would result in taxes of $7.61
    m
    • 2
    • 9
  • d

    Dirk Coetzer

    07/04/2022, 9:32 AM
    Can anyone give me some advice on the following? I have a multiple level price sack which works out the shipment amount based on the order amount. That works fine, but I also have the option of collecting the order and in that case no shipments are relevant. What is the best way to handle that?
    i
    • 2
    • 2
  • o

    Oleksandr Pozniak

    07/04/2022, 2:31 PM
    Hi all! Has anyone worked with solidus_api + solidus_stripe Please share the list of all standard and required endpoints (with examples) so I can create a customer on the stripe and link a card to it. I’m sitting here thinking that I should write it myself from scratch, or use what has already been done) At the moment, I do not understand the sequence of endpoints from solidus_api, step by step. p.s I investigated to controllers/spree/api/payments_controller.rb action create but the route to it required checkout_id, how should I create it for this one? Or did I miss something? Thanks!
    • 1
    • 1
  • c

    Cuneyt Ergun

    07/05/2022, 11:18 AM
    Hi all! Could you please let me know if Solidus is compatible with Rails 7.0.3?
    w
    e
    • 3
    • 13
  • c

    Cuneyt Ergun

    07/05/2022, 11:20 AM
    I am trying to install the gem on the top of my current app and it is giving me below error?
  • b

    bubbaspaarx

    07/05/2022, 11:27 AM
    Hi everyone. I am getting an issue with our cloudinary integration where a few images that get uploaded appear to disappear. We upload the image and it will often appear in the main list of all products fine, but the same image for the actual listing is not able to be retrieved. The image has a cloudinary id but the network request says 'Resource not found' and the image id doesn't exist in cloudinary. I've even checked the deleted assets. Any ideas how or why this might be happening?
    j
    • 2
    • 4
  • g

    Given Reed

    07/06/2022, 2:45 PM
    Howdy all, I'm struggling with what I think is a state machine issue. I'm working with solidus_signifyd (https://github.com/solidusio-contrib/solidus_signifyd) and braintree (https://github.com/solidusio/solidus_paypal_braintree) and am trying to make them work together. I'm saving the response data from braintree into a table and then my plan is to add a condition to the
    order_serializer
    to add in the new data when it's a braintree order. The problem I'm running into is that I can't seem to get my test code to fire. I've got a decorator for the
    order_serializer
    already making some changes to some things, so I know that the decorator works. To try to do some debugging I've updated
    order_concerns.rb
    from
    Copy code
    included do
        Spree::Order.state_machine.after_transition to: :complete, unless: :approved? do |order, transition|
          if order.send_to_signifyd?
            SolidusSignifyd.create_case(order_number: order.number)
          else
            SolidusSignifyd.approve(order: order)
          end
        end
    
        has_one :signifyd_order_score, class_name: "SolidusSignifyd::OrderScore"
    
        prepend(InstanceMethods)
      end
    to
    Copy code
    included do
        <http://Rails.logger.info|Rails.logger.info> "included"
        Spree::Order.state_machine.after_transition to: :complete do |order, transition|
          <http://Rails.logger.info|Rails.logger.info> "Send to Signifyd? (#{order.number})"
          if order.approved?
            <http://Rails.logger.info|Rails.logger.info> "#{order.number} already approved"
          elsif order.send_to_signifyd?
            SolidusSignifyd.create_case(order_number: order.number)
          else
            SolidusSignifyd.approve(order: order)
          end
        end
    
        has_one :signifyd_order_score, class_name: "SolidusSignifyd::OrderScore"
    
        prepend(InstanceMethods)
      end
    I see "included" in the logs, but nothing else. The orders get into the "complete" state, I see "Order R686426609 transitioned from confirm to complete via complete" in the logs and all that, but it doesn't seem to trigger any of the "after_transition" code in that file. I'm sure there's something I'm missing about concerns or the state_machine, but I'm at a loss as to what it could be. Any pointers would be greatly appreciated!
    c
    • 2
    • 4
  • z

    Zachary Jones

    07/06/2022, 6:52 PM
    speaking of the state machine — is there any convention for store the state graph. That is, being able to code things like
    shipments.select(&:can_transition_to_shipped?).each(&:shipped!)
  • z

    Zachary Jones

    07/06/2022, 6:53 PM
    i’d need to be know which are eligible to make that transition — other than just trying to, and catching fails
    c
    • 2
    • 7
1...171819...39Latest