Ubercart Attributes Question

Events happening in the community are now at Drupal community events on www.drupal.org.
amariotti's picture

Hey guys,

I just launched a site on Ubercart last week and the customer had a few questions regarding Ubercart Attributes. Attributes on Ubercart are the dropdown selectors on each product page to specify which type of product you want (i.e. color, size, etc that would see if you were buying a t-shirt). Anyway, on this site that I did there are multiple attribute dropdowns on some of the products. My question is: how hard would it be to tell Drupal to remove some of the other attributes based on the dropdown? The first attribute will allow them to simplify the product and get the basic version which then makes the rest of the attributes unnecessary.

Hopefully this makes sense. Thanks in advance.

I'm guessing that maybe an if-then statement would work, but it may be an Ubercart hack. I found a few topics on their website, but there's no resolution to the discussion. Thoughts?

--Andrew

Comments

I may be confused with your

TapocoL's picture

I may be confused with your questions, but you can go to each product's page and use Edit to choose which attributes and options are available for each product. I am using Beta5 of Ubercart.

I'll post a link so that it

amariotti's picture

I'll post a link so that it makes more sense.

http://www.huckleberryhollowdesigns.net/site/catalog/bath-0

You'll notice that the first option reduces the price and removes the ribbon and iron rod along the top of the plaque. After choosing that the "Ribbon Color" option is unnecessary. Does that make more sense?

Andrew (amariotti)

Andrew (amariotti)

Javascript needed

kyle_mathews's picture

That's possible but you'll need to use javascript. That's because the behavior you want will be happening entirely on the client's computer, i.e. you don't know if a visitor to the website will select the option to remove the ribbon/iron rod until the page is loaded in their browser.

I'm no javascript expert but I think what you're looking for shouldn't be too difficult. You'll basically attach an event listener to each attribute and monitor what options are selected. If a selected option makes an option from another attribute invalid, simply remove the invalidated option.

Kyle Mathews

Kyle Mathews

This might

Mamp and Wildcard DNS

lindyjan's picture

Hi,

I am attempting to set up a site using domain access module. The instructions say you need to use wildcard dns to make it work. Does anyone here know how to set up wildcard dns using MAMP?

Thanks in advance
Janel