PHP script that utilises cookies to achieve a 'Recently Viewed Products' effect.
- or -
Post a project like this3772
£50(approx. $63)
- Posted:
- Proposals: 2
- Remote
- #382503
- Awarded
Description
Experience Level: Intermediate
General information for the website: Concept site that would provide security products to the industrial sector
Description of requirements/features: PHP script that utilises COOKIES to achieve the following effect:
1. User visits page.
2. Unique 'product_id', 'product_name and 'product_image' are stored into the cookie.
⁃ This is repeated for a maximum of 8 pages.
⁃ Once 8 pages are reached, the oldest page is removed from the cookie each time a new page is added.
3. The script must set $product_id, $product_title, and $product_image with the following values:
⁃ $product_id = perch_content('Product ID');
⁃ $product_title = perch_content('Product Name');
⁃ $product_image = perch_content('Product Image');
4. The script must keep the most recently visited page as the first it outputs at all times.
⁃ i.e. If a user visits pages in this order: page A, page B, Page C, Page A, then the script will output as follows:
⁃ Page A, Page C, Page B
⁃ N.B. We do not require the script to output any given page more than once.
Displaying the data:
1. We also require a foreach loop that will output each item in the array in the HTML format attached as a sample.
Thanks in advance!
Extra notes: This job will be under the strictest confidentiality, we would not permit disclosure of your involvement as a third party to our client.
We will also require a written notice of your copyright transfer once the code is complete.
Description of requirements/features: PHP script that utilises COOKIES to achieve the following effect:
1. User visits page.
2. Unique 'product_id', 'product_name and 'product_image' are stored into the cookie.
⁃ This is repeated for a maximum of 8 pages.
⁃ Once 8 pages are reached, the oldest page is removed from the cookie each time a new page is added.
3. The script must set $product_id, $product_title, and $product_image with the following values:
⁃ $product_id = perch_content('Product ID');
⁃ $product_title = perch_content('Product Name');
⁃ $product_image = perch_content('Product Image');
4. The script must keep the most recently visited page as the first it outputs at all times.
⁃ i.e. If a user visits pages in this order: page A, page B, Page C, Page A, then the script will output as follows:
⁃ Page A, Page C, Page B
⁃ N.B. We do not require the script to output any given page more than once.
Displaying the data:
1. We also require a foreach loop that will output each item in the array in the HTML format attached as a sample.
Thanks in advance!
Extra notes: This job will be under the strictest confidentiality, we would not permit disclosure of your involvement as a third party to our client.
We will also require a written notice of your copyright transfer once the code is complete.
Mark U.
100% (1)Projects Completed
5
Freelancers worked with
5
Projects awarded
20%
Last project
19 May 2014
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies