
<section>
<div class="container">
<div class="catalogue-load"></div>
</div>
</section>
$(document).ready(function() {
var portalIdentity = new URLSearchParams(window.location.search).get('PortalId');
$(".page-home .catalogue-load").load("/ProductList.aspx?PortalId=" + portalIdentity + " .catalogue-container");
setTimeout(function() {
$('.page-home .single-catalogue-container').each(function() {
var productLink = $('.catalogue-header a', this).attr('href');
var newProductLink = "https://sitename.orderprintnow.com/" + productLink + "&PortalId=" + portalIdentity;
$('.panel-body a', this).attr('href', newProductLink);
});
}, 3000);
});
<section>
<div class="container">
<div class="product-load"></div>
</div>
</section>
$(document).ready(function() {
var portalIdentity = new URLSearchParams(window.location.search).get('PortalId');
$(".page-home .product-load").load("/ProductList.aspx?PortalId=" + portalIdentity + " .product-container");
setTimeout(function() {
$('.page-home .single-product-container').each(function() {
var productLink = $('.product-title a', this).attr('href');
var newProductLink = "https://sitename.orderprintnow.com/" + productLink;
var url = new URL(newProductLink);
var templateIdentity = url.searchParams.get('TemplateOrderItemId');
var finalLink = "https://sitename.orderprintnow.com/ProductDetails.aspx?TemplateOrderItemId=" + templateIdentity + "&PortalId=" + portalIdentity;
$('.product-title-link', this).attr('href', finalLink)
});
}, 3000);
});
$(".page-home .product-load").load("/ProductList.aspx?CatalogId=1e7df011-7611-464c-8cc0-abc5bad17e7f&PortalId=" + portalIdentity + " .product-container");
.page-home .single-product-container {
width: 22%;
margin: 1%;
display: inline-grid;
box-shadow: 1px 2px 5px #ccc;
}
.page-home .product-image-container {
width: 100%;
}
.page-home .product-image-container img {
max-height: 180px;
margin: auto;
box-shadow: none;
}
.page-home .single-product-container .product-description-container,
.page-home .single-product-container .product-onlinemessage,
.page-home .single-product-container #upnlPrice {
display: none;
}
.page-home .single-product-container .product-details-container {
width: 100%;
text-align: center;
margin: 25px 0px 20px;
}
@media only screen and (max-width: 1000px) {
.page-home .single-product-container {
width: 100%;
}
}
If you have any ideas for portal customizations you'd like to see us tackle or need help implementing any of this code, email our support team at support@docketmanager.ca