Skip to content
Permalink
Browse files

Add $ symbol for working cart items

  • Loading branch information...
parsonsbots committed Aug 16, 2019
1 parent 545db76 commit f535424bcd2851de927ce65b62611401ea9b316b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/resources/js/carts.js
@@ -66,7 +66,7 @@ var processCart = () => {
quantityValues.map((quantityValue, index) => {
quantitySelectValues += '<option ' + (quantityValue == cartItem.quantity ? 'selected ' : '') + 'value="' + quantityValue + '">' + quantityValue + '</option>';
});
cartItems += '<div class="item-container item-button item-button-selectable" cart_item_id="' + cartItem.id + '"><span checked="0" class="checkbox" index="' + index + '" cart_item_id="' + cartItem.id + '"></span><p><strong>' + cartItem.name + '</strong></p><div class="field-group"><span>Quantity:</span><select class="quantity" name="quantity">' + quantitySelectValues + '</select></div><div class="field-group no-margin"><span>USD Price:</span><span class="price">' + cartItem.price + '</span><span>per</span><select class="interval-value" name="interval_value">' + intervalSelectValues + '</select><select class="interval-type" name="interval_type">' + intervalSelectTypes + '</select></div><div class="clear"></div></div>';
cartItems += '<div class="item-container item-button item-button-selectable" cart_item_id="' + cartItem.id + '"><span checked="0" class="checkbox" index="' + index + '" cart_item_id="' + cartItem.id + '"></span><p><strong>' + cartItem.name + '</strong></p><div class="field-group"><span>Quantity:</span><select class="quantity" name="quantity">' + quantitySelectValues + '</select></div><div class="field-group no-margin"><span>USD Price:</span><span class="price">$' + cartItem.price + '</span><span>per</span><select class="interval-value" name="interval_value">' + intervalSelectValues + '</select><select class="interval-type" name="interval_type">' + intervalSelectTypes + '</select></div><div class="clear"></div></div>';
});
document.querySelector('.cart-items-container').innerHTML = cartItems;
cartItemAllVisible.removeEventListener('click', cartItemAllVisible.clickListener);

0 comments on commit f535424

Please sign in to comment.
You can’t perform that action at this time.