Change "storeid" into your store id Chage that URL into the actual URL to the file you created in step 2 4. Open it in your browser, and shop away. Notes: This allows for people like me, that have 4 or 5 stores to use one simple include file to allow for multiple storefronts without having to mess with all the PHP coding inside their pages. I also changed the "Add To Cart" form to close its little window when you select "Keep Shopping". This was just a visual thing for my tastes. Using the name of store.php tends to be a better choice than store.inc. The above is just a more secure solution as the source of this page will be kept hidden. This is a consideration for all included files. */ function open_store($storeid, $local) { global $target; global $QUERY_STRING; $UseCafePressStyleSheet = 1; //Set to 0 to use your own stylesheet if (!isset($target) || $target == "store") { $get = "store.aspx?s=$storeid"; // this is a message to appear on the item selection screen echo "
Click on any item to view its details.

\n"; } else { $target = preg_replace("/http:\/\/www.cafeshops.com\/cp\//", "", $target); $qstr = $QUERY_STRING; $qstr = preg_replace("/target=$target&/","",$qstr); $get = $target.".aspx?".$qstr; echo "Please select the quantity, size, and/or color that you desire, then click "Add to Cart". Your item(s) will be added to you shopping cart in a new window. If you would like to select more items, click the link below. If you are finished, click the \"Check Out\" button in the shopping cart window.

ALL orders are processed via a SECURE and ENCRYPTED SSL connection.


"; } $fp = @fopen("http://www.cafeshops.com/cp/".$get,"r"); $countdown = 0; $oncountdown = 0; $out = 0; while (!feof($fp)) { $line = fgets($fp,4096); $line = stripslashes($line); if ($UseCafePressStyleSheet == 1) { if (preg_match("/stylesheet/i",$line)) { $out = 1; } } if (preg_match("/