I would like to display the FEU login if the user is not logged in and display the orders first step if the user is logged in.
Before when used Orders module version 1.9.1 there was no problem to do this, but since i upgrade all modules (new Orders module to version 1.10.2)
Below you see the template i use, no problem with that in Orders 1.9.1 but in Orders 1.10.2 i can not get it working.
I also tried to use CustomContent with {if $ccuser->loggedin()} , that is not a good solution because then i always get the Orders first step above the next step.
So how i get the {if $logged_in} make to work, or do i need to use another call
this is how it used to work:
{* billing form template *}
{* this is a frontend template *}
{if $logged_in}
{$Orders->Lang('order_processing')}:
{if isset($status)}
{* there is an error of some type.... you can check the $status variable for the type of error *}
{foreach from=$errors item='error'}
{$error}
{/foreach}
{/if}
{$formstart}
{$Orders->Lang('billing_info')}:
{$Orders->Lang('company')}: {$input_billing_company}
{$Orders->Lang('first_name')}:* {$input_billing_first_name}
{$Orders->Lang('last_name')}:* {$input_billing_last_name}
{$Orders->Lang('address1')}:* {$input_billing_address1}
{$Orders->Lang('address2')}: {$input_billing_address2}
{$Orders->Lang('city')}:* {$input_billing_city}
{$Orders->Lang('state/province')}:* {$input_billing_state}
{$Orders->Lang('postal')}:* {$input_billing_postal}
{$Orders->Lang('country')}:* {$input_billing_country}
{$Orders->Lang('phone')}: {$input_billing_phone}
{$Orders->Lang('fax')}: {$input_billing_fax}
{$Orders->Lang('email')}:* {$input_billing_email}
{* if you do not need shipping information, just hide these fields using css *}
{foreach from=$shipping_inputs item='one' name='shippments'}
{assign var='addr' value=$one.data->get_shipping_address()}
{* this next part is a bit hackish *}
{capture assign='name'}{$one.data->get_name()}{/capture}
{if $smarty.foreach.total == 1}{$Orders->Lang('shipping_info_if_different')}:{else}{$Orders->Lang('shipping_info_for')}: {$name}:{/if}
{$Orders->Lang('company')}: {$one.input_company}
{$Orders->Lang('first_name')}:* {$one.input_first_name}
{$Orders->Lang('last_name')}:* {$one.input_last_name}
{$Orders->Lang('address1')}:* {$one.input_address1}
{$Orders->Lang('address2')}: {$one.input_address2}
{$Orders->Lang('city')}:* {$one.input_city}
{$Orders->Lang('state/province')}:* {$one.input_state}
{$Orders->Lang('postal')}:* {$one.input_postal}
{$Orders->Lang('country')}:* {$one.input_country}
{$Orders->Lang('phone')}: {$one.input_phone}
{$Orders->Lang('fax')}: {$one.input_fax}
{$Orders->Lang('email')}:* {$one.input_email}
{/foreach}
{$Orders->Lang('order_notes')}:
{$Orders->Lang('info_order_notes')}
{$order_notes}
Lang('next')}"/>
{$formend}
{else}
{FrontEndUsers}
{/if}
this is my cmsms info :
------------------------
CMSMS 1.8.2
CMSMailer 2.0
FileManager 1.0.2
MenuManager 1.6.5
ModuleManager 1.4
News 2.10.6
nuSOAP 1.0.2
Printing 1.1.0
Search 1.6.5
ThemeManager 1.1.1
TinyMCE 2.7.3
CGSimpleSmarty 1.4.5
CGExtensions 1.19.6
CGEcommerceBase 1.2.2
FrontEndUsers 1.12.2
SelfRegistration 1.6.5
Products 2.8.7
CGPaymentGatewayBase 1.0.9
Orders 1.10.2
Cart 1.7.2
PaypalGateway 2.2
CustomContent 1.7.3
FRTaxes 1.1.1
PriceBasedShipping 1.1
thanks for your help
kind regards,
Peter