Hello People! I am working with suite commerce cus...
# suitecommerce
z
Hello People! I am working with suite commerce custom extensions. The goal is to change the image of product detail page using any of the extensiblity api component. Can i do this using PDP component or is there any other suggestion to achieve the goal ?
s
It depends on what exactly you want to do. What do you want to replace it with? Do you want to keep the slider / image swapping capabilities?
z
Thank you for your response, So i have only one item created on netsuite which is displaying on my SCA Web Page and i have multiple images on my custom extension page. I just want to replace the thumbnail images on the item with the images which are ony my custom extension web page?
s
I don't follow exactly, but your custom extension is like an image display extension?
You could use jQuery to empty the DOM element of the ImageGallery and then use addChildView() to inject a new child view into it, which, presumably, would show your new images
Or you can use removeChildView() to remove it more programatically, but it may be difficult to replace the view with an alternative
You can use addToViewContextDefinition() to add something to the PDP context object that can then be used in the main PDP template
But there's no method for "replace the image gallery"
It may just be easier to write a custom layout template that just has the things you need in it
z
Got it. Thanks!