Robert's last question is CF related. Although the answer is likely "no".
Dusty _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mason Sent: Thursday, November 30, 2006 5:35 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit Ok, I'll be the list police :) This isn't a cf related question, please discuss this off list or try the ablecommerce support list. John [EMAIL PROTECTED] _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Reil Sent: Thursday, November 30, 2006 5:22 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit Well here is where the plot thickens. After digging a bit deeper I noted in one of my earlier emails that the column is not called PartNumber so $orderitem.getPartNumber would not work. I just tried it incase and it did not work. The table is the same but the column is called "Vend_Number" Also this column was manually added to the table as the Ablecommerce cart did not have that column. So if it is a Java Class it wont know how to find it and I presume I can not get into the classes. So I wonder if CF can call it by itself? Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852 www.motorcyclecarbs.com _____ From: Dusty Hale [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 4:56 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit Just for my own curiosity, Did you try adding the "()" like Misha suggested? So the call would be like $orderitem.getPartNumber() instead of $orderitem.getPartNumber . Also another thought is that maybe the getPartNumber() method is not supported by the "orderitem" object. Maybe there is another object you should be using (like a "part" object). Don't know if this thought helps or hinders but may be worth a shot. Dusty _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Reil Sent: Thursday, November 30, 2006 4:17 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit Third time trying to send...... It probably is. Again this is a CF app on top of a Java app. I would try digging into this help doc they have called JavaDocs. But I don't know what it is and how to dive into it to figure it out. Heres a link for the Java BRAVE! http://motorcyclecarbs.com/remove.me/javadoc/index.html After some more digging: I have found this doc at http://help.ablecommerce.com/faqs/ablecommerce_55_cfmx/developer/email_templ ates.htm ----------------------- Email Templates in AbleCommerce 5.5 CFMX Merchants can fully customize the customer notification email. It can include plain text, static HTML, and even dynamic information with the help of the full fledged template engine. Velocity (http://jakarta.apache.org/velocity/) is used as the template engine to process the email templates. Templates are written in velocity template language (VTL), which is extremely simple and powerful. In a velocity template, certain objects put in the velocity context, can be accessed directly in a straight forward manner. For example if a 'Store' object, named "store" is available in the context, then using $store.getName() we will get the name of the store. Similarly any method available in the 'Store' object can be called directly. While writing templates for email messages in AbleCommerce, certain objects are automatically made available to the context, depending on the type of event. The following table illustrates the objects and their availability for different events. Email Notification Objects available for Events ----------- I list here only one that seems relevant. OBJECT: $orderItem TYPE: com.ablecommerce.ac5.order.OrderItem AVAILABLE TO: ORDER_ITEM_ADDED ORDER_ITEM_CHANGED ORDER_ITEM_MOVED ORDER_ITEM_REMOVED ORDER_ITEM_RETURNED --------------------------------- Ideally I want to be able to pull data from: Table: Products Column: Vend_number Can I mix these languages to get that data? Or will there be a lost token somewhere? Can I run a separate token for CF? Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852 www.motorcyclecarbs.com _____ From: Justin Haygood [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 2:53 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit That looks awfully a lot like Java Server Pages to me From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dusty Hale Sent: Thursday, November 30, 2006 2:36 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] First try at a real CF edit Are you sure it is a CF File? This doesn't look like normal tag based cf code . _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Reil Sent: Thursday, November 30, 2006 2:00 PM To: discussion@acfug.org Subject: [ACFUG Discuss] First try at a real CF edit I am sorry if this question seems so incredibly simple but I am lost as to what to do. I need to make an edit to a CF file. It has listed in some cells that create an email that is an order sheet for us from an AbleCommerce cart. [code] <td class="Products"> </td> <td class="Products"> $orderItem.getSKU()</td> <td class="Products"> $orderItem.getName()<br><font size=2><strong>$orderItem.getLineMessage()</strong></font></td> <td class="Products" align=right> $LocaleUtils.formatCurrency($store,$orderItem.getUnitPrice(),"<br>",true)</t d> <td class="Products" align=center> <div align="center">$orderItem.getQuantity()</div></td> [/code] The question is: That I need the equivalent of a " <td class="Products"> $orderitem.getPartNumber" </td> For the first row to replace the <td class="Products"> </td> However when I revise that line of code to: <td class="Products"> $orderitem.getPartNumber" </td> I get: $orderitem.getPartNumber? inside the cell output. What is happening? Why is it happening? How do I fix it? This app is CF on top of a Java app. I wonder if the $orderitem.getPartNumber" is a Java command and I should be doing this some other way? Any and all help would be appreciated. Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852 <http://www.motorcyclecarbs.com> www.motorcyclecarbs.com ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------