We had a situationthere the Manufactuerid was null and this statement errored. Can you test for null valuse in the NVelocity code?
#if ($Product.ManufacturerId != 0)
<p><strong>Manufacturer:</strong> <a href="Search.aspx?m=$Product.ManufacturerId">$Product.Manufacturer.Name</a></p>
#end
Product Page and NVelocity Error
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Re: Product Page and NVelocity Error
Hello,
I don't have an answer on the null value question, however I'd like to find out how you wound up with a null value. Direct database update?
I don't have an answer on the null value question, however I'd like to find out how you wound up with a null value. Direct database update?
Re: Product Page and NVelocity Error
Create a product.
Create a manufacturer.
Assign the manufacturer to the product.
Delete the manufacturer.
Create a manufacturer.
Assign the manufacturer to the product.
Delete the manufacturer.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Re: Product Page and NVelocity Error
Hello Joe,
Must of been something added after the release you're using, I get the follow message.
So given thousands of installs have been created with the manufactureID being Null why has this not come up before?
I'm guessing custom Nvelocity code at the scriptlet level. Except in emails we don't much processing of this nature using NVelocity.
Must of been something added after the release you're using, I get the follow message.
However selecting 'none' does leave the manufacture ID as null, which is the default for most all products in our sample data.This manufacturer has one or more associated products. Indicate what manufacturer these products should be changed to when Bell is deleted.
So given thousands of installs have been created with the manufactureID being Null why has this not come up before?
I'm guessing custom Nvelocity code at the scriptlet level. Except in emails we don't much processing of this nature using NVelocity.