Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

webshop

Archived
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    G

webshop's Achievements

  1. Hell YEAH i think i've just got it working the way I want it I've inseted the following code into the checkout_succes.php page: if ($customer_id == 0) { tep_session_unregister('pwa_array_customer'); tep_session_unregister('pwa_array_address'); tep_session_unregister('pwa_array_shipping'); tep_session_unregister('customer_id'); tep_session_unregister('customer_default_address_id'); tep_session_unregister('customer_first_name'); tep_session_unregister('customer_country_id'); tep_session_unregister('customer_zone_id'); tep_session_unregister('comments'); tep_session_unregister('recently_viewed'); $cart->reset(); } and now the PWA user is logged off after the purchase. Now I edited my column_left.php with: if (tep_session_is_registered('pwa_array_customer')) { } else { include(DIR_WS_BOXES . 'memberlogin.php'); } this will disable the loginbox while PWA user is in his checkout if (tep_session_is_registered('pwa_array_customer')) { } else { include(DIR_WS_BOXES . 'memberlogin.php'); } Quite clean I think so Can anybody tell me whats the differecnce between ($customer_id == 0) and (tep_session_is_registered('pwa_array_customer'))
  2. I think I've found a security risk in this contribution. My shop is currently in development and has already around 15 contributions in it. I really want to purchase without account to work correctly before I'm going to use it in my store. Here my problem: I have a login box where registered users can login and check their account and order history. Now I found out that if somebody buys a product using purchase without account he actually is 'logged in' because in my login box I can't see the login fields but see welcome:(empty), my account and Logoff. (if I clink on any I go to shopping cart or checkout depending what?s in my cart) Off course this is not correct because if the somebody clicks checkout now after he made an order he doesn't see the login, create account or purchase without account. This means I have to figure out something that will 'logoff' only the purchase without account user at the purchase successfully page. Could somebody please help me getting this done. I think it should be something in the checkout_succes.php like if (tep_session_is_registered('pwa_array_customer')) { HERE THE CODE TO LOGOFF } any help would be awesome... G
  3. Hi All, I installed this contribution and it works fine! I want to costumize it to my needs but after 2 days working i do not get the result I want... If the page shows 2 or 3 products it will display center. I want that the script makes 2 extra <td> with 1 product and 1 extra <td> when 2 products are shown on the page (so I alwas have 3 columns). By doing this the products will always align left en not center. Can anyone please help me with this? Thanks in advance...
×
×
  • Create New...