ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Code to Check Login in Shopping Cart

November 27, 2012 11:31am

Subscribe [1]
  • #1 / Nov 27, 2012 11:31am

    clausont

    37 posts

    I am working on an EE site that I “inherited”. It had an old order form that was only that - a form but not a shopping cart. I have installed a shopping cart and would like to have it show the logged in users name. It won’t use any of the EE tags (ie:

    {embed="includes/.check_login"}

    ). The check login page is simply:

    {if logged_in}
    {if:else}
    {redirect='members/login'}
    {/if}

    Can someone show me the script to do this with PHP? Or Javascript?
    Thanks

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases