trying to setup virtocommerce storefront core with electronics demo and i get this error - virtocommerce

i get this error page when deploying storefront core
Virto Commerce storefront has been successfully deployed
Looks like you're missing a theme :(
We looked for 'index.liquid' view in the following locations
Themes\Electronics\default\templates
Themes\Electronics\default\snippets
Themes\Electronics\default\layout
Themes\Electronics\default\assets
It simple to fix: follow our instructions to download and correctly configure theme for your storefront.
i tried inserting index.liquid file in those folders through KUDU powershell but nothing has happened. one more thing, freshly installed platform 2.13.26 doesn't load any of each images and layout we're not properly configured or pointed.
module layout not properly formatted
Any help is appreciated!

It sounds like your theme isn't linked up correctly. Refer to this document for information on linking the theme (which you can download here).
Essentially, once you build your theme solution, you need to copy the solution contents to "\App_Data\cms-content\Themes[store]\default" on your platform.
If you're doing this locally rather than on a web server, you can also just use mklink to link the store, platform, and themes together.
mklink /d "[storefront_path]\VirtoCommerce.Storefront\wwwroot\cms-content" "[platform_path]\App_Data\cms-content"
mklink /d "[platform_path]\App_Data\cms-content\Themes\[store_name]\default" "[theme_path]"

Related

Create DevExpress Dashboard in a project with asp.net core

Hello Everyone I am new in StackOverflow so I may can't describe my problem well But I try my best and I am conting on you to help me with this ;
I have problem in myproject asp.net core wanna build dashboard with devexpress I already followed a tuto by devexpress but it seem something doesnt match when I try to install a package with NuGet I can't find it I have already try to add the package source so it help me find it but still nothing , I really need to do somthing about it immediately .
Here is some link to know more about this issue
The package :DevExpress.AspNetCore.Dashboard
-the tips that I thought it could help me : https://docs.devexpress.com/Dashboard/119284/getting-started/build-end-user-dashboard-designer-applications/create-an-aspnet-core-designer?v=18.1
-the tuto I followed : https://docs.devexpress.com/Dashboard/119284/get-started/build-web-dashboard-applications/create-an-aspnet-core-dashboard-application
I use asp.net core version 2.0
DevExpress 17.2
Source: C:\Program Files (x86)\DevExpress
18.1\Components\System\Components\packages
In the tutorial you refer to, the Source path added by it downloads the corresponding packages to a local folder, but because you did not download it, you cannot find the corresponding package using the path in the reference document.
Please refer to this article, log in to the account on the DevExpress official website, and click the Obtain Feed URL, an url including your authorization key and api will be generated.
Then when adding the package source, change the Source path to the url and continue to follow the tutorial.

Shopify ThemeKit is not working on windows 10 environment

I have installed Shopify ThemeKit on my windows machine.
After installing ThemeKit, I ran the following command to confirm whether it is installed correctly or not.
theme version
Following are the results.
Then I have tried the following command in Command prompt to generate a config.yml file
theme configure --password=2f012ad145dd5642e85ab4466bd654b1 --store=urflavor.myshopify.com --themeid=41114009658
No error or success message has shown on screen after running above command. See below screenshot
After this, I have tried manual way to create a config.yml file and fetch files from Shopify. I have created a file config.yml and put following contents into the file
development:
password:[PASSWORD HERE]
store: urflavor.myshopify.com
theme_id:[THEME ID HERE]
Then I cd into the folder and tried the following command:
theme download
Following are the message on screen:
Now I went back to the same folder, and sadly it is blank (See below Image)
I have tried both manual and PowerShell method to install Shopify ThemeKit and I am having same error/issues both times.
Environment Details
OS: Windows 10
Themekit : 0.7.5 windows/amd64
After a lot of searching and following different posts on StackOverflow, I didn't find a better solution. I tried same steps on another machine and everything was working fine..
Now on my earlier machine, I found that my Antivirus was the main cause. I have disabled my anti-virus and now ThemeKit is working fine.
Thank you, everyone, who helped me with this.

How to develop Shopify themes locally?

