|
osCommerce! Just a few lines of PHP code added to product_info.php is all it takes.
If your site uses osCommerce and you need to add a gift registry, Registry Valet gift registry software is what you have been looking for! Registry Valet adds on to osCommerce quickly and easily - we even supply the code that you can copy-and-paste right into product_info.php.
Here is an example of how the code looks in your product_info.php page:
<?php
$path = $_GET['cPath'];
$product = $_GET['products_id'];
$addtocart = "<form name=cart_quantity action=***PLACE YOUR FULL URL HERE***/product_info.php?cPath=$path&products_id=$product&action=add_product method=post><input type=hidden name=products_id value=$product><input type=submit value='Add to Cart'></form>"
?>
<?php $encoded = urlencode($addtocart);?>
<p>
<form action="http://apps.agenne.com/Registry.cfm" method="post">
<input type="hidden" name="addtocart" value="<?php echo $encoded ?>">
<input type="hidden" name="cid" value="315">
<input type="hidden" name="op" value="add">
<input type="hidden" name="item_desc" value="<?php echo $product_info['products_name'] ?>">
<input type="hidden" name="item_price" value="<?php echo $product_info['products_price'] ?>">
<input type="hidden" name="item_id" value="<?php echo $product ?>">
If your products have options such as size or color, there is an additional block of code that goes here. You can find that in the sample product_info.php file below.
<input type="submit" value="Add to Registry">
</form>
For a full copy of product_info.php (in zip format), right-click the link below and choose "Save target as...". Just unzip this file and you will see our code already added to the page with comments included. If you have any questions about adding Registry Valet to your osCommerce installation, our support team is available with free and unlimited technical assistance to help you get up and running quickly.
Download product_info.php
|