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

    Given Reed

    09/27/2021, 7:55 PM
    I'm trying to use https://github.com/solidusio-contrib/solidus_product_assembly and it's working for most of my scenarios, but I've come across one that I can't seem to put into practice. I can't seem to configure the bundle so that the customer is able to select an option (pick their own variant) for the bundle. I can assign specific variants, but ideally I'd like to assign the master so that the customer can select whichever of the variants they'd like to be part of the bundle. Is this possible?
    m
    • 2
    • 6
  • g

    Given Reed

    09/28/2021, 6:02 PM
    I'm sure it's a silly question, but what are the steps needed to ship an order from the admin? I'm assuming at the very least the payment needs to be captured, but in some of my testing the button shows up when I would expect (after approving the order) and in some it doesn't show up and I need to "split" it first. Even if it's a single item and the only item in the order, there are some times I have to split it.
  • c

    chalien

    09/30/2021, 1:45 AM
    Hey guys , I need your help adding paperclip + solidus I add this for
    initializer/spree.rb
    Copy code
    config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
      config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
    then i create a paperclip file with this config
    Copy code
    # config/initializers/paperclip.rb
    if Rails.application.credentials.dig(:aws, :access_key_id)
      attachment_config = {
        s3_credentials: {
          access_key_id: Rails.application.credentials.dig(:aws, :access_key_id),
          secret_access_key: Rails.application.credentials.dig(:aws, :secret_access_key),
          bucket: Rails.application.credentials.dig(:aws, :bucket_name),
          s3_region: 'us-east-1',
        },
    
        storage:        :s3,
        s3_headers:     { "Cache-Control" => "max-age=31557600" },
        s3_protocol:    "https",
        # url:            ':s3_alias_url',
        # s3_host_alias:  '<http://xxxx.cloudfront.net|xxxx.cloudfront.net>',
          # bucket:         Rails.application.credentials.dig(:aws, :bucket_name),
    
        styles: {
          mini:     "48x48>",
          small:    "100x100>",
          product:  "240x240>",
          large:    "600x600>"
        },
    
        path:          "/products/:id/:style/:basename.:extension",
        default_url:   "/products/:id/:style/:basename.:extension",
        default_style: "product",
      }
      Paperclip::Attachment.default_options.merge!(attachment_config)
    end
    using this config , I'm receiving an error for authorization
    Copy code
    Aws::S3::Errors::AccessDenied (Access Denied):
    The issue is that I tried with storage.yml with the same credentials and it works but Paperclip is the only one that let me include the cloudfront url (as far as I know active storage doesn't have the cdn option) Guys please I need your help to solver this, thanks !! you are the best!! šŸ™ šŸ‡ØšŸ‡“
    k
    • 2
    • 3
  • i

    Ifechuwku

    10/01/2021, 8:02 AM
    Hello guys! any quick reference on how I can customize pagination in frontend - ā€œapp/views/spree/shared/_products
    t
    • 2
    • 1
  • m

    marko

    10/01/2021, 12:16 PM
    Hello guys, how do I add to permitted address attributes? I see that they are stored in Spree::PermittedAttributes. What do I need to add to spree initializer to make it work? Thanks!
    k
    • 2
    • 2
  • s

    Steven Tapican

    10/01/2021, 9:05 PM
    Hi! What does "Resumed" mean? And how can I turn it back to "Complete"?
    j
    a
    • 3
    • 5
  • a

    Ahmad Ridwan Fauzi

    10/02/2021, 4:13 AM
    Hello, has anyone here encounter the incompatible solidus core when using solidus importer like this message?
    j
    • 2
    • 1
  • r

    Rajeswari

    10/05/2021, 11:13 AM
    Hello, We are using custom shipping calculator where we get the shipping amount from external API and update shipping rates for the line items. We are using Avatax solidus extension to calculate tax. We do split the shipments based on the no.of items in an order. If the shipping amount is greater than 0, for each line item we are getting tax for the item as well as shipping tax additionally. Is this the expected approach to get the shipping tax for each shipment?
    c
    • 2
    • 3
  • t

    Tom Wilson

    10/05/2021, 3:32 PM
    Howdy, folks. I have a question about refunds. I was playing around with this to try and understand some of the behaviors here. I created an order that cost $60, made a payment, and completed it. I then issued a refund for $20, and everything seemed to work. But the order is now in a slightly odd state. The
    payment_total
    on the order is now $40, and that results in the order being in the payment state
    balance_due
    . It seems a little odd to me that that would be the case - the balance isn't due, we've refunded it.
    a
    s
    • 3
    • 20
  • t

    Tom Wilson

    10/05/2021, 3:33 PM
    Am I misunderstanding something? Is there some update that has to come through from our payment processor to indicate the refund is complete before the states update, or is this just... the expected terminal state of this order?
  • s

    Sharon Morato

    10/06/2021, 12:44 AM
    Hello Solidus šŸ™‚ v2.10.2 The customer is able to go through the payment process but solidus isn’t registering it. Orders NOT being created in admin but ARE being created in stripe The order is not making it to completed state in solidus admin but is completed in Stripe. For example, customer made an order, order not created in admin. Order created in stripe (payment completed) with ID number. Order ID shows uncompleted status such as ā€˜Delivery’ in solidus admin. Help?
    m
    s
    • 3
    • 5
  • t

    Tyler Kocheff

    10/06/2021, 8:07 PM
    Attempting to create a filter for the taxon pages to filter products based on the product properties, and what we currently have can filter against individual properties (select as many values under the same property name as desired and it will filter), but when trying to filter against more than one property name, we come back with zero results, which I presume is due to the way these methods are defined in
    product_filters.rb
    . I found a similar issue here but it was for Spree and it's pretty old. So far I haven't been able to adapt this code to work with current Solidus. We do have a custom searcher based off of
    Spree::Core::Search::Base
    already in place, so I have been trying to override
    add_search_scopes
    method there. Any recommendations on where to focus my efforts or if there's a better way to go about this?
    s
    • 2
    • 3
  • t

    Tom Wilson

    10/07/2021, 8:57 PM
    Hey, all - me again, with a conceptual question about the checkout state machine. I'm trying to understand the
    confirm
    state. Specifically, the default implementation of the core order state machine seems to have very loose transitions between
    payment
    and
    confirm
    . All it does on that transition is to create any store credit payments it believes the order needs. It sort of seems like it ... should enforce that there's a payment, at least, and probably even enforce that the payments would cover the order.
  • t

    Tom Wilson

    10/07/2021, 8:57 PM
    Am I misunderstanding the concept of the
    confirm
    state?
  • j

    Jared Norman

    10/07/2021, 9:02 PM
    I don't think you're misunderstanding, no. The checkout states are all kinda loose, in that sense, though there's been more strictness added recently.
  • t

    Tom Wilson

    10/07/2021, 9:10 PM
    Hmm, gotcha. Do most stores tend to implement some of the additional checking for this in the UI layers, then? Or just by the design of the checkout flows themselves?
  • j

    Jared Norman

    10/07/2021, 9:16 PM
    I've never run into an issue with that aspect of how the checkout works, though admittedly many of our stores have very custom checkout experiences.
  • z

    Zayter Munive

    10/12/2021, 5:57 PM
    Hello Guys, Question I would to change the base route for the api , for example change /api/orders/current to /api/v1/orders/current (Add v1) the reason for doing this is because we have other custom endpoints and we want to keep the same url for consistency
    j
    • 2
    • 9
  • d

    DanH

    10/13/2021, 2:43 AM
    Hello everyone, my name is Dan - just wanted to say I'm enjoying Solidus so far - it was very smooth to get it up and running on localhost. To everyone who has put in work to make this all happen - great job, and thank you.
    j
    • 2
    • 1
  • d

    DanH

    10/13/2021, 2:45 AM
    I just have one question after doing plenty of research. I'm getting the following error when deploying to Heroku using "git push heroku main": Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: NoMethodError: undefined method `has_one_attached' for Spree:ImageClass remote: Did you mean? has_attached_file Clearly there is a method in Spree:Image:Class that isn't working - I just don't know where to find that file. Anyone have any ideas about this issue in general?
    j
    a
    • 3
    • 5
  • i

    Ifechuwku

    10/14/2021, 5:59 AM
    Please is there a post on how to add a third party payment method for solidus?
    j
    a
    • 3
    • 4
  • e

    Enrique Meza

    10/14/2021, 2:52 PM
    Hi team, I am facing an issue with solidus_importer
    Copy code
    2021-10-14T14:24:27.949Z pid=7 tid=3qcv WARN: Errno::ENOENT: No such file or directory @ rb_sysopen - /app/public/system/solidus_importer/imports/files/000/000/019/original/cus.csv
    2021-10-14T14:24:27.949Z pid=7 tid=3qcv WARN:
    Whenever I try to process a big file in the cloud(CloudFlare) I am getting this message, seems to be the same happens in Heroku. Does somebody know a potential fix? https://stackoverflow.com/questions/31919775/problems-with-file-path-with-csv-import-via-sidekiq-on-heroku
    j
    • 2
    • 4
  • t

    Tyler Kocheff

    10/14/2021, 4:35 PM
    I have a custom sorter for product properties which works, but is breaking pagination on the products page. I have a taxon_decorator.rb file which modifies @products if params[:sorting] is present, then sorts the products by a specific property, and paginates the resulting array. All displays well on page 1 (even if changing the per_page parameter. On any subsequent pages though, no products are returned. What doesn't make sense is that if I manually specify in the decorator the
    .page
    number on like 23, I can return page 2 (on page one in the app's view). The params appear to be returning correctly in the controller and in the view. Is something weird happening with the kaminari paginator that I'm missing?
    taxon_decorator.rb
    e
    • 2
    • 9
  • l

    Landon Lapensee

    10/15/2021, 6:16 PM
    Hi there, I am new to this channel and have enjoyed reading through its history. I am starting a development project as a team of two and have found Solidus to be a good starting point for what we want to achieve. We are both fairly new to coding and the main experience we have is from a coding bootcamp. We have spent a fair amount of time researching and trying to learn how to configure Solidus, particularly the backend, but have found things aren’t very intuitive. A lot of times we don’t know where to begin with something we want to achieve and there is very little information or examples online to assist. We are looking for a mentor or someone who can help us along the way to help understand this rails engine better and assist with roadblocks when we are stuck. Is anyone interested in helping us from time to time? For ex. At the moment I am working on simplifying the admin panel and trying to remove the promotions tab and functionality as it wont be used in our backend. I’ve seen a few Deface examples on forums but they’re from 2014 and appear to be outdated.
    j
    j
    • 3
    • 6
  • c

    Cody

    10/15/2021, 6:52 PM
    I find that overriding the views is more intuitive for me whenever I have to customize something. https://guides.solidus.io/developers/customizations/customizing-admin.html
    For example, if you want to customize backend/app/views/spree/admin/orders/index.html.erb , simply create a new file at
    app/views/spree/admin/orders/index.html.erb
    and copy the original contents into it. Make any desired changes to the newly copied file. Solidus will pick up the modified version of the file in your repository, and display the changes in the backend.
  • e

    Efi

    10/17/2021, 5:08 PM
    hello, is the multitenancy the only way to manage different shops with different front ends?
  • i

    Ifechuwku

    10/18/2021, 9:24 AM
    Hi anyone on - how I can override checkout registration, user registration and login frontend
    k
    • 2
    • 4
  • k

    Kevin I

    10/18/2021, 12:48 PM
    Once you have created an order you can use the guest token to modify it before a user is created. But what token do we use for creating the order in the first place? It seems a simple request against OrdersController#create requires an API token. Seems to be a chicken / egg situation. What am I missing?
  • g

    Given Reed

    10/18/2021, 7:21 PM
    I'm migrating legacy data to a new solidus install, and I'm trying to bring over order history. Luckily I'm only working with completed orders, but I'm running into some hurdles. I found the bit that loads the admin with sample data and am working with the snippets that generate orders. The problem that I'm running into is that it looks like it's actually walking through the order process (pulling shipping rates, taxes, etc). Is there another place I can just throw all the info to have it build out an old order with the data I'm bringing over?
    j
    d
    a
    • 4
    • 17
  • t

    Tom Wilson

    10/18/2021, 10:02 PM
    Is there a roadmap for https://github.com/solidusio-contrib/solidus_product_assembly to support Solidus 3? It seems like the master branch might support it, but there hasn't been a release.
    k
    • 2
    • 3
1...678...39Latest