hii ,
How to get the base image in front-end when image is already set as base image in back-end.
my error is when i insert new product by default new image is set as a base image. please help me.
hii ,
How to get the base image in front-end when image is already set as base image in back-end.
my error is when i insert new product by default new image is set as a base image. please help me.
I have implemented the function df_product_image_url()
for it.
If you pass the image
string as the second parameter, the function will return the base image’s URL:
df_product_image_url($product, 'image')
Details: How to get an image URL for a product programmatically?