New Zenner
- Join Date:
- Apr 2011
- Posts:
- 1
- Plugin Contributions:
- 0
Display Multiple Prices on Product
I've looked in the Add-Ons at the price Add-Ons, and I can't seem to find something to fit my needs, and was hoping someone could point me in the direction of something, or help me out.
I need to display two prices for a product, and allow someone to add the product to the cart with either price.
We sell art work, and we sell it two ways. You can buy the original, and no reproductions will be made, or they can buy reproductions, and then the original will no longer be sold. (I've notice a lot of web template sites use a similar scheme)
I ran a osCommerce site many years ago, so I can figure how to add the price to the database, and display it on the product screen. However, I'm at a loss on how to display an Add To Cart for each price and get them to work correctly.
Here's some quasi-code I figure would go into the product page. Where would it go in ZenCart? In one of the files in the template folders, or one of the main files? ZC has me totally screwed up when it comes to that.
$qry = SUM(SELECT products_quantity FROM orders_products WHERE products_id = $pid)
if $qry < 1
{
Original Art Price: $product['original_art_price']
-= Display Add To Cart Image/Link =-
}
-= Normal Price and Add To Cart Stuff
}