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

    Fede Barriola

    08/04/2022, 2:14 PM
    Hi, im runing the "run demo on heroku" so i can test solidus and see if it fits the needs of my project but i keep geting this error, dose someone know what it is and dose it also happends if i create a local app and then deploy it on heroku?
    n
    • 2
    • 2
  • k

    Kurtis

    08/04/2022, 5:40 PM
    Hi all, does anyone know why byebug wouldn’t work for any scope I’m doing inside product_filters.rb? I’ve never been able to get this stuff to work since day one five years ago so had to write a bunch of awful hacky shit, but I see loads of people having success in here, so surely something wrong with my setup
  • k

    Kurtis

    08/04/2022, 5:40 PM
    But I am literally using the exact code that’s in product_filters.rb example, and it doesn’t work at all. They appear correctly, but no search actually changes the results. I am using it on a taxon page, not sure if that’s why
  • k

    Kurtis

    08/04/2022, 5:42 PM
    I can get byebug to run inside a filter, e.g.
    self.brand_filter
    but not inside the brand_any scope
  • j

    Jared Norman

    08/04/2022, 6:08 PM
    When you say that you can't get it to run, do you mean you're not hitting the debugger? I'm going to assume you're just not hitting that codepath and probably need to take a step outwards to try to figure out where things are going off track.
  • k

    Kurtis

    08/04/2022, 6:09 PM
    Yeah, it doesn’t hit the debugger. The debugger will flag in the same file elsewhere, but can’t get into the scopes
  • j

    Jared Norman

    08/04/2022, 6:12 PM
    Gotcha. Hmm. I don't know that part of the code well, but if you're not hitting the debugger, then that codepath isn't getting run. I'd take start walking up the stack and see why that is... but I know that's just broad debugging advice, nothing specific to that part of the code. 😅
  • k

    Kurtis

    08/04/2022, 6:13 PM
    Yeah, it’s a strange one
  • k

    Kurtis

    08/04/2022, 6:13 PM
    The joys of what we do 😂
  • k

    Kurtis

    08/04/2022, 6:13 PM
    Thanks for your time Jared
    sg thumbs up 1
  • k

    Kurtis

    08/04/2022, 6:13 PM
    Will keep trying!
  • k

    Kurtis

    08/05/2022, 9:08 AM
    Not sure if anyone knows anything small I might be missing. I’ve tried changing all properties to be downcase in case Ransack only works with downcase, have ripped all my code out and gone to using default based on demo and that doesn’t work either
  • k

    Kurtis

    08/05/2022, 9:10 AM
    Is there any initial set up or config I could have missed?
  • k

    Kurtis

    08/05/2022, 9:14 AM
    <http://localhost:3000/t/tyres?per_page=&search%5Bprice_range%5D%5B%5D=%C2%A350.00+%E2%80%93+%C2%A3100.00&search%5Bbrand%5D%5B%5D=Yokohama>
    This is an example of using Price Range + Brand
  • d

    Denys Medynskyi

    08/05/2022, 10:36 AM
    Hey 👋 We want to have own currency and allow users to buy items for our own currency. Also, product can be bought for money. Question 🙋‍♂️ How can we display price in $ on one page and in our local currency on another page?
    w
    • 2
    • 4
  • k

    Kurtis

    08/05/2022, 12:08 PM
    So I’ve set up a fresh app, ran the install, and it works fine from new. I’ve reintegrated everything, and now I’m using my own product_filters.rb file, even though it is a direct copy and paste, it no longer works
    d
    • 2
    • 5
  • k

    Kurtis

    08/05/2022, 12:09 PM
    Is there something I’m missing? This is driving me insane 😂
  • k

    Kurtis

    08/05/2022, 4:32 PM
    Hi all, I have got to a point where the Range + Brand filter work, and one custom one Tyre Width works alone, but they do not work together e.g. Range + Tyre Width
  • k

    Kurtis

    08/05/2022, 4:33 PM
    I always get a result of “No results found”
    d
    • 2
    • 2
  • k

    Kurtis

    08/05/2022, 4:33 PM
    They use identical code. Anybody familiar with this?
  • k

    Kurtis

    08/05/2022, 5:01 PM
    Do we know if there’s a maximum ransackable? I’m wondering if there’s a two filter limit?
  • k

    Kurtis

    08/05/2022, 5:13 PM
    In fact, it isn’t that… but still having issues partnering them
  • k

    Kurtis

    08/05/2022, 5:29 PM
    nor say brand + tyre profile
  • v

    Vlad Danciu

    08/06/2022, 8:22 AM
    Is v3 (3.1?) production ready, are you guys on it or still on 2.11?
    a
    • 2
    • 3
  • k

    Kurtis

    08/06/2022, 9:54 AM
    https://gist.github.com/maxivak/cc73b88699c9c6b45a95 I used this code prior but it unfortunately doesn’t work anymore. Wondering if anybody has a similar solution. Thanks as always
  • a

    Alec van Niekerk

    08/06/2022, 10:41 AM
    Hi! I've been looking around the features and extensions but I haven't seen anything regarding customer account registration. Is Solidus designed to work without an account registration process for customers or is it up to the developer to implement their own?
    w
    • 2
    • 2
  • k

    Kurtis

    08/06/2022, 5:24 PM
    Would anyone know why I am getting the error
    undefined method :applies_from
    for solidus_related_products? I am using the solidusio-contrib version. I can see that field isn’t in the schema so perhaps it’s been removed and it’s getting an issue from the relation_type validator? Any help appreciated. Thanks
    w
    • 2
    • 2
  • a

    Alec van Niekerk

    08/08/2022, 11:52 AM
    Hi I'm in the process of adding a custom payment method, which requires the user to be redirected to the payment gateway for payment capture. A quick description of the happy-path workflow - which I believe is fairly common - is: 1. Developer posts details of transaction to payment gateway along with
    notification_url
    and
    return_url
    2. If the transaction is successful the payment gateway POSTs to
    notification_url
    3. If the payment gateway receives a
    200
    from above POST it redirects the user to
    return_url
    Solidus provides an easy way to write a custom payment method by allowing - among other things - the developer to add a partial for the custom payment method. This works really well for on site payments or payments that will be captured manually. In my case I've setup it up like this: • In the partial I'm overriding the
    checkout_form_payment
    form's
    action
    attribute to point to the payment gateway's site instead of the
    checkout_controller
    • I've added a custom controller which serves as the endpoint for the payment gateway's
    notification_url
    where I capture payment source details and progress the state of the
    order
    like it would have happened in the original
    checkout_controller
    • I return the user to the
    /checkout/confirm
    (since this is the next state) page via the
    return_url
    upon successful transaction My issues with that workflow are: • capturing the payment happens before the user has "confirmed" the order, so a scenario can play out where the user successfully completes the transaction on the payment gateway's site, closes their browser, and then the order isn't really "completed" • I can take another path and simply update the order all the way to "completed" when the payment gateway sends notification of a successful transaction, but then the user doesn't get to "confirm" the order after reviewing it (we skip the
    /checkout/confirm
    page) Ideally I would like to only redirect to the payment gateway when the user confirms the order. As far as I can tell there is no "neat and tidy" way of overriding the confirmation portion of the checkout workflow like the payment method part. I know I could just override the entire
    _confirm
    partial, but as I would like to add the payment gateway as a gem for others to use, I'm guessing this isn't necessarily the best route to take. Could anyone shed any advice on a better way to handle this kind of off-site custom payment method? Thanks!
    c
    • 2
    • 5
  • j

    jakemumu

    08/08/2022, 4:01 PM
    I've recently switched to Zeitwerk & am getting:
    NameError: uninitialized constant SolidusRelatedProducts::Product::RSpec
    but only during a heroku deploy -- anyone seen such a thing?
    j
    a
    • 3
    • 18
  • k

    Kurtis

    08/09/2022, 6:14 PM
    Does anyone know if
    app/views/spree/api/payments/source_views/_paypal_braintree.json.jbuilder
    is still used?
    e
    • 2
    • 3
1...192021...39Latest