https://solidus.io logo
Join Slack
Powered by
# support
  • r

    Rasna Shakya

    09/05/2022, 2:28 PM
    Hello all. I am facing problem on item creation. Currently I have only one variant on item but I dont want it to be master variant. Is there any way disabling master variant? This is because in future I might have multiple variants and currently on test we found that on creating variant, master variant is auto created and stock items are also created for master variant. It would be great help if any one could suggest
    j
    n
    e
    • 4
    • 6
  • j

    John Pitchko

    09/06/2022, 7:18 PM
    Howdy, is there any smart reason, why
    SolidusSubscriptions::Subscription
    does not have
    dependent: destroy
    on some of its child models, like
    Installment
    or
    InstallmentDetail
    ? I figure maybe just an oversight but perhaps someone has a smart reason for this.
    e
    n
    • 3
    • 18
  • z

    Zach Feldman

    09/07/2022, 4:43 PM
    Has anyone found a good Gem or maybe just a RegEx for checking if an address is a PO Box or APO (US military) address?
    e
    g
    b
    • 4
    • 5
  • z

    Zach Feldman

    09/10/2022, 3:15 AM
    Random question poking around trying to make tests faster for fun...is there a reason Solidus doesn't include the Spring gem by default, especially for RSpec purposes with
    spring-commands-rspec
    gem to inject Spring into the
    rspec
    binstub? Seems to cut 2 - 3 seconds off all rake tasks and tests in our app which is really nice for the dev cycle when you want to run 5 - 20 tests after touching a file. Maybe I'm just out of the loop on recent Spring pitfalls
    j
    • 2
    • 2
  • k

    Kurtis

    09/11/2022, 3:41 PM
    Would anyone know why I get
    LoadError: cannot load such file -- solidus/migrations/rename_gateways
    when trying to migrate`20180814112435_rename_bogus_gateways.spree.rb` ? I have set up a fresh install and moved over everything from existing install, and no migrations have been taken out or removed. Only difference is that it’s now on Solidus 3.2 but I have reverted t. 3.1.7 and didn’t fix it. Also tried 3.2.2
    e
    • 2
    • 2
  • k

    Kurtis

    09/11/2022, 3:49 PM
    Have temporarily commented it out and got past it but not sure what I should do with the file. Perhaps okay to delete?
  • k

    Kurtis

    09/11/2022, 4:21 PM
    FYI for anyone that had issues with the csrf_token, this fix sorted it for me. I think the require jquery_ujs doesn’t work for some reason, might be our use of
    jsbundling-rails
    but perhaps someone else would know
  • s

    Sabo

    09/12/2022, 12:13 PM
    Hello everyone 🙂
  • s

    Sabo

    09/12/2022, 12:14 PM
    I have some issue with
    solidus_stipe (4.3.0)
  • s

    Sabo

    09/12/2022, 12:16 PM
    Rails don't find any stripe partial (
    Missing partial spree/checkout/payment/_stripe
    ) when I go to the route
    /checkout/payment
  • s

    Sabo

    09/12/2022, 12:17 PM
    https://github.com/solidusio/solidus_stripe/issues/127
  • s

    Sabo

    09/12/2022, 12:19 PM
    I have however installed correctly the gem
    solidus_stripe
    and did
    rails g solidus_stripe:install
    e
    • 2
    • 13
  • j

    Jay

    09/12/2022, 4:46 PM
    Hello guys,how do I call
    Copy code
    products_path
    outside of the spree folders?
  • e

    Edwin Cruz

    09/12/2022, 4:51 PM
    I think
    spree_app.products_path
    🤔
  • e

    Edwin Cruz

    09/12/2022, 4:51 PM
    let me check
  • e

    Edwin Cruz

    09/12/2022, 4:52 PM
    just
    spree.products_path
    , confirmed
    j
    • 2
    • 1
  • k

    Kurtis

    09/13/2022, 8:02 AM
    FYI for anyone that had issues with the csrf_token, this fix sorted it for me. I think the require jquery_ujs doesn’t work for some reason, might be our use of
    jsbundling-rails
    but perhaps someone else would know
    Hi again everyone, finding this unfortunately doesn’t work on prod. Anybody familiar with our setup would be really helpful. Thanks
    e
    • 2
    • 9
  • j

    Jay

    09/13/2022, 8:55 AM
    Hello guys, how do i shorted a link like
    Copy code
    /spree/demo/show
    to something like
    Copy code
    /demo
    the routes looks like:
    Copy code
    namespace :spree do
        get 'demo/show'
      end
    e
    • 2
    • 2
  • r

    Rasna Shakya

    09/13/2022, 5:08 PM
    Hello everyone, I ned help for managing shipment. I have my own custom shipment model and i want to address shipment by removing delivery checkout step, i have stored shipment details but i am facing problem on paypal payment. its showing me error on price mismatch. would it be good idea to give custom shipment? I have added custom shipment because we have multiple stores and lineitems have different shipping information wrto different seller of different stores. It would be great if nyone could guide me up.
    👀 1
    j
    • 2
    • 3
  • s

    Slackbot

    09/14/2022, 7:12 PM
    This message was deleted.
    j
    • 2
    • 1
  • m

    Moreton Marving

    09/15/2022, 2:13 AM
    Hey there! A quick question: I'd like to use solidus just to simulate a shopping cart process, but I already have devise manually installed. Since I just want the shopping cart, is there a specific process that you would recommend me? Thanks again!
    j
    • 2
    • 2
  • d

    dtynan

    09/15/2022, 11:42 AM
    Hi there. I developed a (back-end) accounting and ERP system called Beanie (https://bean.ie/ - which is free, by the way). It currently integrates with Shopify, but I'd like to add support for Solidus. As it happens, Beanie is written in RoR as well, and has an extensive API, so I'm trying to decide on the best way forward - some sort of ETL which sits between the two, add Solidus API support to Beanie, or Beanie API support to Solidus. Any thoughts?
    g
    c
    • 3
    • 10
  • n

    Naoki Mi

    09/16/2022, 7:55 AM
    Hey everyone! I’m migrating from Spree 2.4 to Solidus 1.0 and trying to fix the tests. I have one checking that a percentage discount gets applied before taxes that fails and I can’t figure out why 😞 order:
    Copy code
    1 product for 100.00
    tax: 9.6%
    service tax: 20
    test code:
    Copy code
    order = create(:spree_order, :corporate)
          order.contents.add(create(:spree_product, price: '100.00'.to_d, tax_category: tax_category).master)
          order.create_fees!
          order.create_tax_charge!
    
          # Adhoc discount created via Admin Portal
          order.adjustments.create!(
            amount: -25.to_d,
            label: "25% off due to poor service",
            order: order,
            source: nil
          )
          order.update!
    expected result:
    Copy code
    order.total == 104.12 # item_total(100) + discount(-25) + item_tax(75 * .096) + service_fee(20) + service_fee_tax(20 * .096)
    order.adjustment_total == 4.12 # discount(-25) + item_tax(7.2) + service_fee(20) + service_fee_tax(1.92)
    order.additional_tax_total == 9.12 # item_tax(7.2) + service_fee_tax(1.92)
    order.adjustments.tax.first.amount == -0.48 # service_fee_tax(1.92) + discount_tax_refund(-25 * .096)
    actual result:
    Copy code
    order.total == 106.52 # item_total(100) + discount(-25) + item_tax(100 * .096) + service_fee(20) + service_fee_tax(20 * .096)
    order.adjustment_total == 6.52 # discount(-25) + item_tax(9.6) + service_fee(20) + service_fee_tax(1.92)
    order.additional_tax_total == 11.52 # item_tax(9.6) + service_fee_tax(1.92)
    order.adjustments.tax.first.amount == 1.92 # service_fee_tax(1.92)
    Any idea what could be generating this different behaviour?
    e
    • 2
    • 1
  • ю

    Юрий Кравченко

    09/18/2022, 11:51 PM
    Hello, I have a problem, I'm trying to deploy on heroku, sqlite database executed in the rails console db:migrate and when I try to open the main page, there is an error 500, in the logs that on the screen "Could not find table (spree_pages)" is probably a bug with migration and I can't figure out how to fix it. I will be very grateful for your help
    w
    • 2
    • 12
  • s

    Sabo

    09/19/2022, 8:29 AM
    Hello I use Solidus (3.2.2) with solidus_starter_frontend, I get an error `undefined method
    cvv_path'
    in the checkout payment step
  • s

    Sabo

    09/19/2022, 8:30 AM
    Copy code
    NoMethodError in Spree::Checkout#edit
    
    Showing /home/computer/shop/app/views/spree/checkout/payment/v3/_form_elements.html.erb where line #29 raised:
    
    undefined method `cvv_path' for #<ActionDispatch::Routing::RoutesProxy:0x00000c8ef6aa4ad8 @scope=#<Spree::CheckoutController:0x0000000006dc90>, @routes=#<ActionDispatch::Routing::RouteSet:0x00000c8e63c8a700>, @helpers=#<Module:0x00000c8f1697d428>, @script_namer=#<Proc:0x00000c8e98e82500 /usr/local/lib/ruby/gems/3.1/gems/actionpack-7.0.4/lib/action_dispatch/routing/mapper.rb:653 (lambda)>>
    
    
    
      <%= label_tag "card_cvc", t('spree.card_code') %>
      <div id="card_cvc"></div>
      <%= link_to "(#{t('spree.what_is_this')})", spree.cvv_path, target: '_blank', "data-hook" => "cvv_link", id: "cvv_link" %>
    </div>
    
    <div id="card-errors" class='errorExplanation' role="alert" style="display: none"></div>
  • s

    Sabo

    09/19/2022, 8:30 AM
    https://github.com/solidusio/solidus_stripe/issues/130
  • m

    M C

    09/19/2022, 4:01 PM
    Hello, just installed the latest solidus with Rails 6.1 on OSX as defined in the github installation instructions. I also followed the default installation instructions during the prompts. Database is postgres and running locally. Everything installs correctly (no errors), however when I try to run the app (bin/rails s) I get the following error:
    Copy code
    Invalid route name, already in use: 'spree'  (ArgumentError)
  • m

    M C

    09/19/2022, 4:03 PM
    Here is the default routes.rb file
  • m

    M C

    09/19/2022, 4:03 PM
    # frozen_string_literal: true
    Rails.application.routes.draw do
    # This line mounts Solidus's routes at the root of your application.
    # This means, any requests to URLs such as /products, will go to Spree::ProductsController.
    # If you would like to change where this engine is mounted, simply change the :at option to something different.
    #
    # We ask that you don't use the :as option here, as Solidus relies on it being the default of "spree"
    mount Spree::Core::Engine, at: '/'
    root to: 'home#index'
    devise_for(:user, {
    class_name: 'Spree::User',
    singular: :spree_user,
    controllers: {
    sessions: 'user_sessions',
    registrations: 'user_registrations',
    passwords: 'user_passwords',
    confirmations: 'user_confirmations'
    },
    skip: [:unlocks, :omniauth_callbacks],
    path_names: { sign_out: 'logout' }
    })
    resources :users, only: [:edit, :update]
    devise_scope :spree_user do
    get '/login', to: 'user_sessions#new', as: :login
    post '/login', to: 'user_sessions#create', as: :create_new_session
    match '/logout', to: 'user_sessions#destroy', as: :logout, via: Devise.sign_out_via
    get '/signup', to: 'user_registrations#new', as: :signup
    post '/signup', to: 'user_registrations#create', as: :registration
    get '/password/recover', to: 'user_passwords#new', as: :recover_password
    post '/password/recover', to: 'user_passwords#create', as: :reset_password
    get '/password/change', to: 'user_passwords#edit', as: :edit_password
    put '/password/change', to: 'user_passwords#update', as: :update_password
    get '/confirm', to: 'user_confirmations#show', as: :confirmation if Spree::Auth::Config[:confirmable]
    end
    resource :account, controller: 'users'
    resources :products, only: [:index, :show]
    resources :order_contents, only: :create
    get '/locale/set', to: 'locale#set'
    post '/locale/set', to: 'locale#set', as: :select_locale
    # non-restful checkout stuff
    get '/checkout/registration', to: 'checkout#registration', as: :checkout_registration
    put '/checkout/registration', to: 'checkout#update_registration', as: :update_checkout_registration
    patch '/checkout/update/:state', to: 'checkout#update', as: :update_checkout
    get '/checkout/:state', to: 'checkout#edit', as: :checkout_state
    get '/checkout', to: 'checkout#edit', as: :checkout
    get '/orders/:id/token/:token' => 'orders#show', as: :token_order
    resources :orders, except: [:index, :new, :create, :destroy] do
    resources :coupon_codes, only: :create
    end
    get '/cart', to: 'orders#edit', as: :cart
    patch '/cart', to: 'orders#update', as: :update_cart
    put '/cart/empty', to: 'orders#empty', as: :empty_cart
    # route globbing for pretty nested taxon and product paths
    get '/t/*id', to: 'taxons#show', as: :nested_taxons
    get '/unauthorized', to: 'home#unauthorized', as: :unauthorized
    get '/cart_link', to: 'store#cart_link', as: :cart_link
    end
    Rails.application.routes.draw do
    # This line mounts Solidus's routes at the root of your application.
    # This means, any requests to URLs such as /products, will go to Spree::ProductsController.
    # If you would like to change where this engine is mounted, simply change the :at option to something different.
    #
    # We ask that you don't use the :as option here, as Solidus relies on it being the default of "spree"
    mount Spree::Core::Engine, at: '/'
    # For details on the DSL available within this file, see <https://guides.rubyonrails.org/routing.html>
    end
1...222324...39Latest