GithubHelp home page GithubHelp logo

getgrav / grav-skeleton-shop-site Goto Github PK

View Code? Open in Web Editor NEW
18.0 8.0 12.0 1.59 MB

Grav Shop Site Skeleton

Home Page: https://getgrav.org

License: MIT License

grav grav-skeleton shopping-site shopping-cart

grav-skeleton-shop-site's Introduction

Grav Shop Site Skeleton

The Shop Site skeleton is a Grav skeleton and includes a user folder giving an example of a store set up using Grav.

Installation

To install this package, you will essentially be replacing the default user folder with the skeleton. To do this, download the zip version of this repository and unzip it under /your/site/grav/. Then, rename the folder to user.

If a user folder already exists, back up the folder to a safe place, delete it (if there is no custom content in it you wish to keep) or replace its contents with the files in the unzipped folder.

You should now have all the skeleton files under

/your/site/grav/user/

NOTE: This skeleton is a modular component for Grav which requires Grav, the Error and Problems plugins, and a theme to be installed in order to operate. If you download this skeleton as part of a pre-assembled package from GetGrav.org, you should have everything you need to get started.

grav-skeleton-shop-site's People

Contributors

rhukster avatar ryanmpierson avatar w00fz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grav-skeleton-shop-site's Issues

Two errors installing skeleton

I installed the skeleton (unzipped) and ran bin/gpm install admin (or else I get 403 error). With this skeleton I still had two additional errors:

  1. Had to install AntiMatter: bin/gpm install antimatter.
    That fixed the first issue.

  2. Viewing site I get:
    400 - Template "snipcart.html.twig" is not defined.

This last issue I haven’t fixed, haven’t had time to debug more today. (I’m quite new to Grav.)

Server error installing skeleton theme

First time visiting the site after installing gives a server error.

0 - syntax error, unexpected '=', expecting ']'

This is in the logs:

[2021-11-27 12:40:54] grav.CRITICAL: syntax error, unexpected '=', expecting ']' - Trace: #0 /home/simplyco/public_html/themes/shopsite/vendor/rockettheme/toolbox/File/src/AbstractFile.php(303): RocketTheme\Toolbox\File\PhpFile->decode('<?php\nreturn [\n...') #1 /home/simplyco/public_html/themes/shopsite/vendor/rockettheme/toolbox/File/src/File.php(24): RocketTheme\Toolbox\File\AbstractFile->content(NULL) #2 /home/simplyco/public_html/themes/shopsite/vendor/rockettheme/toolbox/File/src/PhpFile.php(27): RocketTheme\Toolbox\File\File->content(NULL) #3 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/File/CompiledFile.php(50): RocketTheme\Toolbox\File\PhpFile->content() #4 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Config/CompiledLanguages.php(79): Grav\Common\File\CompiledYamlFile->content() #5 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Config/CompiledBase.php(180): Grav\Common\Config\CompiledLanguages->loadFile('tr', '/home/simplyco/...') #6 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Config/CompiledBase.php(112): Grav\Common\Config\CompiledBase->loadFiles() #7 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Service/ConfigServiceProvider.php(172): Grav\Common\Config\CompiledBase->load() #8 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Service/ConfigServiceProvider.php(74): Grav\Common\Service\ConfigServiceProvider::languages(Object(Grav\Common\Grav)) #9 /home/simplyco/public_html/themes/shopsite/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service\{closure}(Object(Grav\Common\Grav)) #10 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Themes.php(353): Pimple\Container->offsetGet('languages') #11 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Themes.php(321): Grav\Common\Themes->loadLanguages(Object(Grav\Common\Config\Config)) #12 /home/simplyco/public_html/themes/shopsite/user/plugins/admin/classes/plugin/Themes.php(17): Grav\Common\Themes->configure() #13 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Processors/ThemesProcessor.php(35): Grav\Plugin\Admin\Themes->init() #14 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\ThemesProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #15 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #16 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Processors/PluginsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #17 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\PluginsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #18 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #19 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Processors/InitializeProcessor.php(130): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #20 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Debugger.php(546): Grav\Common\Processors\InitializeProcessor::Grav\Common\Processors\{closure}() #21 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Processors/InitializeProcessor.php(131): Grav\Common\Debugger->profile(Object(Closure)) #22 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\InitializeProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #23 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #24 /home/simplyco/public_html/themes/shopsite/system/src/Grav/Common/Grav.php(303): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #25 /home/simplyco/public_html/themes/shopsite/index.php(58): Grav\Common\Grav->process() #26 {main} [] []

SnipCart Error Add to Cart not working

I have downloaded the skeleton and after loading the page I'm getting this error.
Uncaught TypeError: Snipcart.get(...) is not a function at snipcart.js:8

Shopping Cart compatibility

Does this shopping cart work only with SnipCart or will it also work with the Shopping Cart plugin available for Grav? #

This repo does not work when used from https://getgrav.org/downloads/skeletons

  • It will install
  • There is no /admin
  • There is no way to easily install the admin via CLI: the ZIP lacks the user/.dependencies file and even though I copied it the CLI still says
ERROR Missing .dependencies file in user/ folder
ERROR invalid YAML in .dependencies

Skeletons are supposed to be easy to install, this issues defeats the purpose.

I'm using OSX and have other Grav installations currently working

Admin dashboard

It is a great example skeleton which should be further enhance by the community as well. But in order to make it at least functional, how to login to the admin dashboard?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.