How to gt the product image name

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

How to gt the product image name

Post by MMIKAL » Fri Jun 11, 2010 6:00 pm

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

User avatar
s_ismail
Commander (CMDR)
Commander (CMDR)
Posts: 162
Joined: Mon Nov 09, 2009 12:20 am
Contact:

Re: How to gt the product image name

Post by s_ismail » Sat Jun 12, 2010 3:10 am

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;

       }
        {
.

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: How to gt the product image name

Post by MMIKAL » Wed Jun 16, 2010 9:48 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to gt the product image name

Post by mazhar » Wed Jun 16, 2010 9:50 am

Read following thread, something similar is been discussed here with NVeclocity code
viewtopic.php?f=44&t=7553

User avatar
s_ismail
Commander (CMDR)
Commander (CMDR)
Posts: 162
Joined: Mon Nov 09, 2009 12:20 am
Contact:

Re: How to gt the product image name

Post by s_ismail » Wed Jun 16, 2010 10:42 am

You can find exposed variables here
http://wiki.ablecommerce.com/index.php/ ... scriptlets.

Post Reply