In PDP extension in the file PDPextension.view.js
Changed the previewImagPDFUrl for some fields like B2font1,B2font2,B2font3,B2font4 from compInfoFont to bankInfoFont.
var previewImagPDFUrl = 'https://formsfulfillment.liquifire.com/formsfulfillment?set=tempDevPath[artinagroup/]&set=CheckLayoutID[' + logoLayout + '],prodID[' + itemID + '],checkColor[' + checkColorcode + '],version[print],view[single],panto[True],fontColor[' + compFontColor + '],defaultColor[%23000000],vectorizeLogo[True]&set=B1color1['+ compFontColor + '],B1color2[' + compFontColor + '],B1color3[' + compFontColor + '],B1color4[' + compFontColor + '],B1color5[' + compFontColor + '],B1font1[' + compInfoFont + '],B1font2[' + compInfoFont + '],B1font3[' + compInfoFont + '],B1font4[' + compInfoFont + '],B1font5[' + compInfoFont'],B1linesize1[10],B1linesize2[8],B1linesize3[8],B1linesize4[8],B1linesize5[8],B1line1['+ compName1 + '],B1line2[' + compName2 + '],B1line3[' + compName3 + '],B1line4[' + addLine1 + '],B1line5[' + addLine2 + '],B1logo1[' + liquidpix'],block1[container1]&set=B2color1['
+ compFontColor + '],B2color2[' + compFontColor + '],B2color3[' + compFontColor + '],B2color4[' + compFontColor + '],B2font1[' + bankInfoFont + '],B2font2[' + bankInfoFont + '],B2font3[' + bankInfoFont + '],B2font4[' + bankInfoFont + '],B2linesize1[8],B2linesize2[8],B2linesize3[8],B2line1[' + bankName + '],B2line2[' + bankAddress + '],B2line3[' + bankAddress2 + ']
And also commented the values previously set values to get the both the values selected
if (checkStubText) {
this.pdp.setOption('custcol_ag_logopersonlizationcolor', logocolor);
// this.pdp.setOption('custcol_ag_logopersonlizationfont', JSON.stringify(logofont));
}
if (compName1 || compName2 || compName3 || addLine1 || addLine2) {
this.pdp.setOption('custcol_ag_companypersonlizationcolor', companycolor);
// this.pdp.setOption('custcol_ag_companypersonlizationfont', JSON.stringify(companyfont));
}
if (bankName || bankAddress || bankAddress2 || extraLine) {
this.pdp.setOption('custcol_ag_bankpersonlizationcolor', bankcolor);
// this.pdp.setOption('custcol_ag_bankpersonlizationfont', JSON.stringify(bankfont));
}
And also changed the If condition in the field trigger function:
if ((!!pattern ? (value.match(pattern)) : Number(value))) {
this.pdp.setOption(currentitemid, value);
jQuery('.' + currentitemid + '-global-validation-error-message').hide()
$("#" + currentitemid + '-inputid').removeClass('new-product-cls');
}
After doing all the required changes the fonts will not change after the continue button is pressed also on Personalization image. The fonts set will be appeared on the Personalized item image.