Downloads
This module now has a Project Page on Drupal.org. I will be adding releases asap.
Allows merchants to associate multiple products together, and offer related products before checkout. When a user checks out with a product or products that don't currently have any other products associated with it, or the number of associated products (minus the items in their cart) is too low, they will instead get a list of random products from the catalog.
To get products "related" to each other, you need to Edit the product and scroll to the bottom, where you'll find a new "Related products" select list. This is a selection of all titles in your catalog (that are published and of the node type 'product'). Choose your products and submit the changes to make them related.
A new admin area is created under /admin/store/products/upsell where you can see what products are currently associated with each other. As of 1.1, an admin area is also at /admin/store/settings/upsell where you can adjust the Customer messages as well as Node Type Associations.
This module also includes a CSS file which is added to your site whenever the block is shown.
To see it in action, go to www.rifftrax.com and add an item to your cart, or view the attached screenshots.
TODO:
- "discover" related products automatically / associate products after order submit
- show Add to Cart form buttons instead of Cart Links (make uc_cart_links not a dependency)
Version history:
Now requires Imagecache2
1.7 - Wrapped "Add to cart" and "Buy now" links in a t() function. Also added a major functionality addition: When you add Products A, B, and C to product D's list of Related Products, products A, B, and C also receive Product D as a related product. This is a reciprocal relationship.
UPDATE 2/17/2009 - Discovered an issue where reciprocal products were having their relationships destroyed, and updated with only the node id of the currently-editing product. This is fixed in the most recent 1.7 release.
1.6.1 - Bug fix
1.6 - Imagecache link added to block; empty arrays given conditional to avoid Watchdog errors.
1.5 - Fixed issue where Related Products were not being found.
- - Removed hard-coded "thumbnail" link; replaced with themed imagecache thumbnail image.
1.4 - BIG UPDATE! Settings are stored in a $GLOBAL, and the module now includes a Related Products block you can place elsewhere in the site. Thanks to bemson!
1.3.2/1 - Minor bug fixes.
1.3 Thanks to user bemson, many Drupal-related fixes including proper usage of l() and theme functions. Thanks, bemson! For his changes please see this comment.
1.2 - Fixes array errors, adds more configuration options, and adds a CSS file.
- - PLEASE NOTE: This version changes variable names, so keep in mind that you will need to go to /admin/store/settings/products/upsell again and reset your configuration, including customer messages. This is to avoid namespace collisions.
- - Other changes include:
- - - Configure how many products to show at checkout (you'll need to edit the Width attribute in uc_upsell.css)
- - - Configure whether to show random products if the number of related products found is too low.
1.1.1 - Fixes a MySQL error
1.1 - Updates, tweaks, and admin additions.
- - There is now a page at /admin/store/settings/products/upsell, where you can control Customer messages and which Node Types to reference.
- - Made database queries a little more random.
1.0 - Initial upload (working, stable, not too many config options)
- - Updated to fix a variable mismatch and change the wording to "Upsell products", not "available"
- - Updated to use db_next_id as well as a missing argument for finding image cache filepaths.
Development
| Preview | Attachment | Size |
|---|---|---|
![]() | upsell-screen-admin.jpg | 68.75 KB |
![]() | upsell-screen-cart.jpg | 158.49 KB |







) and also, found an error in the query that builds the nodetypes table. Please update the module if you haven't already.
)