$(document).on(this.fluidbook.input.clickEvent, '[data-cart-ref] .add', function () {
var ref = $(this).closest('[data-cart-ref]').data('cart-ref');
try {
- plusProduct(ref);
+ if(ref.indexOf('list_')===0){
+ listProducts(ref.substring(5));
+ }else {
+ plusProduct(ref);
+ }
} catch (e) {
console.warn('plusProduct(' + ref + ') failed');
console.error(e);
$(document).on(this.fluidbook.input.clickEvent, '[data-cart-ref].overlay', function () {
var ref = $(this).data('cart-ref');
try {
- infoProduct(ref);
+ if(ref.indexOf('list_')===0){
+ listProducts(ref.substring(5));
+ }else {
+ infoProduct(ref);
+ }
} catch (e) {
console.warn('infoProduct(' + ref + ') failed');
console.error(e);
if (this.fluidbook.settings.cartLinkAppearance === 'overlay') {
$('a[data-cart-ref]').each(function () {
- var size = 2;
var c = [];
+ var haveMinus = true;
+ if ($(this).data('cart-ref').indexOf('list_') === 0) {
+ c.push('no-minus');
+ haveMinus = false;
+ }
+ var size = 2;
if ($(this).outerWidth() < 200) {
size = Math.min(size, 0);
c.push('small-w');
$(this).addClass('medium');
}
$(this).addClass(c);
+ if (!haveMinus) {
+ bh *= 1.25;
+ bw = bh;
+ }
var paddingTop = 0.5 * ($(this).outerHeight() - bh);
var paddingLeft = 0.5 * ($(this).outerWidth() - bw);
overflow: hidden;
color: #fff;
+ &.no-minus {
+ div.remove {
+ display: none !important;
+ }
+
+ div.add {
+ margin-left: 0 !important;
+ transform-origin: 0 0;
+ transform: scale(1.25);
+ }
+ }
+
&.condensed-h {
div {
&.infos {