@wikala/spmkt 2.29.2 → 2.29.4
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.
|
@@ -265,10 +265,11 @@ export default {
|
|
|
265
265
|
|
|
266
266
|
updateDiscountInfo() {
|
|
267
267
|
let discountInfoContainer = document.querySelector(this.discountInfoSelector)
|
|
268
|
-
let discountMessageContainer = discountInfoContainer.querySelector('.discount-message')
|
|
269
268
|
if(!discountInfoContainer) {
|
|
270
269
|
return
|
|
271
270
|
}
|
|
271
|
+
let discountMessageContainer = discountInfoContainer.querySelector('.discount-message')
|
|
272
|
+
|
|
272
273
|
discountInfoContainer.classList.add('is-hidden')
|
|
273
274
|
discountMessageContainer.textContent = ''
|
|
274
275
|
|
|
@@ -287,8 +288,8 @@ export default {
|
|
|
287
288
|
} else {
|
|
288
289
|
if(variantDiscountInfo.description.trim() !== '') {
|
|
289
290
|
discountMessageContainer.innerHTML = `<p>${variantDiscountInfo.description}</p><hr>`
|
|
290
|
-
}
|
|
291
|
-
discountMessageContainer.innerHTML += `Iskoristi promo kod
|
|
291
|
+
}
|
|
292
|
+
discountMessageContainer.innerHTML += `Iskoristi promo kod <strong>${variantDiscountInfo.coupon_code}</strong> za popust od <strong>${this.formatMoney(variantDiscountInfo.discount_amount)} RSD</strong>`
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
|