3 replies [Last post]
SungamR's picture
Offline
Joined: 10/12/2008
Juice: 11
Was this information Helpful?

There is a thing I don't understand and since I didn't find the answer in FAQ or here I hope you don't my question.

When creating a product with attributes with different prices for each variant.
How do I hide the price and SKU of the base part?
They have no relevance as I selected attribute selection to be mandatory.

/Magnus

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Beginner problems with Attributes

Try here (not sure if this is it):

Home › Administer › Store administration › Configuration › Attribute settings

http://your.site/drupal/admin/store/settings/attributes

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Re: Beginner problems with Attributes

I had the same problem. The answer (as I have been able to understand it so far) is that it's not possible to do it through any ubercart setting. May be through CSS.

In my case, I had books in two formats, hardcover and paperback, each with a different price, ISBN number, weight and number of pages. I entered the price for the hardcover format in the main product form and also its ISBN number.

I then created an attribute called 'Book Format' with two options - Hardcover and Paperback. I made 'Hardcover' the default option. Then, also in the attribute options, I set the price only for the softcover option. For the softcover's ISBN number, I used the SKU adjustments feature.

The result is that, in the default teaser view, the ISBN number and price of the hardcover version is shown by default. Just below are the two options, hardcover and softcover as radio buttons, with hardcover pre-selected. If someone clicks the 'Add to Cart' button, the cart shows the hardcover price. If someone chooses the softcover option, the cart correctly calculates the price based on the + - rate I specified in its option.

The only disdavantage is that the softcover version's ISBN number, weight and page numbers do not show up anywhere. I don't know yet if this will show up in an ISBN search.

I know this doesn't directly answer your question, but I hope this was helpful. There doesn't seem to be a way in Ubercart to simply enter a base product (without price and model number) and then handle all its variations entirely through the attribute system. Or, may be I just don't understand how e-commerce works.

SungamR's picture
Offline
Joined: 10/12/2008
Juice: 11
Re: Re: Beginner problems with Attributes

Thank you Venkat your input was helpful even if it didn't solve my problem.

For a lot of our products it make no sense to set a preferred variant as the base part. One of our products is a snow chain for vehicles, they come in a variety of dimensions and it make no sense to set a default dimension, and it invites only to misunderstandings to present the price of one model in bold text above all the else.

I suggest as a enhancement to ubercart to have an option to not show the basepart price when having attributes.
Given that its Open Source and I'm an old machine code programmer, I will try to get my head around this PHP thingy and contribute... but don't expect any miracles Smiling