merge, plus nop core add, plus productbox changes
This commit is contained in:
parent
3ae768d571
commit
b73db10324
|
|
@ -83,7 +83,7 @@ public class AuctionViewComponent : NopViewComponent
|
|||
return Content(string.Empty);
|
||||
}
|
||||
|
||||
var productId = ((ProductOverviewModel)additionalData).Id;
|
||||
var productId = ((ProductDetailsModel)additionalData).Id;
|
||||
|
||||
|
||||
//model.ProductId = productId;
|
||||
|
|
|
|||
|
|
@ -47,21 +47,33 @@
|
|||
if (widgetPriceElements && widgetPriceElements.length > 0) {
|
||||
widgetPriceElements[0].textContent = HUFFormatter.format(productToAuctionDto.currentPrice); // Update the price
|
||||
}
|
||||
|
||||
let myDate = auctionDto.startDateUtc;
|
||||
console.log("dates: " + myDate);
|
||||
let fixedDate = new Date(myDate + 'Z');
|
||||
console.log("dates: " + myDate + ", " + localizedDate);
|
||||
let resultDate = new Date(fixedDate);
|
||||
console.log("dates: " + myDate + ", " + localizedDate + ", " + resultDate);
|
||||
|
||||
// Add a new div as the first child
|
||||
if (isActive) {
|
||||
console.log("isActive: " + isActive);
|
||||
productItem.prepend('<div id="' +
|
||||
publicInfoOverlayId +
|
||||
'" class="bg-success p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
||||
'" class="bg-success p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><p><i class="fa-solid fa-gavel"> ' +
|
||||
'LIVE RIGTH NOW' +
|
||||
'</i></div>');
|
||||
'</i></p><span>' +
|
||||
productToAuctionDto.sortIndex +
|
||||
'</span></div>');
|
||||
} else {
|
||||
console.log("isActive: " + isActive);
|
||||
productItem.prepend('<div id="' +
|
||||
publicInfoOverlayId +
|
||||
'" class="bg-primary p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
||||
auctionDto.startDateUtc +
|
||||
'</i></div>');
|
||||
'" class="bg-primary p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><p><i class="fa-solid fa-gavel"> ' +
|
||||
resultDate +
|
||||
'</i></p><span>' +
|
||||
productToAuctionDto.sortIndex +
|
||||
'</span></div>');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue