Hi Everyone,
We are implementing a shopping cart script into a Freeway Document. I am trying to add two
Below I have included the code Freeway is outputting from my test. The Welcome, Contact and View Cart tag were inputed regularly. I then returned to a new line and inserted a Markup Item. I inserted my PHP code which adds the two additional links if user is logged in. As you can see Freeway is creating a
[code]
<!--Typed In Regularly-->
<li class="fwFirstChild fwNavItem"><a href="#" class="fwCurrent">Welcome</a></li>
<li class="fwNavItem"><a href="contact.php">Contact</a></li>
<li class="fwNavItem"><a href="viewcart.php?ac=shoppingCart">View Cart</a></li>
<!--End Of Typed In Regularly-->
<!--Freeway Created List Item-->
<li class="fwLastChild fwNavItem"><a href="#" style="cursor:default">
<!--Code I Put In Markup Item-->
<?php
if ($_REQUEST['ac'] != 'pastOrders' && isClientLogged()) {
?>
<li class="fwFirstChild fwNavItem"><a href="general.php?ac=pastOrders" title="<?php echo $SC_LANG['nav_orders'];?>">Past Orders</a></li>
<?php
}
if (isClientLogged()) {
?>
<li class="fwFirstChild fwNavItem"><a href="<?php echo _SELF_;?>?ac=logout" title="<?php echo $SC_LANG['nav_logout'];?>">Logout</a></li>
<?php
}
?>
<!--End On Code In Markup Item-->
</a></li>
<!--End Of Freeway Created List Item-->
</ul>
Thank you for your help,
Team SDA
Christian
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options