Catalog item not working in portal

Tim Saunders
Tera Guru

I created a catalog item that works fine in the standard GUI but fails in the portal. The fields, UI actions, and clients scripts all behave as expected but the screen freezes when I select Order Now or Add to Cart. I did manage to find an error: "could not find script to run for this action" but I don't know what specific script/action it's referring to. I haven't made any changes to any core items (scripts, forms, etc.) so I'm not sure what the problem is. Any advice/direction would be appreciated.

1 ACCEPTED SOLUTION

Tim Saunders
Tera Guru

Rookie javascript mistake. Although I use getIntValue for each box and then add the numbers I was writing a number into the 'total' field when setValue clearly calls for a String... Once I added a step to convert the value into a string the item works properly.

View solution in original post

11 REPLIES 11

Tim Saunders
Tera Guru

Not much to see, I'm afraid. The script does work, in the sense that it populates the total and it does not interfere with the Buy Now or Add to Cart methods in the UI; this problem is unique to the portal.

 

find_real_file.png

find_real_file.png

 

 

Tim Saunders
Tera Guru

Rookie javascript mistake. Although I use getIntValue for each box and then add the numbers I was writing a number into the 'total' field when setValue clearly calls for a String... Once I added a step to convert the value into a string the item works properly.