} else if (tcartLS) { tcart__openCart(); } else { $buyBtn.trigger('click'); } } }, 500); });