Getting started with the Horizon theme #114
-
Hello all, I've started to play with the Horizon theme and successfully launched it locally but now I'm facing some issues. The editorTo my understanding, the horizon theme is still in beta and the integration with the swell admin interface still needs some work. In my case, i see the new entries in the editor but some are not working correctly. I need to precise that i had previously tested the origin theme so i think i have some "conflicts" there. What are the conditions to be able to use the editor with the horizon theme ? (eg: a new store, no previous theme installed ...) Sample dataIn the mid term, i would like to setup my store and its content without using the editor (via a script to automate and quickly switch between environment). Hence, is it possible to have access to all the sample (raw) data used by the horizon demo theme (https://swell-horizon-demo.vercel.app/). Maybe as json files pushed to the repo or by any other means. The current git repo «public» directory already contains the demo images. The idea is to push this provided content via the Swell API and be able to play around with a fully functional theme and know how to use the different pages section (full_width_media, categories_preview, multiple_panels ...). Currently what i'm getting is a visual mess because i have old content from an old theme and without the editor, it's quite tricky to format things correctly. (See below) Here pricing are all 0 and selected product option is not visible. Thanks in advance for your help |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Hi @brahima, could you share your store URL so I can take a look? Since you have installed Origin and setup Horizon as well, data and some settings have been set for both. Ideally, you would need to clean up Origin's demo content and added settings to be able to start from a clean base. |
Beta Was this translation helpful? Give feedback.
-
Hello @rodrigoddalmeida and thanks for your answer. Indeed there's some misconfigurations in my settings. Some color settings are not retrieved properly on the front side. See for example the bg-primary (should be #1D0A43) but is empty :
The text-background-primary is Ok (#FFFFFF) Hence, the selected option is not visible in my case because the bg-primary color is undefined There's a lot of other problems like this one. |
Beta Was this translation helpful? Give feedback.
-
Hi again @rodrigoddalmeida, In fact, i noticed that the theme_id associated to my store was origin. However, I still have some origin things in my settings (My product prices are still 0$ ...) and i think that every time i go to the editor and save, it puts back origin as the theme_id. Regarding, storybook, i had to play npm run setup. I think that the theme generation helped it catch up with the new values. I there a way to remove all the things related to origin and ensure my setup is clean ? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
We are having a similar experience installing the Horizon theme. After previously installing Origin theme. I was wondering if either of you made any progress decoupling? Did you have to start over? |
Beta Was this translation helpful? Give feedback.
-
@brahima @DeviousLab @dfeinberg10 we'll release an update to Storefronts soon that will solve that for new stores. As a immediate workaround, you can push Horizon to your storefront repository, that way the platform will know which settings to keep. |
Beta Was this translation helpful? Give feedback.
-
@brahima We recently launched an update to the storefronts which resolved the most of the common issues raised.
You can start creating a new storefront inside your store and push horizon theme code changes following the below instructions:
Yes, Horizon theme generates & saves the sample data and configuration to the storefront that you created. There won't be any data corruption anymore when you use more than one theme, as the storefront data & configuration will be stored in separate storefronts instead of account-level (like previous).
This issue will be resolved automatically as part of the auto-generation of horizon configuration. |
Beta Was this translation helpful? Give feedback.
@brahima We recently launched an update to the storefronts which resolved the most of the common issues raised.
You can start creating a new storefront inside your store and push horizon theme code changes following the below instructions:
https://github.com/swellstores/horizon#getting-started
Yes, Horizon theme generates & saves the sample data and configuration to the storefront t…