Multi-Store, store configurations, and simple script creation Project

Multi-Store, store configurations, and simple script creation Project

This is simple project, it is a based on what exist in the OPC system already.

Note:
OPC stores already exist.

Over view: (what we want)
Form processing page to handle url parameter
back end processing script
In OpenCart admin, create Custom field in Registration form-control
Add script to top of registration page.

Requirement:
1. Set Store2 to be viewed only if Session custom var is set to a special access code. If value not set, they are redirected to Login page of Store2. The purpose of this is to discourage, and block out none members from viewing Store2.
(sample URL from some other site: http://storedomain.com/vlchk.php?macs=TTN-NVD9007-254k6H)

2. Store2 to be configured to Require, Users who want to Purchase items, they would be required to be registered, and logged in, to buy.

3. Users who are members, will come from within a member site, buy simple URL with a Parameter in it.

4. This URL, with parameter would take them directly to a page in OPC, where the parameters would be extracted, and auto posted to a backside php processing script (not accessible/restricted to public.)

5. There the script, will check the first Parameter against a RegEx if it Passes, it moves on to Process 2, Else/Fails, it dies, and Redirects User to Store2 login page.

6.Process 2, It will split up Parameter string into 3 parts.
(example of Parameter value “TTN-NVD9007-254k6H”)
Part 1: “TTN-” (the values for this part(1) and Part 3 are they don’t change)
Part 2: “NVD9007” (is not static – this is the part of the string that changes )
Part 3: “-254k6H”

Create 2 Global/Session Variables, One “VLCD” the other “MVLD”
Concatenate: Part 1 and Part 3 of Parameter split, and Set as “VLCD” value. (ie… “TTN–254k6H” )
Then set “MVLD” value as Part 2 (ie… “NVD9007” )

Note: “VLCD” is used to allow visitor to view store and its Items repel none members.
“MVLD” Is just incase they choose to Register, and Purchase something.

7. The Registration form would need an added field Named “MVLD”
It will be visible in form (something like this label name MVLD:
This field is populated with the Global MVLD variable Value, and Seen on form but Set to “read only”.

Notes to Remember:
If the Global variables “VLCD” and “MVLD” are not set with values, it should Redirect them to the Store2 Login Page.

Estimate of Time:
Max time for Mid-level Dev 3hrs.

What we Provide:
Access to OpenCart
cPanel Test copy of site
cPanel access To actual site

Dead Line: Date
Upon Acceptance of this project the set Dead line Timer will begin, after the Project is funded and access info is uploaded.

Start date: (Day and time of funding after agreement to project)
End Date: (3 Days 72 hrs from agreement to project)

Share the Post:

Related Posts