Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Package Deal or Combo pricing


aportelli

Recommended Posts

Posted

Hi.

 

I'm trying to create a package deal with like 6 different products.

I have been able to use the following code to get the products into the shopping cart as a package.

 

<form name="cart_quantity" method="post" action="http://growgreen.com/product_info.php?action=add_products&products_id=5631,5630,4093,4040,4041,4042,4043">

<input type="hidden" name="action" value="add_products">

<input type="hidden" name="products_id" value="5631,5630,4093,4040,4041,4042,4043">

 <p>

<input type="submit" value="Order these products">

 

 

My goal with doing this by adding each item in the cart is so the customer can see what was included with the package. I know I could just create a new product that is like an ALL in one and put the description in the product field. But this would make it hard for a customer to see what they got with the package.

So I opted for putting each item in the cart.

 

I have two problems with this method.

 

 

Problem #1

Since this is using the product_id to populate the shopping cart I can't ajust the price because the shopping card reads from the database for the price?

How can I maybe lower each of the products a little bit if I wanted to if someone bought the entire package?

 

 

Problem #2

How can I give one of the products away for free. if they add all these items to the cart. I did use one of the modules to buy one get one free so that if someone buys a certain product I can add a free product to the cart but it is a ONE to ONE where the package might be like they buy six things and get 2 free or something.

 

Problem #3

I really wanted to maybe use part of the product_info.php to display the products on the package page with like a loop or something so I don't have to HARD code pricing and pictures into the package when these items might change. I think I might be able to figure this out but if someone had something to help with this that be great. Just like running through a for loop with id numbers from an array.

 

 

Where it gets a little tricky for me is that I don't understand the shopping cart php enough to be able to discount the prices in the cart and give away free things. I have searched for like a package deal thing but I have not been able to find one?

 

 

Thanks again.

Posted

Hi.

 

I'm trying to create a package deal with like 6 different products.

I have been able to use the following code to get the products into the shopping cart as a package.

 

<form name="cart_quantity" method="post" action="http://growgreen.com/product_info.php?action=add_products&products_id=5631,5630,4093,4040,4041,4042,4043">

<input type="hidden" name="action" value="add_products">

<input type="hidden" name="products_id" value="5631,5630,4093,4040,4041,4042,4043">

 <p>

<input type="submit" value="Order these products">

 

 

My goal with doing this by adding each item in the cart is so the customer can see what was included with the package. I know I could just create a new product that is like an ALL in one and put the description in the product field. But this would make it hard for a customer to see what they got with the package.

So I opted for putting each item in the cart.

 

I have two problems with this method.

 

 

Problem #1

Since this is using the product_id to populate the shopping cart I can't ajust the price because the shopping card reads from the database for the price?

How can I maybe lower each of the products a little bit if I wanted to if someone bought the entire package?

 

 

Problem #2

How can I give one of the products away for free. if they add all these items to the cart. I did use one of the modules to buy one get one free so that if someone buys a certain product I can add a free product to the cart but it is a ONE to ONE where the package might be like they buy six things and get 2 free or something.

 

Problem #3

I really wanted to maybe use part of the product_info.php to display the products on the package page with like a loop or something so I don't have to HARD code pricing and pictures into the package when these items might change. I think I might be able to figure this out but if someone had something to help with this that be great. Just like running through a for loop with id numbers from an array.

 

 

Where it gets a little tricky for me is that I don't understand the shopping cart php enough to be able to discount the prices in the cart and give away free things. I have searched for like a package deal thing but I have not been able to find one?

 

 

Thanks again.

Maybe the Bundled Products addon will do what you want.

 

I haven't tried it so I can't say how well it does/doesn't work.

 

I just know it's there.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...