osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Purchase Without Account

This is a discussion on Purchase Without Account within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This is a simple version.. probably can be improved but for a quick fix untill someone pro comes along, this ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 12-17-2007, 08:01 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,100
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Purchase Without Account

This is a simple version.. probably can be improved but for a quick fix untill someone pro comes along, this should help you if customers who purchased using PWA can see each others orders / addresses etc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Installation:

BACKUP!!

checkout_sucess.php

FIND: require('includes/application_top.php');
BELOW ADD: include('includes/orderciddbupdate.php');



admin/orders.php

FIND: if ($orders['customers_id']==0) $orders['customers_name'] = '!! ' . $orders['customers_name'];
BELOW ADD: if ($orders['customers_id']==-1) $orders['customers_name'] = '!!+ ' . $orders['customers_name'];



UPLOAD orderciddbupdate.php to catalog/includes/




What does this do?
Now, when a customer reachs the Success Page, a database query will be performed to change all customer ID's in
the database that are set to "0" and change them to "-1".

The customer_id 0 is the guest ID, so the customer is classed as a guest throughout the checkout process untill
the end, where at the last page checkout_sucess.php it will update the customer_id to -1, so its no longer a
visible order and since the customer is still a guest (0) they cannot view orders which have a different
customer_id numbers (which in this case is now -1)

The orders can still be viewed in the Admin panel etc, everything is still normal :)

Legend:
!!+ Means the order is from a customer who hasn't registered and has the -1 ID (Hidden ID)
!! Means the order is from a customer who hasn't registered, but for some reason still has the 0 ID (Visible ID)

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Purchase Without Account michael_s New osCommerce Contributions 0 09-24-2007 06:14 AM
Purchase Without Account michael_s New osCommerce Contributions 0 02-08-2007 09:50 AM
Purchase Without Account michael_s New osCommerce Contributions 0 01-31-2007 11:00 AM
Purchase Without Account michael_s New osCommerce Contributions 0 01-31-2007 01:50 AM
purchase without account jloyzaga osCMax v1.7 Discussion 5 09-21-2003 09:47 AM


All times are GMT -8. The time now is 08:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax