9 replies [Last post]
setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Was this information Helpful?

Running UC Beta 3.

Scenario: I have a product that may or not be purchased with a complimenting product. Example: a crate that has a matching roller-cart.

I would like to have the cart displayed on the crate page. And/or have it ask if you want to add the roller-cart to the order when the crate is added to the shopping cart.

I have tried the product kit module but it doesn't really fit the need. The problems with the kit:

1 - If you go to one of the kit products pages individually it does not show the other items in the kit.
2 - From the product listing page it shows the kit's price as $0.

Ideally, if a product is in a kit, you should see the other kit components when you go to the individual product page. Is there any way to do logical grouping of products?

Thanks for any help with this~

agilpwc's picture
Offline
Joined: 12/10/2007
Juice: 213
Re: Best (if any) way to group products together?

I also found 'product_kit' to be pretty basic in it's current form.

One maybe easy solution might be to add a node reference cck field to your 'product' content type. Call it, "Related Products", set it to multiple. Then for each product add the appropriate node references to the products that it is related too.

This way when a customer views a product, on the page would be listed the related products as a link.

Then make a views block that would display the related products in the sidebar.

Or make a views block that shows all the related products to what is currently in the shopping cart. Though this is more complicated.

setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Re: Re: Best (if any) way to group products together?

Thanks for the info. The CCK node reference seems like it way suffice. I have never used it before but will look into it now.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Best (if any) way to group products together?

Yeah, I'd love to see these sorts of upsells in the future, but there is no core capability at present. One example we'll need it for is offering extended warranties on refrigeration equipment. It'd be handy for a contrib module to hook into the add to cart form submission and determine if the user should be sent to an "upsell" page that offers these other related products. But alas, that's only a pipedream for now.

eugef@drupal.org's picture
Offline
Joined: 12/24/2007
Juice: 102
agilpwc wrote:Or make a
agilpwc wrote:

Or make a views block that shows all the related products to what is currently in the shopping cart. Though this is more complicated.

I want to do this - but i dont understand how?
How i can get a list of node which "nid" are in the current node property "realted products"?
What a i have to use? Filters or arguments?

agilpwc's picture
Offline
Joined: 12/10/2007
Juice: 213
Re: agilpwc wrote:Or make a

If you want block with a list of nodes that are in the cart, you need to add to the function 'uc_product_views_tables' in uc_product.module. Add to the 'filter' array a 'product_in_cart' handler.

eugef@drupal.org's picture
Offline
Joined: 12/24/2007
Juice: 102
Re: Re: agilpwc wrote:Or make a

I want to have list of related nodes to the current product

agilpwc's picture
Offline
Joined: 12/10/2007
Juice: 213
Re: Re: Re: agilpwc wrote:Or make a

So assuming you mean you have created a field 'related products' of type 'node reference' and you want to list those related products in a block.

I think the following will work:

0) add your related products node reference field as a field to the view
1) add an argument "Node:ID"
2) set option to "Equal"
3) in the php argument handling code enter

if (($type=='block') && is_numeric(arg(1)) ){
  $args[0] = arg(1);
}
return $args;
eugef@drupal.org's picture
Offline
Joined: 12/24/2007
Juice: 102
Big thanks to agilpwc.

Big thanks to agilpwc.

It is what i want.

The only question - is how to theme the output of this related nodes.
In the field property "Option" i can select "Title" or "Teaser" - but i need to show title with price.

sebyweb's picture
Offline
Joined: 08/29/2008
Juice: 2
agilpwc wrote:I also found
agilpwc wrote:

I also found 'product_kit' to be pretty basic in it's current form.

One maybe easy solution might be to add a node reference cck field to your 'product' content type. Call it, "Related Products", set it to multiple. Then for each product add the appropriate node references to the products that it is related too.

This way when a customer views a product, on the page would be listed the related products as a link.

Then make a views block that would display the related products in the sidebar.

Or make a views block that shows all the related products to what is currently in the shopping cart. Though this is more complicated.

Hi agilpwc
I am a new user of Ubercart and Drupal.
How Can i make a views block that shows all the related products in different way?
I have tried using a group in my 'product' content type but i don't know how i can setting the "dysplay settings"

Thanks for the support