Display the image on PDP page.

display any image inside PDP section

If we need to show any image in pdp, we have to create a view first

				if (PDP) {

					var pricing = PDP.getItemInfo();
					PDP.addChildView('imageview', function () {
						return new imageviewsec({
							PDP: PDP,

						});
					});
				}

The next step is template creation for the image. simply add an image using <img> and add needed changes.

at last we can call the view anywhere in the PDP theme file

<div data-view="imageview"></div>

Leave a comment

Your email address will not be published. Required fields are marked *