Quantity Selection in Cart

Permalink Browser Info Environment
Hi there. First off, I love your addon, great job. I've been implementing it in our new site and I think it's going to work out wonderfully. I did have a question that I'm hoping you can provide a little bit of insight into: I'm wondering if it's at all possible (perhaps through 'Appearance and Labeling' under the Snipcart options) to change how people increment/decrement the quantity of a product in the cart from those + and - buttons to text fields? (We're selling uniform t-shirts to our franchises and they occasionally do a relatively large order and it would be inconvenient to increment one at a time. Thanks again.

Type: Pre-Sale
Status: In Progress
joslund
View Replies:
mesuva replied on at Permalink Reply 1 Attachment
mesuva
Hi Jake,

thanks for the purchase and the kind words, much appreciated.

With the quantity increment, there's not an easy configuration change or template tweaks that I'm aware of that changes how that works unfortunately - Snipcart only presents the +/- mechanism to change the quantity.

Looking further at the docs, there does appear to be a way to potentially add an extra field next to the button that has a quantity, and then that passes through that to the cart.. but this would take some extra work on the block template and I believe a bit of javascript to get working (and I've not actually tried it myself). This still wouldn't enable a quantity input _directly_ on the cart, but would at least allow someone to start at a large quantity (at least that's my understanding of the docs).

I'm not sure of your coding abilities, this might be something you want to tackle yourself or not. If you'd like me to look into it further shoot me an email and we can go from there (ryan@mesuva.com.au)

The other thing to consider is that version 3.0 of their cart is in beta. I've not seen it yet, and interestedly it's been in beta since March, but it might have this as an option, I'm not sure... might be worth shooting the Snipcart guys a question whether this is supported in the newer version - if so, I can look at getting access myself and updating the add-on to support it.

Sorry there's not a quick solution to this!

-Ryan

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Easy Image Slider (1.2), EC360 (1.14), eCommerce with Snipcart (1.4.2), Pixel Theme (2.1.2), Vivid Carousel (1.0.1), Whale Grid Gallery (2.5.0)

# concrete5 Overrides
blocks/document_library/controller.php, blocks/document_library/view.css, blocks/document_library/view.js, blocks/document_library/view.php, blocks/document_library, blocks/whale_manual_nav/controller.php, blocks/whale_manual_nav, controllers/login.php

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/7.2.19

# Server API
apache2handler

# PHP Version
7.2.19

# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 100M
upload_max_filesize - 100M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.