I am having difficulty figuring how to display product data in a scriptlet using nVelocity variables. I understand the concept and can get the ones you list in the documentation to show up just fine.
How do I figure out what other variables are available on a particular page?
I looked in the programmer.pdf you guys reference, but was unable to get it to work.
Example, on the product page, I assume we can pull in the value from a custom Merchant Field using an nVelocity variable. Looked at the "Product Object" chapter and couldn't see how the examples there map to nVelocity variables.
Thanks.
Displaying data using nVelocity variables
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Me too!nfortune wrote:Programmer.pdf...?? I would like to obtain a copy as well if it it available..
That must be for the AC55 product, because AC7 has no equivalent reference. We will have a reference put together as soon as beta 2 is completed. This would display all merchant fields:
#foreach($tf in $Product.TemplateFields)
#if ($tf.InputField.IsMerchantField)
${tf.InputField.Name}: $tf.InputValue<br>
#end
#end
Hopefully that will get you in the right direction until a more comprehensive list of properties can be provided.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Hello Will,
It's very rough, however here's the API reference guide. It should get your Nvelocity variable questions handled.
viewtopic.php?t=5511
It's very rough, however here's the API reference guide. It should get your Nvelocity variable questions handled.
viewtopic.php?t=5511
Thanks -- this really helpful.Logan Rhodehamel wrote:Me too!nfortune wrote:Programmer.pdf...?? I would like to obtain a copy as well if it it available..
That must be for the AC55 product, because AC7 has no equivalent reference. We will have a reference put together as soon as beta 2 is completed. This would display all merchant fields:
#foreach($tf in $Product.TemplateFields)
#if ($tf.InputField.IsMerchantField)
${tf.InputField.Name}: $tf.InputValue<br>
#end
#end
Hopefully that will get you in the right direction until a more comprehensive list of properties can be provided.