I know those are example URLs, but I would recommend not using "squirrelcart" in your store URL to avoid confusion between the actual "squirrelcart" installation folder. If you'd like your store in a subdirectory, I'd recommend doing something like:
http://www.example.com/store/
or
http://www.example.com/shop/
As for your question:
1. You can put Squirrelcart code on any .php page. Your index page will need to be renamed to index.php. All HTML in it now should work fine, but changing the extension to .php will allow PHP to parse it.
2. Open the page you want to add Squirrelcart code to (index.php?)
3. Add this at the very top:
PHP Code:
<?php include 'squirrelcart/pre_storefront.php' ?>
If your squirrelcart folder is in a different directory, you'll need to change that to match it's location, like this example:
PHP Code:
<?php include 'shop/squirrelcart/pre_storefront.php' ?>
4. If you want Squirrelcart's stylesheet on that page, add this inside the <head/> tag:
PHP Code:
<?php stylesheet("store.css") ?>
5. If you want other Squirrelcart code on that page (QuickTotal module, other module CSS files, etc...), add this inside the <head/> tag:
PHP Code:
<?php include $cart_isp_root.'/storefront_head.php' ?>
6. Add this directly before the closing </body> tag:
PHP Code:
<?php
// This line must go directly before your closing body tag
include $SC['cart_isp_root'].'/post_storefront.php';
?>
7. You now have everything you need in that file to be able to add additional code to call Squirrelcart functions. To show a product in detail mode, add a call to show_product_detail() where you want it to appear on that page:
PHP Code:
<?php show_product_detail(391); ?>
Set the number inside the function parenthesis to the record number of the product you want to show.