Page 1 of 1
How to gt the product image name
Posted: Fri Jun 11, 2010 6:00 pm
by MMIKAL
Hi
I need to replace the default ProductImage placeholder with a zoom component, therefore
I need to know how to get the cutrrent product image name ( fully qulified or the URL ), so I can submit it to my zoom component.
Any help is appriciated. Thanks
Re: How to gt the product image name
Posted: Sat Jun 12, 2010 3:10 am
by s_ismail
You can load current product Image as
Code: Select all
int _ProductId = AlwaysConvert.ToInt(Request.QueryString["ProductId"]);
Product _Product = ProductDataSource.Load(_ProductId);
if (_Product != null)
{
string imageUrl=_Product.ImageUrl;
}
{
.
Re: How to gt the product image name
Posted: Wed Jun 16, 2010 9:48 am
by MMIKAL
Thanks Ismail
I was more thinking about the nVlocity variable, so in the HTML page i can use somthing like $Product.image and pass it to my zoom component.
Also do you happen to know where I can find a list of variables exposed via nVlocity?
Regards
Re: How to gt the product image name
Posted: Wed Jun 16, 2010 9:50 am
by mazhar
Read following thread, something similar is been discussed here with NVeclocity code
viewtopic.php?f=44&t=7553
Re: How to gt the product image name
Posted: Wed Jun 16, 2010 10:42 am
by s_ismail