buy the set

Zen Cart Buy The Set for Combination Discounts

Buy the Set is a Zen Cart™ extension which allows your customers to purchase all items in a Combination Discounts grouping with a single click. The items must be products (specified with PROD) which do not have attributes.

Relevance: Zen Cart™ 1.3.5 and forward, with Combination Discounts

Cost: $30 when purchased with Combination Discounts; $90 otherwise. Buy Now!

Support Thread: My commercial software is not supported on the Zen Cart forum. Please email me questions instead.

Installation: click here

FAQ: click here

See it Live: Go to product 9 in my demo shop you will see the cross-sell message for two other products, along with a button that allows all three products to be purchased with a single click.

The code that created this Combination Discounts linkage was:
$this->add_linkage(PROD,12,1,PROD,9,1,PROD,18,1,"$", 30);


If you add all these products to your cart, you will be able to see the discount in your cart because of Discount Preview


Overview:

This product complements my Combination Discounts extension by allowing you to have a single button that adds all the items to the cart. The button is displayed on the product info page for products which do not have attributes and which are linked using an add_linkage() statement with only PROD purchases specified.

Product Info Page displaying Buy The Set

Combination Discounts with Buy The Set

Restrictions

  • The linkage must be use PROD purchases only; linkages with CAT or PRICE will not display a "buy the set" button.
  • The products in the linkage must not have attributes.
  • The marketing text must be at the very top (recommended) or the very bottom of the page. Details are provided in the README file.
  • Buy The Set is for Combination Discounts only; it does not understand Better Together linkages. For Better Together, see Buy Both Now.
Note that Buy The Set works best with Discount Preview. This way, customers can see their discount on the shopping cart page instead of having to wait for the Checkout Payment page.

Installation Instructions:

  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Copy the contents of the unzipped folder to the root directory of your shop.
    The names of these files reflect a template name of "custom." If you are using a different template name, please change file paths using "custom" to use your template name instead.
  3. Login to admin and in Modules->Order Total you will see 'Combination Discounts' listed along with all the other modules available.
  4. Click on 'Combination Discounts' to highlight the module and click on 'Install'
  5. Decide on the discounts you wish to use. The easiest way to do this is to open a shopping cart in another window, and just start adding discounts to the setup() method of includes/modules/order_total/ot_combination_discounts.php. The discounts are shown on the second step of checkout in "Your Total" under "Combination Discounts."
  6. If you wish, follow the guidelines in marketing to advertise your discounts.

Installation Problems:

The most common installation problems for this module are as follows:
  1. Forgetting to put the marketing text either before or after the <form> tag. The marketing text cannot be placed arbitrarily on the page with Buy The Set; it must be before or after the form begins or ends. See the README that comes with the module.
  2. Trying to use Buy The Set on items with attributes. Buy The Set only works on all-product linkages with no attributes.
If you are having trouble installing this module, you should also refer to my Guide to Mod Installation on Zen Cart. I'm also happy to install most of my mods for a fee.

FAQ

Q: Why doesn't Buy The Set work with products with attributes?
A: Buy The Set automatically adds the items in the discount to the cart. You can't just add something with attributes to the cart automatically because you don't know the correct attribute settings; there are as many possibilities as the arithmatic product of the number of options. There's no way to know which one is right. So then the customer would have to go in and modify that item and add a new one with the correct attributes (because you can't edit an item in the cart), and then delete the old one. In addition, if there was javascript validation of the attributes, this would be sidestepped if I allowed Buy The Set to automatically add items to the cart. So given all these complications, I decided to not allow it and clearly advertise this fact.

I charge a fee of $30 for Buy The Set when purchased with Combination Discounts, and $90 otherwise. The fee covers software only; installation is extra if you require help.



Want more Zen Cart?     Tips and Tricks     Contributions     Extensions     Custom Software     Newsletter

Terms | Privacy | SiteMap | Newsletter | Contact Me | Contents © 2003-2010 That Software Guy, Inc.
Zen Cart Project Home Page | Zen Cart Forum | Zen Cart™ is © Zen Ventures, LLC.