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

    BanBan

    07/23/2021, 5:17 PM
    Please can someone help me to install ruby 3.0 on Ubuntu I can’t install it, rbenv don’t show me this version I have update all my Ubuntu
    c
    a
    • 3
    • 9
  • o

    oli

    07/24/2021, 12:52 AM
    Question: How does an admin create and apply a % discount code that will be applied to a specific existing customer, for the next 3 subscription orders?
    v
    • 2
    • 2
  • a

    Ahmad Ridwan Fauzi

    07/24/2021, 9:57 AM
    Hello, I am trying to get the total of products on the product search page. Based on the source code, the code for index page looks like this right?
    Copy code
    def index
       @searcher = build_searcher(params.merge(include_images: true))
       @products = @searcher.retrieve_products
       @taxonomies = Spree::Taxonomy.includes(root: :children)
    end
    I would like to know based on the code above, is there any way to get the count of the total products included on the search parameter?
    p
    • 2
    • 3
  • v

    Vlad Danciu

    07/24/2021, 11:21 AM
    any plans to merge this is in https://github.com/solidusio/solidus/pull/3888 ? or is there another way to use one layout for a set of views and another for the rest of the views (like one layout for the home/taxon/product pages and another layout for checkout and all that?
    • 1
    • 1
  • v

    victor

    07/24/2021, 1:31 PM
    Not a king in Rspec or testing in general. I have a gem that adds some attributes to
    Spree::Variant
    and
    Spree::Shipment
    if I am using
    order_ready_to_ship
    testing support factory, how do I go about testing this? The factory does not include the attributes. Should I stub them? 😅
    j
    • 2
    • 2
  • j

    Jenelle Yonkman

    07/27/2021, 12:33 AM
    I had no problem replacing the
    return_authorizations
    state machine as described in the documentation, using
    Copy code
    Spree.config do |config|
       ...
       config.state_machines.return_authorization = '::StoreName::StateMachines::ReturnAuthorization'
       ...
    end
    but when I try to do the same with the
    return_item_acceptance
    state machine adding
    Copy code
    config.state_machines.return_item_acceptance = '::StoreName::StateMachines::ReturnItem::AcceptanceStatus'
    to the block, it doesn't seem to work. I can set
    return_authorization
    to the
    ReturnItem::AcceptanceStatus
    machine, so it doesn't seem to be a problem with the new state machine. Any ideas?
    j
    • 2
    • 3
  • a

    Alexis

    07/27/2021, 3:25 PM
    Hi!! I’m looking for some info about i18n & how to translate solidus storefront
    j
    • 2
    • 3
  • v

    Vitaliy Adamkov

    07/27/2021, 3:32 PM
    Hello. Can anyone give a help hand to deal with solidus_social extension? (fighting with :apple provider)
    j
    • 2
    • 6
  • s

    Steven Tapican

    07/27/2021, 4:28 PM
    Hi! How do we remove the "credit owed" status? I just added a promotional discount from original price $59.9 to new price $41.93. In Stripe, it's still reflecting as $59.9. How to resolve this?
    j
    • 2
    • 4
  • v

    victor

    07/30/2021, 2:43 PM
    How do you properly decorate the statemachine of Spree::Shipment? I would like to add an after transition to invoke a Spree::Event. Speaking of Spree::Events. They work when fired from the console, but not from within my decorator
    c
    • 2
    • 2
  • a

    Antonio Bonanno

    07/30/2021, 2:53 PM
    hello, did anybody figure out how to use webp images instead of jpg ones in solidus?
    👍 1
    v
    • 2
    • 5
  • r

    Rado

    08/02/2021, 4:00 PM
    hello, is there payu ( not pay u latam) integrated in some unofficial gem ?
  • r

    Rado

    08/02/2021, 4:00 PM
    I mean payment_gateway
  • r

    Rado

    08/02/2021, 4:03 PM
    Generally Im looking any payment gateway that is available in Poland
  • r

    Rado

    08/02/2021, 4:04 PM
    dotpay
  • r

    Rado

    08/02/2021, 4:04 PM
    Przelewy24
  • r

    Rado

    08/02/2021, 4:04 PM
    or
  • r

    Rado

    08/02/2021, 4:04 PM
    Payu
  • r

    Rado

    08/03/2021, 10:26 AM
    anyone from Poland here ?
  • r

    Rado

    08/03/2021, 10:57 AM
    I found this gem that I would like to integrate
  • r

    Rado

    08/03/2021, 10:57 AM
    https://github.com/mbajur/offsite_payments_przelewy24
  • r

    Rado

    08/03/2021, 10:57 AM
    it is taken from Shopfiy
  • t

    Tom Wilson

    08/03/2021, 7:32 PM
    Question on best practices here - I'm looking to add a new state to the Shipment state machine. I see how we can hook in a new class. Is it considered best practice to just copy the initial implementation and adjust, or better to decorate? I'm not actually sure if decoration works reasonably for adjusting the states, or if it's a good idea to do so.
  • c

    Cody

    08/03/2021, 7:48 PM
    not sure about best practice, but copying the initial implementation and tweaking as needed makes it much easier to re-visit down the line and have a much better context around what’s happening
    ☝️ 1
    ☝🏻 1
    t
    • 2
    • 1
  • j

    jakemumu

    08/03/2021, 8:51 PM
    question -- is it safe to set
    Spree::Config.currency
    on a per user basis based on their IP?
  • j

    jakemumu

    08/03/2021, 8:51 PM
    or is that somehow globally effecting all users everywhere
  • j

    Jared Norman

    08/03/2021, 10:07 PM
    That's not safe.
    Spree::Config.pricing_options_class
    is responsible for extracting the currency from a given context
    j
    • 2
    • 3
  • j

    Jared Norman

    08/03/2021, 10:07 PM
    Everything relies on
    current_pricing_options
    on the frontend for showing prices
  • j

    Jared Norman

    08/03/2021, 10:07 PM
    which essentially just instantiates whatever class is configured as the pricing options class
  • j

    jakemumu

    08/03/2021, 10:14 PM
    awesome
12345...39Latest