Product Attributes Adjustments are Not Working Properly

Posts: 23
Joined: 02/28/2008

I have just updated to Ubercart 7.0 but this problem existed when I was using the previous version also.

I have a product that comes in Men's and Women's sizes and then different sizes (4-14 with half sizes). Both of these are set as attributes on the product and each should have a different SKU based upon the customer's choices.

Here is the problem. The adjustments are not being reflected on the order. It is not in the receipt or anywhere in the system it only reflects the SKU of the base product without the adjustment.

I noticed that this DID work properly when I initially only had a single option and only a few sizes (I had about five sizes set with appropriate adjustments to the SKU) but when I added all of the options and adjustments it does not work.

I following the documentation and even deleted all of the options and recreated them but still no luck. This is a pretty important feature for us since our shipping department needs to see the new SKU in order to ship the correct product so any help would be greatly appreciated.

Thanks in advance

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

Any changes to attributes/options on a product will reset its adjustments table. You'll need to go to the adjustments tab and make sure your adjustments are still set properly. If this is the case, there may be a bug there, but this is the starting point. I'll check the Livetest now for any bugs.

Posts: 23
Joined: 02/28/2008

I did re-check all of the adjustments and they were still set properly in the adjustments page. They still did not reflect in the order review.

So.... I un-installed all of Ubercart and re-installed it and it is now working properly. The only problem is that for some reason the tabs for The Product Attributes, Options, and Adjustments no longer show up in the product view. The pages still exist because I can manually enter the address and the options work (that is why I know that the adjustments are working) but it would be =nice to have the tabs back.....

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

A little curious how you went about the re-install. If the tabs aren't showing up, it's usually the theme that's the culprit, but you can always try emptying (truncating) your cache_menu table in your database.

Posts: 23
Joined: 02/28/2008

I would not be considered the most "graceful" Drupal or Ubercart user so this is the way that I un-installed and re-installed ubercart.

1. I unchecked all of the modules in the Modules section of the site configuration
2. I used the Uninstall option of the Modules pages and uninstalled all of the modules
3. I deleted the directories form the sites/all/modules directory
4. I downloaded the newest version of Ubercart
5. I transferred those files to the sites/all/modules directory
6. I wen to the modules page and checked them off again.

I can't get into the database because my brother changed the password and he is not awake yet, but it is strange that the only tabs that are missing are the ones for the product. I am using bluemarine as admin and all of the others show up. Once I get the new password I will take a look into the database.

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

You did the re-install properly, so it should've taken care of any old menu data itself. Try using bluemarine as your front end theme and seeing if the tabs are showing up w/ that. If so, we can isolate the issue to whatever your current front end theme is.

Posts: 23
Joined: 02/28/2008

First, thanks for your help on this one:

So I went ahead and changed the default theme to bluemarine and allowed an anonymous user to edit and manage product and the secondary tabs still do not show up http://www.alinesystems.com/node/121/edit if you want to see.

Does this mean it is a theme issue?

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

Nope, it should be working in bluemarine. I was able to test thanks to your setup. I know others have had issues related to the secondary tabs in the past, but I'm not sure of the fix. You might be able to search around or find some help on IRC if you can get on - the channel is #drupal-ubercart on irc.freenode.net.

Posts: 23
Joined: 02/28/2008

No problem - thanks for looking into it - I will dig deeper and see if I can work out the issue. I do have the workaround of just entering the address directly so it is not the worst problem to have.

You guys are building a great system here. I have been playing with it for a couple of weeks and the only show-stopping problem that I have been having is with integrating the UPS shipping quotes. I am sure it is due to my poor setup - Is there a good online tutorial for this somewhere?

Thank again -

Posts: 7
Joined: 04/01/2008

I've just noticed that the LiveTest site doesn't seem to work as it should per the documentation. According to the docs, the Ubercart beanie has a product attribute of "large" which should add $1.00 to the price. It has the attribute, however the price doesn't change.

As such, I'm stuck now. I've followed the docs, and added 4 types of attributes, each with 3 or 4 options to choose from. The dropdowns show the price increase, however, upon clicking "add to cart", all of the attributes I selected *are* added, yet only the original price is displayed...

So say I have a $369 product, with a $169 addon: I select the addon, and click add to cart. The cart displays the item with the addon, but retains the $369 pricetag!

Hrm. Any ideas? I have not yet gone and uninstalled/reinstalled Übercart just yet, but I want that really to be a last resort...

Posts: 7
Joined: 04/01/2008

Upgrading to Beta7 seemed to cause some problems, so I'm uninstalling and reinstalling anyway. Bugger.

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

I doubt it would be an issue with the beta 7... did you run update.php? Also, have you resaved the settings there since your update just in case?

fyi, this is working properly on the Livetest, I just didn't have the attribute setup for the price at the time due to testing. It's back and working as you were expecting. Could it be you were editing the option's cost field instead of its price field?

Posts: 7
Joined: 04/01/2008

No, I have the cost (say $100) and price (say $160) filled out. Weights are 0 (non-shippable products).

I ran update.php... before I was on Alpha6 or something, now I'm up to Beta7.

Which settings in particular should I re-save? I've gone and removed the attributes from the products, re-added, modified the attributes themselves, tried dropdown boxes, radio buttons (textbox is irrelevant in my case), but I can't figure out quite where I'm going wrong.

I'm not sure if it matters or not, but I also have expiries enabled.

My sandbox is: http://nz.pay.cnmltd.net/cms/hostenz/hecom

Posts: 7
Joined: 04/01/2008

...The bizarre thing is that the prices show up in the dropdown box, but they are not *applied* when selected and when you click add to cart.

Also the AJAX price updater module mentioned somewhere else on the forum seems to be broken too, but I'm not too concerned about it at the moment.

Posts: 315
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

Youch, mgcarley...disable that ajax price updater. It is breaking badly when a product has more than one select attribute. Radio buttons appear to be working. I'll try and get that fixed up...

Posts: 315
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

I put a new release up at d.o that should fix the ajax problem you were having. Can you try that out when you get a chance mgcarley?

http://drupal.org/node/241439

Posts: 7
Joined: 04/01/2008

That seems to fix the little AJAX problem just fine - now if only the price differences for the attributes would take effect when adding to the shopping cart, rather than just updating the displayed price... Smiling

Posts: 7
Joined: 04/01/2008

Well, it sort of fixes the problem. It may be the speed of the server, but when you select an option and then select another option before the price is updated, it will flick to the next list item when the price *does* finally update. Since the updating of the price field is pretty insignificant, I'm going to disable the AJAX module and try to focus on this issue of getting the prices of attributes to "take".

Posts: 7
Joined: 04/01/2008

Just for fun, I disabled the Expiry module, and all the attributes started working.

This will possibly cause me pain, but if I use the SKUs to determine billing recurrance, maybe it's not such a big deal? Ideas?