I'm going to work on a Shopify theme, and I want to figure out how to run/edit it locally. I'd like to be able to the following, if possible:
Pull all the Shopify theme code from the site to my local computer (ideally a single command line tool)
Make edits locally, and run them locally or in a staging environment
Push all the edits to the main Shopify site, again using a command line tool
Is this at all possible?
There are quite a few workflows you can use here.
1. Task runners
If you're using either Gulp or Grunt locally for development, there are libraries out there that will upload your files to the store through API credentials of a Private App that you have to create. Most work by uploading the files you change, using a watcher.
grunt-shopify
grunt-shopify-upload
gulp-shopify-upload (it's my favourite since I use Gulp but has a known issue that sometimes it stops uploading files and you have to restart it).
2. Official Shopify Theme Kit
Theme Kit is a cross-platform CLI tool that was built by Shopify Employees. It can run on windows/linux/OS X. You can read more about it on Shopify Blog or download it directly. The alternative previously mentioned of Desktop Theme Editor is deprecated and has been replaced by Theme Kit.
3. Third-party SaaS Applications
Instead of watching for changes, these will work with a continuos integration workflow, where your latest push on a certain branch gets uploaded to the theme you've selected.
Beanstalk. More specific information can be found on their landing page for Shopify, here.
DeployBot. Their help article on Shopify has some information on how to get started.
Both options are from the same company. Here's a comparison of both they've did on their blog.
4. Third-party libraries
There's also an alternative not officially supported by Shopify which is a TextMate Bundle in case you use that OSX editor.
There's an unofficial extended cli similar to theme kit but with further functionality called Quickshot, which I've just found out based on Matt's response and seems pretty awesome. Some of the features they highlight are:
Supports uploading to multiple Shopify stores and themes
Easy to use configuration wizard
Uploads/downloads in parallel greatly reducing transfer times
Supports autocompiling scss locally before uploading to Shopify
Supports autocompiling Babel/ES6 into modules which are easily used by - Requirejs and others
Can use with .gitignore files or a custom .quickshotignore file.
Can download/upload Shopify Blogs, Pages and Products! Easily transfer them between stores! Even the metafields! And edit them locally in your favorite editor.
Shopify recently released Slate, a new tool for theme development.
https://github.com/Shopify/slate
As of 2020, Shopify has stopped support Slate so you can now use Themekit - https://shopify.github.io/themekit/
2022 update
Currently it is not possible to run Shopify locally. There are only solutions, mentioned in other answers to edit files locally and upload it to Shopify. It makes the development hard.
I am working on a solution to emulate Shopify locally making development similar to WordPress, React or Angular. So you will see changes immediately, even without reloading the page and without the need to upload files to Shopify each time.
You can read more here: https://link.medium.com/6SGd1kcVdnb
Juan's answer is spot on.
There's one more I know of which I believe is a little more advanced than Themekit (which I use) called Quickshot: https://quickshot.readme.io/v2.1/docs
Shopify have built a tool for Mac that allows you to develop your theme locally, and sync with your store https://apps.shopify.com/desktop-theme-editor
I don't know of anything for windows/Linux etc.
If you're looking for completely offline development, it's unfortunately not possible at this time. While the Slate/ThemeKit CLIs lets you code in your favorite text editor, an internet connection is still required because it likes to keep everything in sync at all times.
Install the state package by running the following commands:
npm install -g #shopify/slate
slate theme theme-name

Bootstrapping Aurelia

Finally, I start to work with Aurelia. There is a starter kit available Here which facilitates initializing Aurelia. But it is a template which should be used within a Web Site template.
I have a pre-configured WebApi project and I want to use Aurelia in it. I've just added the starter kit files and folders to my project. But unfortunately it shows 27651 errors fo files in jspm_packages.
What am I doing wrong? Is there any Nuget bootstrapper for Aurelia available?
Start with the aspnetcore template from Here
You can use web api from the template.
You will be up and running in minutes.
If you are using Web API, starting from an MVC5 project might be faster.
The following link is an Aurelia starter kit with MVC5.
You will have to update it to the latest version of Aurelia, but I managed to make it work with web api 2 and oAuth authentication.
https://github.com/rmourato/Mvc5-Aurelia
A tutorial can be found here.
http://ruimourato.com/2016/01/26/running-aurelia-on-mvc5.html
Hope this helps.
Well you asked what the errors are from. First thing is that you should exclude the jspm_packages folder from VisualStudios solution explorer Right click on it and mark 'exclude from project'.
Next, setup your project on source control (git) if not already and add the following to your git .ignore file
jspm_packages/
node_modules/`
I would suggest creating a second project aside from your WebAPI project that can contain static html, css and js files and do your Aurelia application there separate from your Web API project but in the same solution.
I could possibly give you a solution that is already setup, that shows how to use web api along with aurelia. But it would take some time for me to setup.
For all of my projects using Aurelia, I use the aurelia-cli which you get through npm and I would also recommend this approach.
You can be up and running with hello world in under 5 minutes.
You will then be able to build all the appropriate bits and pieces to talk to your api.
http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/the-aurelia-cli/1

best structure for a customized virto commerce

Any suggestions of how to structure my solutions when developing custom Modules and frontend?
I.e. Should I just clone the repoy and add my modules and change web.config with transform files directly in the repo. Will a future pull working well then? any ideas for simple developing and simple upgrade?
Or is it wrong aproach. Should i use azure deploy script/ slot settings and call virto api to add virto modules...
ok i saw thar virto has updated its documentation
http://docs.virtocommerce.com/display/vc2devguide/Developing+a+custom+solution