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

    Maaz Bashir

    08/15/2022, 3:29 PM
    Hi Everyone, I am integrating solidus_stripe gem just implementing as shown in the documentation but checkout button is not displaying where i can proceed card payment button/form. can any one help me out kindly. Also getting solidus_stripe.js error Uncaught ReferenceError: SolidusStripe is not defined
    w
    • 2
    • 3
  • a

    Alistair Norman

    08/15/2022, 6:22 PM
    I did a little bit of work to try to get solidus_product_assembly to work with solidus_globalize a while ago but it just got marked as stale. Does anyone have a moment to look it over? https://github.com/solidusio-contrib/solidus_product_assembly/pull/109/commits
    w
    • 2
    • 2
  • o

    Oleksandr Pozniak

    08/16/2022, 8:21 AM
    Hello! Does it possible to add additional sub-tabs for User tabs, and display default users in one section and admins in the second?
    w
    • 2
    • 5
  • j

    Jay

    08/16/2022, 9:24 AM
    Hello, is there a repository for the demo.solidus.io webiste? After along time away from developing i'm limping my way around things and would like to borrow a few implementations from there. Regards.
    a
    • 2
    • 3
  • k

    Kurtis

    08/16/2022, 2:00 PM
    Hey all, really stuck with this PayPal stuff. Still getting
    Payee(s) passed in transaction does not match expected merchant id. Please ensure you are passing merchant-id=UAQHKSDFIT or <mailto:merchant-id-kasdgjgsdgsd@personal.example.com|merchant-id-kasdgjgsdgsd@personal.example.com> to the sdk url.
    unfortunately. I am: • Using
    gem "solidus_paypal_braintree", github: "solidusio/solidus_paypal_braintree", branch: :master
    • requiring
    solidus_paypal_braintree/frontend
    in JS • requiring
    spree/backend/solidus_paypal_braintree
    in JS • requiring
    spree/backend/solidus_paypal_braintree
    in CSS This is my spree.rb:
    Copy code
    config.static_model_preferences.add(
        SolidusPaypalBraintree::Gateway,
        "braintree_env_credentials", {
          environment: Rails.env.production? ? "production" : "sandbox",
          merchant_id: ENV["BRAINTREE_MERCHANT_ID"],
          public_key: ENV["BRAINTREE_PUBLIC_KEY"],
          private_key: ENV["BRAINTREE_PRIVATE_KEY"],
          paypal_flow: "checkout",
          use_data_collector: true # Fingerprint the user's browser when using PayPal
        }
      )
    Have tried
    use_data_collector
    as both true and false (not sure what is best?) I am using the API keys from Braintree Sandbox for above merchant ID, public key and private key. I have also set the PayPal sandbox credentials inside Processing Options on Braintree gateway, which is linked to the PayPal developer sandbox account. My Rails app is v6.1.6.1, Solidus 3.1 and Solidus paypal braintree is 1.1.1. We’re using cssbundling-rails + jsbundling-rails for JS. I feel like it’s something small but I cannot figure it out 🤦‍♂️ thanks!!!
    r
    w
    • 3
    • 14
  • a

    Alec van Niekerk

    08/16/2022, 2:14 PM
    Hi I'm using
    spree-frontend
    in my application which I override to customise the frontend. I would like my header nav items to be whatever is populated in the Taxonomy table. I can see
    @taxonomies
    is declared for the
    home_controller
    but then as soon as I navigate to another link
    @taxonomies
    isn't declared anymore and my header breaks. Is there a simple way to override all the frontend controllers to have access to the taxonomies? Do I just monkeypatch/decorate
    Spree::StoreController
    ?
    w
    • 2
    • 3
  • w

    Wladjmir

    08/17/2022, 2:46 PM
    Hi, how could i implement a PAD (Payment-After-Delivery) environment, deleting the callbacks on order state machine
    Copy code
    before_transition to: :complete, do: :process_payments_before_complete
    it’s correct? Thanks
    w
    • 2
    • 2
  • e

    Edwin Cruz

    08/17/2022, 2:51 PM
    You can use payment method Check, you can even specify instructions there (I'm assuming they will be paying to whoever delivers the order)
  • k

    Kurtis

    08/17/2022, 6:00 PM
    Hi all, still on this PayPal issue, a couple of errors I forgot to add to previous comment:
    Copy code
    Can't verify CSRF token authenticity.
    Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms | Allocations: 574)
      
    ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
    Wondering if it’s something to do with a frontend change with tokens vs new solidus front end, or if it’s a Rails 5.2 > Rails 6 issue? Any help massively appreciated. Thanks again
    r
    s
    • 3
    • 5
  • k

    Kurtis

    08/17/2022, 6:01 PM
    But this has always been the case, just can’t get anything inside Braintree, or any positive response
  • s

    Sebastian

    08/18/2022, 9:02 AM
    I have fresh solidus installation and added
    solidus_paypal_braintree
    gem. I followed instructions from their github: https://github.com/solidusio/solidus_paypal_braintree and it seems to be incomplete. I can’t access any of the routes generated by gem (e.g.
    /solidus_paypal_braintree
    ) and Braintree nav item hasn’t been added to admin dashboard. My routes file have this line but it doesn’t seem to be working
    mount SolidusPaypalBraintree::Engine, at: '/solidus_paypal_braintree'
    r
    w
    k
    • 4
    • 68
  • w

    Wladjmir

    08/19/2022, 10:13 AM
    Hi, i defined a new
    :manager
    role and gived OrderManagement PermissionSets, but i discovered that to ship the order a spree_api_key is required. i add to configuration
    config.roles_for_auto_api_key = ['admin', 'manager']
    I did’t find this info on docs, may be at least a comment on source code of OrderManagement would be useful. Thanks
    t
    c
    • 3
    • 2
  • g

    Georg Keferböck

    08/19/2022, 7:09 PM
    Hi, we are using solidus_core (2.11.17), and for some reason, we continue getting the following error at checkout (Stage: address): "We are unable to calculate shipping rates for the selected items." We created zone, shipping methods, and shipping categories and assigned those to the products we tested. Similar as presented in this YouTube video:

    https://www.youtube.com/watch?v=nWFkToYQjd8▾

    We also came across this post, apparently addressing this issue, but clearly, it doesn't solve our issue: Problem: https://github.com/solidusio/solidus/issues/3315 Apparent solution: https://github.com/solidusio/solidus/pull/3130 Does anyone experience this issue and has a solution to it? Thank you!
    c
    e
    m
    • 4
    • 17
  • j

    John Pitchko

    08/21/2022, 12:02 AM
    I added
    require 'solidus_paypal_braintree/factories'
    to my
    rails_helper
    but am receiving an error when I try to instantiate a factory:
    Copy code
    NoMethodError:
      undefined method 'name' in 'solidus_paypal_braintree_payment_method' factory
      Did you mean? 'name { "Solidus PayPal Braintree Gateway" }'
  • j

    Jay

    08/21/2022, 2:55 PM
    Hello guys, I have a burning question. Before I used to add the solidus_related products gem to my project . In the demo however i have looked at the code and theres no gem installed however i can see an impelementation of the related products. There's also a variable being called on the _products.html.rb ,
    Copy code
    @similar_products
    Thank you in advance
    a
    • 2
    • 2
  • g

    Georg Keferböck

    08/21/2022, 3:25 PM
    Hi everyone. Is there any way to customise the URL structure? Currently, it appears as if: Taxonomies/categories:
    <http://domain.com/t/[taxonomie]/[taxon_1]/[taxon_2]|domain.com/t/[taxonomie]/[taxon_1]/[taxon_2]>
    .. Example:
    <http://mydomain.com/t/dog/food/dry|mydomain.com/t/dog/food/dry>
    Product landing page:
    domain/products/[product_slug]?taxon_id=[id]
    Example:
    <http://mydomain.com/products/eden-80-20-original-cuisine|mydomain.com/products/eden-80-20-original-cuisine>
    My clients' previous store has super SEO and user-friendly URLs. They rank well. Ideally, I'd like to keep the same URL structure, but slight deviations are okay, as we will 301 redirect them if required! Change 1) - When it comes to Taxonomies / Category URLs, is there a way to get rid of the "`/t/`" in the URL, which I suppose stands for "taxonomies" and is a namespaced/scoped so as not to break the routing. But if I bear that in mind and make sure taxonomies are unique and do not interfere with any other namespace, scope and URL. For example: instead of "`mydomain.com*/t/*dog/food/dry`", we prefer "`mydomain.com/dog/food/dry`" Change 2) - Each product has only one (1!) taxonomy attached to it. So a product can not have multiple taxonomies/taxons assigned. Therefore we would like to remain SEO friendly and have the taxons as part of the product landing page URL. For example: instead of "`mydomain.com/products/eden-80-20-original-cuisine`", we would like the URL to be "`mydomain.com/dog/food/dry/eden-80-20-original-cuisine`" Does anyone know if I can do that, and if so, how? Any help is appreciated! Thank you!
    e
    • 2
    • 4
  • j

    jpd1738

    08/22/2022, 8:21 PM
    What is the best way to add a few static pages to my Solidus app? I am having issues with the versioning if I use the extension and want to hard code them in.
    j
    • 2
    • 2
  • j

    John Pitchko

    08/23/2022, 11:22 PM
    Question about store credits: I see that the order of application of store credits is determined by such things as the
    Spree::StoreCreditCategory.priority
    but are there additional filters available? For example, can you configure credits to only be consumed for certain products/variants?
    k
    • 2
    • 2
  • t

    Tom Wilson

    08/25/2022, 2:45 PM
    A quick question re upgrading to Solidus 3.2.0 around the new Event system. Is including
    Spree::Event::Subscriber
    still necessary for event subscribers if
    use_legacy_events
    is set to false? It's not clear from the documentation, and the interaction between the old and new registry isn't super clear to me from a quick inspection.
    j
    w
    • 3
    • 7
  • g

    Georg Keferböck

    08/27/2022, 10:31 AM
    Hi all, is anyone familiar with Solidus Subscriptions? https://github.com/solidusio-contrib/solidus_subscriptions If I make a product subscribable, customers have to subscribe to the product and lose the option of simply purchasing the product without committing to a subscription. Once I hit "Add to Cart" without actually filling in the subscription fields, I get the error -
    ActiveRecord::RecordInvalid in Spree::OrdersController#populate
    "Validation failed: Quantity must be greater than 0, Interval length is not a number."
    I want the customer to have the choice to either subscribe or make a one-off purchase.
    n
    s
    • 3
    • 7
  • w

    Wladjmir

    08/29/2022, 10:26 PM
    Hi all, i’ve a problem with zeitwerk trying using a custom state machine. i have
    Copy code
    lib/my_store/state_machines/order.rb
    
    module MyStore
      class StateMachines
        module Order
          extend ActiveSupport::Concern
    ...
    Copy code
    in config/application.rb
    
    config.eager_load_paths << Rails.root.join('lib')
    but i get this the error loading the class TypeError: StateMachines is not a class /.rvm/gems/ruby-3.1.2@egs/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/callbacks.rb48 previous definition of StateMachines was here i’ve already lost some time…any suggestion?
  • e

    Edwin Cruz

    08/29/2022, 10:31 PM
    Copy code
    module MyStore
      module StateMachines
        module Order
          extend ActiveSupport::Concern
  • e

    Edwin Cruz

    08/29/2022, 10:32 PM
    change
    class
    by
    module
    in
    class StateMachines
  • w

    Wladjmir

    08/29/2022, 10:33 PM
    i followed the example on docs, could you explain? Thanks anyway.
    n
    w
    • 3
    • 11
  • w

    Wladjmir

    08/30/2022, 11:03 PM
    on http://edgeguides.solidus.io/ about state machine is specified that : “…Event subscribers should always be decoupled from the main transaction…” but on solidus
    spree/order#finalize
    the event
    order_finalized
    is published on bus at the end of the method. i’m doubtful about the way to go.
    c
    w
    • 3
    • 5
  • k

    Kurtis

    08/31/2022, 9:11 AM
    Hey all, does anyone have any issues with Stripe orders going through and appearing within Stripe, but not appearing within Solidus admin?
  • k

    Kurtis

    08/31/2022, 9:12 AM
    I figured it might be an old Solidus issue as well as the PayPal problems, so we moved to Rails 6 and Solidus 3 in hope it’ll fix both, and unfortunately neither are working still
    s
    • 2
    • 2
  • k

    Kurtis

    08/31/2022, 9:12 AM
    I am at the point where I think we have to set it up as a new app or something and bring it all over
  • j

    jakemumu

    08/31/2022, 1:11 PM
    Randomly our checkout has started failing & redirected to the cart path -- it looks like due to
    params.key?(:checkout)
    in the
    update
    method in the
    order_controller
    on the frontend. It's truly strange though cause it happened in production while no code deploy happened -- and i don't see checkout added as a param in the base frontend code either. Is there possible something change in the browser? 0.o quite confused by this one..
    e
    • 2
    • 23
  • s

    Slackbot

    09/04/2022, 1:28 PM
    This message was deleted.
1...212223...39Latest