Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SimpleCart.js - cart options don't work inside my cart div?

Featured Replies

I'm trying to use SimpleCart but I'm getting really stuck as the checkout buttons it suggests do not work.

 

www.rubytuesdaycreative.co.uk/testsite/snood.html

 

I've added the checkout button underneath the picture as an example, and in this case it works fine. (The link is in white, just popped it in there to test)

 

However when I put the item inside my slide-out-div (the basket part on the egde) it just stops working?!

 

Can anyone help me with any reason why the buttons would just stop working when inside this div?

 

I also can't change it from dollars, despite having changed the currency it always shows up as dollars.

Edited by Fran Haselden

I can't get the page you've linked to load?

 

I have been playing round with this, I had the same problem re changing it from $. I think I ended up going into the .js file (or config if there is one) and changing the default currency it used in there..

 

You should be able to set it with a variable, but it wasn't working for me. :(

You seem to have nailed it now; working perfectly and looking great!

 

You've done a cracking job on the site (you should definitely be quoting higher for web design).

You seem to have nailed it now; working perfectly and looking great!

 

You've done a cracking job on the site (you should definitely be quoting higher for web design).

 

Weird, I still can't see the page. I'm interested to see how it looks because I'm currently looking to incorporate SimpleCart into one of my websites.

  • 2 weeks later...

I think I sussed the problem with the currency.

 

I was doing something like this:

 

currency: "GBP";
shippingFlatRate: 10;

 

When in actual fact, the semi colon was killing it. Needed to be a comma.

 

currency: "GBP",
shippingFlatRate: 10;

 

Works fine :)

Edited by Lewwy

  • 2 weeks later...
  • Author

I think I sussed the problem with the currency.

 

I was doing something like this:

 

currency: "GBP";
shippingFlatRate: 10;

 

When in actual fact, the semi colon was killing it. Needed to be a comma.

 

currency: "GBP",
shippingFlatRate: 10;

 

Works fine :)

 

Try my live version? http://www.rubytuesdaycreative.co.uk/snood.html

 

(Pre-warning: the site is rubbish. I mean seriously. It took me a few hours to do the whole thing and there are tons of bugs and things to be improved. I'm well aware but haven't had the time to fix it! It's still getting me orders though [though if you do spot anything feel free to mention so I can add it to my ridiculously long to-do!])

 

The reason was that the code for the slideout was blocking the call to the function that draws the cart.

 

In the end I simply found a different slide-out solution and it worked. Annoying though.

I think it looks awesome. :S

 

I would change your white dashed borders to #F6F4F1, I think they look cooler 'cutout'.

  • Author

I think it looks awesome. :S

 

I would change your white dashed borders to #F6F4F1, I think they look cooler 'cutout'.

 

Ooh I'll look into that, going to polish the design off a little... but it's got me a few orders and as much business as I can handle at the moment :)

 

really awesome design

 

Thanks! I've got some fun artwork coming soon too that a friend of mine has put together (instead of the hot air balloon, there will be a hot air balloon but with a sheep in it, and a friend has drawn me another of a sheep hiking a mountain made from balls of wool. It's amazing!)

  • 2 months later...

Hey,
This site looks great. I have been trying to grasp simplecart.js but having a realy hard time getting it set up.
Has anyone else had any experience using this?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.