In testing the flat rate shipping quote method, I have a problem in the beta 1 cart. The checkout correctly selects the product flat rate instead of the store default flat rate. However, when I select review order, the store default flat rate is selected instead of the product flat rate shipping.
Flat Rate beta1
|
|
There's a pretty ridiculous error in the flatrate module. The primary key for the uc_flatrate_products table only allows for one entry per node revision. In addition, the hook_nodeapi() deletes all of a revision's entries when it saves each adjustment. This means you can only have product-specific shipping rates for the last method in the list. And for everyone who upgrades from alpha8, that method is the flat rate per order. Not helpful.
I've fixed all this in the latest code. As a temporary fix, you can delete all but one of your flat rate shipping methods.
Thanks! I'll grab the latest from bazaar later today, test and let you know.
I downloaded the bazaar code today and tested. There is no change in behavior. The checkout page shows the product flat shipping charge, the review page shows the default flat rate shipping charge.
For some reason the bazaar code hadn't been updated since 1-8 even though there's plenty of changes in the listing.
I forgot a slash in the update script, so it was trying to update a directory that didn't exist. Fixed that and manually updated the tarball, so it should be fine now.
I just downloaded tarball of the bazaar files and noted the timestamp of the files changed recently matched the changes listed in bazaar. When trying to use the flatrate shipping, I get a shipping rate on the checkout page that correctly uses the flatrate for the product. However, the rate shown on the review order page is the store default flatrate--ignores the product rate.
Sigh, I've been after this for days. Anyone with a solution? I'd prefer not to have to change all products to have the store shipping rate.
I don't have that problem with the latest code. Might your browser be caching the review page for some reason? I don't know what could be the problem if you have the latest code.
I have bazaar version 728 of Ubercart installed. Flatrate quotes work for me in this version. Since the database table has changed you need to run update.php. I would suggest disabling then uninstalling flatrate before installing the new version. Then enable the new version and run update.php. You will have to configure the flatrate module at admin/store/settings/quotes/methods/flatrate before you can turn it on in the menu at admin/store/settings/quotes/methods
I have updated to bazaar code 733. Flatrate quotes do work. But the checkout page shows the product flatrate and the review checkout page shows the store default flatrate. Customers would tend to be unhappy if the store default is higher than a particular product rate. My client would not like it if the reverse were true.
I disable and uninstalled the flatrate mdoule, I did run update where Drupal tells me there is a need.
I have turned off Drupal cacheing, I have cleared the browser cache. I have used both IE and Firefox on three different computers in two different states with the same results.
I am wondering if there is a problem with different PHP versions. My webhost provides 4.3.11. I can move to a PHP5, but they don't make it easy. I must move the sites manually, no help from them. TR and Lyle, what versions do you use?
If I understand correctly, you've configured the Flatrate module to calculate a per-product rate, but for one or more of the products in your cart you've edited the product page to override that store default rate with a product-specific rate? And on the checkout page you see the correct calculation (using the product-specific rates)? You select that shipping option and move to the next page, the order review page, where you see a different dollar amount listed for shipping?
I can't reproduce that. But one thing I did find out while testing is that uninstalling the old Flatrate doesn't seem to remove the Workflow-ng configurations for the old module. You need to go into admin/build/workflow-ng to edit the old Flatrate configurations and deactivate them. You will recognize the old configurations because they will be named something like "Flat rate per product" and "Flat rate per order", whereas the new Flatrate you set up at admin/store/settings/quotes/methods/flatrate will have a descriptive name of your own choosing.
Note also that you have to run update.php with the new Flatrate module enabled! If you ran update.php before enabling the new version of the module, then it didn't update the Flatrate tables. You can run it again in your current configuration without harming anything. (I don't think this is the problem, because you are getting quotes...).
This doesn't sound like a PHP version problem, since you're now actually getting quotes and not seeing error messages. I'm using PHP 5.2.3.
Yes, tr, you are correctly understanding the problem.
I took the following steps with bazaar build 733 and workflow_ng 1.6:
1. Deactivate the flatrate shipping method in shipping quotes.
2. Deselect the uc_flatrate module from the modules page.
3. Verify that the flatrate method had disappeared from Workflow_ng. It had, I did not need to remove it manually.
4. Uninstall the flatrate module.
5. Re-activate the flatrate module from the modules page.
6. Check the database via update.php. No updates needed. Ran it anyway.
7. Verify that workflow_ng didn't have a flatrate shipping method.
8. Set up a new flatrate method with my store defaults for flatrate shipping.
9. Verify that workflow_ng still didn't have a flatrate shipping method.
10. Activate the flatrate shipping method in store/configuration
11. Verify that the new shipping method was indeed listed in workflow_ng.
12. Checked a random product--one that hadn't been used for a trial purchase to be sure no cache problem. Verified the product shipping rate is $20.00. Default store rate is $25.00 with $5.00 handling.
13. Cleared the browser cache so no confusion about any previous pages or purchases.
14. Tested with a trial purchase of the product I checked in step 12.
15. When I enter my address on the checkout page, the shipping charge is correctly shown as $25.00. When I advance to the to the review checkout page, the shipping charge is shown as $30.00--the default store rate.
Still a problem!
I do have a reputation for being able to easily break code. I have at times done a lot of beta testing. My favorite was the time I was testing a product near the end of the testing cycle. They were confident in error free code (yeah, right!) and had offered a bounty of $200 per reproducible bug. I was able to find 26 reproducible problems within an hour or so of testing. I stopped because I wasn't sure they pay up. Wish I could do that more often...
Something is broken here. It could be something in my configuration, but I can't see any configs that could be broken. Or something in the code. I am willing to continue checking my configs--or to test new code.
I was experiencing this same problem.
For instance, my default shipping is $4.00
Then each product has it's own flat rate shipping that adds onto $4.00, say $2.00 for a t-shirt.
If I had one t-shirt in the cart, checkout screen would correctly calculate the shipping as $6.00
But then the review order screen would say $4.00
Upgrading to PHP5 fixed the problem.
|
|





Joined: 11/27/2007