Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Minor cart layout updates. Remove x from cart qty selector
Browse files Browse the repository at this point in the history
  • Loading branch information
cshold committed Oct 8, 2014
1 parent 1cee56b commit 2f992d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/ajaxify.js.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ var ajaxifyShopify = (function(module, $) {
$.each(cart.items, function(index, cartItem) {
var itemAdd = cartItem.quantity + 1,
itemMinus = cartItem.quantity - 1,
itemQty = cartItem.quantity + ' x';
itemQty = cartItem.quantity;

/* Hack to get product image thumbnail
* - Remove file extension, add _small, and re-add extension
Expand Down Expand Up @@ -1018,7 +1018,7 @@ var ajaxifyShopify = (function(module, $) {

var itemAdd = currentQty + 1,
itemMinus = currentQty - 1,
itemQty = currentQty + ' x';
itemQty = currentQty;

var source = $("#ajaxifyQty").html(),
template = Handlebars.compile(source),
Expand Down
1 change: 1 addition & 0 deletions assets/ajaxify.scss.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ form[action^="/cart/add"] {
==============================================================================*/
.ajaxifyCart--qty {
@extend .js-qty;
display: inline-block;
margin: 0;

.ajaxifyCart--is-loading & {
Expand Down
4 changes: 2 additions & 2 deletions templates/cart.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="grid-item one-third medium-down--one-third">
{{ 'cart.label.price' | t }}
</div>
<div class="grid-item one-third medium-down--one-third">
<div class="grid-item one-third medium-down--one-third text-center">
{{ 'cart.label.quantity' | t }}
</div>
<div class="grid-item one-third medium-down--one-third text-right">
Expand Down Expand Up @@ -113,7 +113,7 @@
<span class="h3">{{ item.price | money }}</span>
</div>

<div class="grid-item one-third">
<div class="grid-item one-third text-center">
<span class="cart-mini-labels">{{ 'cart.label.quantity' | t }}</span>
{% comment %}
Added data-id for the ajax cart implementation only.
Expand Down

0 comments on commit 2f992d0

Please sign in to comment.