GithubHelp home page GithubHelp logo

ipatate / gatsby-plugin-snipcart-advanced Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 19.0 119 KB

Gatsby JS plugin for Snipcart V3 with advanced settings

License: MIT License

JavaScript 100.00%
gatsbyjs snipcart react

gatsby-plugin-snipcart-advanced's Issues

[info] Load snipcart lib only to specific pages

Hi, is there a way to use this lib only to specific pages? I would like to lighten the pages where I do not use snipcart, and I have noticed that this is required by all my pages.
Thanks!

Not an issue but this would be an amazing improvement

Is it something feasible to add a call to the currency API Snipcart.api.session.setCurrency('usd'); in the context? It would allow us to change the currency on the fly and run a multi-currency site.

Just a thought/suggestion. :)

Section customization

Hi, I am new to Gatsby and I am having trouble customizing the sections using the innerHTML plugin options.

I am wanting to add a header and add top-margin or padding in the header. I had a look at the Snipcart document but it was a bit hard to understand.

snipcart-screenshot

Options:

innerHTML: '
	<checkout section="header" style="padding-top: 200px;">
	<cart-header>
	<h1>Test header</h1>
	</cart-header>
	</checkout>''

Doesn’t work for newer versions

This plugin and as most Snipcart plugins don’t work with Gatsby anymore. From what I can tell, any version about 3.0.6 will not work in Gatsby. Unless I’m doing this wrong please find a fix as this isn’t really usable with the default values.

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.