Cart Button Does Not Appear At All #4668
-
The cart button does not appear in any way on a single page of the entire application for some reason. This has occurred on a fresh install of the Solidus gem and I have not made a single modification of any kind to the code. The source of the bug is an undefined 'Solidus' reference, which I have included a picture of. Solidus Version: To Reproduce Current behavior Expected behavior Screenshots Desktop (please complete the following information):
Additional context I suspect that this is due to the fact that the video was recorded before and then released on September 12 of this year, but the current version I installed was released fifteen days ago on September 22. Perhaps that was enough time for a development to be made which broke one of the features of the application? In any case, how can I go about fixing this problem? I am about to begin styling the store for myself using the official guide, and any help at all is greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
The fact that you're getting both errors around jQuery and Spree not being loaded, suggests none of the JS is being loaded. What version of Rails are you using and are you just using Sprockets or one of the other JS options now available? |
Beta Was this translation helpful? Give feedback.
-
I am currently using Rails 7.0.4. I don't have any knowledge about Sprockets or anything like that, is it some sort of Javascript framework you need in order for Rails and Javascript to cooperate? |
Beta Was this translation helpful? Give feedback.
-
Sprockets is the default frontend asset management pipeline in Rails. What was the command you used to generate your Rails application? |
Beta Was this translation helpful? Give feedback.
-
I typed in 'rails new solid2'* and then installed the Solidus gem. *solid2 just stands for 'Solidus 2' as this is my second time trying to set up an application with it. |
Beta Was this translation helpful? Give feedback.
-
I tried to recreate the issue locally, I was able to make it work with the latest solidus and rails:
but I had an issue trying to make it work with Rails 7.0.4 and Solidus 3.1.8, as it can only be installed on rails < 6.2:
(I moved this issue to a troubleshooting discussion so the resolving answer can be marked and help other users) |
Beta Was this translation helpful? Give feedback.
-
Yep, it looks like installing Solidus Stripe causes the gem's Javascript to malfunction for some reason. Looks like I'll have to start my project over again, but that's okay. Thank you @elia and @jarednorman for your help! I appreciate it a lot! |
Beta Was this translation helpful? Give feedback.
I tried to recreate the issue locally, I was able to make it work with the latest solidus and rails:
but I had an issue trying to make it work with Rails 7.0.4 and Solidus 3.1.8, as it can only be installed on rails < 6.2: