Confusion about different prices for attributes

Posts: 61
Joined: 03/19/2008

I am moving a book store from zencart to ubercart.

Each book has hardcover and paperback formats, with different ISBN numbers and prices for each format. I added a Book Format attribute and two options (hardcover, paperback) and entered the prices. I also used SKU adjustments to display the two different ISBN numbers for each format.

The problem is that, by default, the node teaser shows the product's hardcover format price. And, when I choose softcover, its price gets added to the hardcover book price and shows up in the cart.

How can I make the cart show only the softcover format's price, if that is chosen? And, how can I show the product without any default price, but make the cart update based on the format chosen?

Or, am I using attributes wrongly?

P.S: The prices are not a % or flat rate difference between the formats - they are independent prices.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

The problem here is that w/ attribute options, the prices are actually price adjustments... a + or - value, not a separate price entirely. This means you'd either have to calculate the difference for every product you enter or possibly just make two separate but related product nodes for the hardcover vs. paperbook version of a book.

Posts: 61
Joined: 03/19/2008

Thanks, again.

I solved the problem by entering the hard cover price and ISBN in the default product entry form.

Then, I added a 'Book Format' atttribute with two options, hardcover and softcover, both displayed. I made hardcover the default option, but did not specify a price. For the softcover option, I added + $0.00 (the price of the softcover option) and Ubercart correctly calculates the price if I choose the softcover option.

To handle the different ISBN number for the softcover, I used SKU Adjustments feature.

Works fine so far, but I have no idea yet whether the shipping costs will be calculated correctly. Also, there is no way to display the ISBN for the softcover. Is that field available to define in a view? I plan to use views faceted search.