[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Checkout & [if session ship_message]
> I've got an other problem and i need some help.
> In fact, i'm in checkout.html and i want not to display the
> "Place Order"
> button if a ship_message is displayed.
>
> Quite easy to explain but not to do :(
>
> I try something like
> [if value ship_message]
> ....
>
> or
> [if session ship_message]
> ...
>
> But don't work :(.
>
> One thing surprising is that the [if session ship_message] is
> working in the
> middle of the page with code like this :
> [if session ship_message]
> <tr>
> <td class="contentbar1" > </td>
> <td colspan="3" class="contentbar1">
> [data session ship_message]
> <br>
> </td>
> </tr>
> [/if]
>
> But something like that :
> [if !session ship_message]
>
> [button
> name="mv_click"
> src="__THEME__/placeorder.gif"
> text="Place Order"
> hidetext=1
> form=checkout
> ]
> mv_todo=submit
> mv_successpage=../special_pages/paybox
> [/button]
>
> [else]
> <b>Error !</b>
> [/else]
> [/if]
Something I do to make sure an if is even working in the opposite before
I try to use shortcuts is this:
[if session ship_message]
<b>Error !</b>
[else]
[button
name="mv_click"
src="__THEME__/placeorder.gif"
text="Place Order"
hidetext=1
form=checkout
]
mv_todo=submit
mv_successpage=../special_pages/paybox
[/button]
[/else]
[/if]
HTH
Paul