PDA

View Full Version : Custom Field tag not working


Tony
06-08-06, 06:34 AM
I am working on adding an auto-resizing larger image popup to the my products page, and have run into a problem I can't seem to get past.

I cannot get the custom field to return a value. I've triple checked that LgImg is a valid code for a custom field, and that the product I am testing on has that custom field populated. But, when I actually load a page with this code,

<a href="&mvt:product:customfield_values:customfields:LgImg;" onclick="return popImage('&mvt:product:customfield_values:customfields:LgImg; ','CharmingShoppe Product Zoom');"><font size="-2">Click here for larger image</font>

This code, generates html that looks like this:

<a href="" onclick="return popImage('','CharmingShoppe Product Zoom');"><font size="-2">Click here for larger image</font></a>

The LgImg value should be returning a value that looks like this: largeimage/4003432.jpg. Instead, I am getting a NULL value back.

Am I doing something wrong here? I am using two other custom fields on this same page, and it is working fine, so I am confident that my syntax is correct, but this has me ripping my hair out.

Tony

Tony
06-08-06, 07:09 AM
To add to my notes, I also tried this with a LgImg value that did not contain a '/' value. I found the discussion regarding the parsing errors, and was concerned that might be the issue. But, that didn't fix it.

Tongo
06-08-06, 04:31 PM
Don't know if this is the case, but sometimes we have had to check the custom field in "point and click mode" before it starts working. Copy out your product display code and save it somewhere, switch to "point and click" mode. check the field you want to use and update. Go back to advanced mode and paste your code back in and update.

By the way, this is in the Product display layout tab of the PROD page.

That usually does the trick.

Tony
06-08-06, 04:58 PM
Thank you, thank you, thank you!!!!!!

As obvious as it is, I totally forgot about that. And, now, with a couple of other code corrections, it is working beautifully.

I'll look at putting together the code I used to build this, and share it here.