You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "risalitim@gmail.com" <ri...@gmail.com> on 2008/10/08 22:20:35 UTC
Error on ecommerce using one page checkout
Hi to all,
I have tried now with last revision of trunk the ecommerce one page
checkout and it gives to me the following error:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://ecommerce/widget/OrderScreens.xml#OnePageCheckout]:
groovy.lang.MissingPropertyException: No such property:
shipToContactMechId for class: EditBillingAddress (No such property:
shipToContactMechId for class: EditBillingAddress)
it is probably due to the following lines into EditBillingAddress.groovy
if (shipToContactMechId) {
if (billToContactMechId &&
billToContactMechId.equals(shipToContactMechId)) {
context.put("useShippingAddressForBilling", "Y");
}
}
I'm not sure but probably it can be fixed using the following lines.
if (context.shipToContactMechId) {
if (billToContactMechId &&
billToContactMechId.equals(context.shipToContactMechId)) {
context.put("useShippingAddressForBilling", "Y");
}
}
Thanks
Marco
Re: Error on ecommerce using one page checkout
Posted by Scott Gray <le...@gmail.com>.
Hi Marco
That will probably work but you'll have to try moving
EditBillingAddress.groovy to below EditShippingAddress.groovy in the
screen definitions otherwise context.shipToContactMechId will always
return null.
Regards
Scott
2008/10/9 risalitim@gmail.com <ri...@gmail.com>:
> Hi to all,
>
> I have tried now with last revision of trunk the ecommerce one page checkout
> and it gives to me the following error:
>
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://ecommerce/widget/OrderScreens.xml#OnePageCheckout]:
> groovy.lang.MissingPropertyException: No such property: shipToContactMechId
> for class: EditBillingAddress (No such property: shipToContactMechId for
> class: EditBillingAddress)
>
> it is probably due to the following lines into EditBillingAddress.groovy
>
> if (shipToContactMechId) {
> if (billToContactMechId &&
> billToContactMechId.equals(shipToContactMechId)) {
> context.put("useShippingAddressForBilling", "Y");
> }
> }
>
> I'm not sure but probably it can be fixed using the following lines.
>
> if (context.shipToContactMechId) {
> if (billToContactMechId &&
> billToContactMechId.equals(context.shipToContactMechId)) {
> context.put("useShippingAddressForBilling", "Y");
> }
> }
>
> Thanks
> Marco
>
>