Login  Register

Re: Users - Newbie q. on FTL

Posted by Jacopo Cappellato on Dec 10, 2005; 9:44am
URL: http://ofbiz.116.s1.nabble.com/Users-Newbie-q-on-FTL-tp136694p136696.html

Hi Charles,

I'd start from the screen definition for the "EditProductStorePaySetup"
screen that is located in:

\ofbiz\applications\product\widget\catalog\StoreScreens.xml

Here you'll see that the script:

product/webapp/catalog/WEB-INF/actions/store/EditProductStorePaySetup.bsh

is called to prepare data for the ftl template.

Hope this helps,

Jacopo



Charles Johnson wrote:

> At the beginning of
> \ofbiz\applications\product\webapp\catalog\store\EditProductStorePaySetup.ftl,
> there is the following code.
> I'm wondering where 'paymentSettings' is coming from? I assume something
> like from the context, having been put there. But how and where?
>
>     <#list paymentSettings as setting>
>       <#assign payMeth = setting.getRelatedOne("PaymentMethodType")>
>       <#assign enum = setting.getRelatedOne("Enumeration")>      
>       <tr>                  
>         <td><div
> class="tabletext">${payMeth.get("description",locale)}</div></td>
>         <td><div
> class="tabletext">${enum.get("description",locale)}</div></td>
>
> CJ
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users