close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need a little guidance

Thread began 2/14/2013 10:10 pm by eric284736 | Last modified 2/15/2013 2:05 pm by eric284736 | 829 views | 3 replies

eric284736

Hi Jason,

I am in the beginning steps of setting this up. Here is the process:

A user registers for a free basic membership and that info is entered into a members table.
I have a registration date field (current Timestamp) and a regType (1 = a free membership)

Now I have a cart for them to purchase a 30, 60 or 365 day membership (regType: 30 day = 2, 60 day = 3, 365 day = 4).

There is also a profile page to update their information, but having the registration date set to current timestamp will this update if they modified their address? I want to avoid having the timestamp changed unless they have purchased a membership.

The third part of this is: expiring the membership after the allotted time. Following this post your referenced showpost.php?p=139675&postcount=6

I have one rule set:
case "Logged in to Members":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['SecurityAssist_MemberID']))?$_SESSION['SecurityAssist_MemberID']:"") ."", 2, "");
$comparisons[1] = array(TRUE, "".((isset($_SESSION['RegType']))?$_SESSION['RegType']:"") ."", 1, "1");
$comparisons[2] = array(FALSE, "".(date("Y-m-d")) ."", 5, "".(date("Y-m-d", mktime(0, 0, 0, date("m", strtotime($_SESSION['regDate'])),date("d", strtotime($_SESSION['regDate'])) + 30,date("Y", strtotime($_SESSION['MemberRegistrationDate']))))) ."");

Is this correct?

The final thing is the purchase of the membership. I have a membership cart in place. They would go to the checkout page and that would be populated based on the free membership information. So they proceed to the confirm page.

Would I have a recordset on the confirm page that filters their info by the SecurityAssist_memberID, then have an update behavior that pulls the regType from the cart and updates their membership once the order is submitted? How do I prevent that from updating if the order is declined?


thx
Eric

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...