Better way to implement instalment widget on product pages?

Better way to implement instalment widget on product pages?

SDBdigital
Shopify Partner
87 0 17

One of our payment gateway offers a installment payment plan.

 

They sent me some code that had to be inserted into the main-product.liquid file.

Surely it can be inserted in the editor using the 'custom liquid' block?

It seems like an awful lot of code for a simple instalment calculator.

Is it possible to edit the code below to work in the 'custom liquid' block?

Screenshot 2024-05-16 at 08.38.53.png

 

 

This is the code they sent me:

<html>
<header>
<script src="https://embed.payjustnow.com/product/js/product.js"></script>
<script>
function onLoad() {
setPJNProductAmounts( {{ product.price }} , 3);
}
</script>
</header>
<body onload="onLoad()">
<div id="pjn-product-container"></div>
<style>
.pjn-infolink {
display: table;
}
.pjn-container .pjn-text {
display: block;
}
</style>
</body>
</html>

 

Reply 1 (1)
SDBdigital
Shopify Partner
87 0 17

Hi Roshi

 

Thank you so much.