PHP Classes

CafePress Random Product: Display a random product from your CafePress store

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-11-22 (12 years ago) RSS 2.0 feedStarStar 37%Total: 460 All time: 5,676 This week: 1,152Up
Version License Categories  
cafepressbox 1.0Free for non-comm...Web services
Description Author  

This class will display a random product from your CafePress store

You can supply a simple template to control style, and have the output link directly to the shown product or simply to your main account.

You can cache the results so you don't have to connect to the CafePress website all the time.

Images can also be cached locally, and can be resized before caching.

Picture of Andrew Collington
  Performance   Level  
Name: Andrew Collington <contact>
Classes: 13 packages by
Country: United Kingdom United Kingdom
Age: 41
All time rank: 534 in United Kingdom United Kingdom
Week rank: 934 Down34 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Plain text file class.cafepressbox.php Class The main class file. The regular expression pattern used to parse the output from CafePress will need to be changed any time CP update their output.
Accessible without login Plain text file test.cafepressbox.php Example A simple example file.

 Version Control Unique User Downloads Download Rankings  
 0%Total:460All time:5,676
 This week:0This week:1,152Up
 User Ratings  
 All time