@wikala/spmkt 2.29.1 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -285,7 +285,10 @@ export default {
|
|
|
285
285
|
if(variantDiscountInfo.coupon_applied) {
|
|
286
286
|
discountMessageContainer.textContent = `U korpi će vam biti obračunat popust od ${this.formatMoney(variantDiscountInfo.discount_amount)} RSD`
|
|
287
287
|
} else {
|
|
288
|
-
|
|
288
|
+
if(variantDiscountInfo.description.trim() !== '') {
|
|
289
|
+
discountMessageContainer.innerHTML = `<p>${variantDiscountInfo.description}</p><hr>`
|
|
290
|
+
}
|
|
291
|
+
discountMessageContainer.innerHTML += `Iskoristi promo kod <strong>${variantDiscountInfo.coupon_code}</strong> za popust od <strong>${this.formatMoney(variantDiscountInfo.discount_amount)} RSD</strong>`
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
294
|
|