Hi there,

When using Power Tools the product sell price is reset to zero every time I create or edit a product.

I have tried disabling all the power tools options for that content type, but nothing makes a difference. Every time the form is submitted the price is reset to $0.00.

I am using Drupal 6.16 along with Ubercart 6.x-2.2.

Thanks

Comments

Anonymous’s picture

Title: Prices reset to zero on form submission » Product price reset to zero on form submission
willvincent’s picture

Thanks for the report I'll take a look at it right now.

willvincent’s picture

Status: Active » Needs review
StatusFileSize
new3.26 KB

Apply this patch and see if it fixes the issue for you. I can't imagine why it would still occur after applying this patch.

Place patch into module directory and apply thusly:

patch -p0 < 843094.patch

Let me know if you run into problems, or if this fixes the issue.

Anonymous’s picture

StatusFileSize
new12.09 KB

The patch didn't work, I'm afraid. I've attached the patched module file.

willvincent’s picture

Status: Needs review » Needs work

Hmmm.. alright I'll look into it further today. Thanks

tboornaz’s picture

I am having the same problem. Product Price resets to zero every time. For me the problem starting occurring with the most recent update.

willvincent’s picture

Interesting.. none of the changes in the latest update *should* have caused this to become an issue if it wasn't previously. But that's good to know.

Anonymous’s picture

Thank you for your prompt replies tcindie, just wanted to let you know I really appreciate the time you're putting into solving this.

artis’s picture

I'm also experiencing this issue after installing 6.x-1.11.

I fixed it temporarily by removing lines 122-125 from uc_product_power_tools.module so the problem must be there. Don't have time to dig into it now (Big Deadline) but this works for now.

Artis

bisuteria’s picture

I'm also experiencing this issue after installing 6.x-1.11.

willvincent’s picture

Status: Needs work » Needs review
StatusFileSize
new1.27 KB

Ok, sorry about this mess gang..

This patch should fix the issue. Forgot I'd changed some of the price settings, and when I did that the default settings got hosed. By default there should be no change to the product form.

This will most likely not apply over the previous patch I posted, so best to replace your existing install with a fresh install of the 1.11 branch and patch with this, if you previously applied the patch from #3.

I apologize for the inconvenience this must have caused with your stores!

Apply the same way described in comment #3.

artis’s picture

Thanks for your prompt handling of this issue! It's greatly appreciated.

artis’s picture

The patch in #11 worked for me. Reviewed and tested.

Anonymous’s picture

Status: Needs review » Fixed

I confirm this fixed the issue - thanks again, you helped me meet a tight deadline!!

willvincent’s picture

Thanks for testing. Glad this fixed the issue. I'll get it commit to the code and issue a new (final) 1.x release with this patch later in the week.

willvincent’s picture

Status: Fixed » Reviewed & tested by the community
vladimiraus’s picture

843094-2.patch fixed that for me too.
Thanks for quick response.

miniwebs2’s picture

Had the same issue - but sorry - newbie on patches - where do I put this code??

tboornaz’s picture

You place the patch in uc_product_power_tools. Then run the patch -p0 < 843094-2.patch from there. Please visit http://drupal.org/patch/apply. This article also contains a video on how to apply patches.

neilnz’s picture

Any chance on committing this? #11 worked for me too.

willvincent’s picture

yes it will be commit as soon as I have got time to do so.

carlitus’s picture

Fixed with #11 and uc_product_power_tools 6.x-1.11

wqmeng’s picture

Hi, this is waste time bug for me, why uc_product_power_tools modify the core behavier of ubercart even you don't touch the link of this module?

Terebinth’s picture

Ahh Thanks! The patch worked!

rootwork’s picture

Works perfect for me - would be great to see this committed!

isaac.el.cec@gmail.com’s picture

Hi...

I confirm 843094-2.patch works perfect for me too...

Thanks for your great work.

rootwork’s picture

I see this was committed to the latest full version, so I think it can be closed.

rootwork’s picture

Status: Reviewed & tested by the community » Fixed
echoz’s picture

Status: Fixed » Reviewed & tested by the community

Clarification, patch from #11 is not added to release version 6.x-1.11. It might be addressed in another way in the dev version, but if using 6.x-1.11, it needs to be patched with #11 plus the patch in #851234: List Position Visible Hides Price Fields

The note on this release says it's the final release of the 1.x branch, but seems this release should be cleaned up with these patches to avoid confusion and continued bug reports.

babbage’s picture

For other users wondering the version needed to fix this, echoz is right that this is not in 6.-1.11. Although it is not listed on the module page, there is a 6.x-1.x-dev released on 11 July 2010 that fixes this. If you run drush, just use:
drush dl uc_product_power_tools-6.x-1.x-dev

Otherwise, you can download it from:
http://ftp.drupal.org/files/projects/uc_product_power_tools-6.x-1.x-dev....

You can always find releases like this by clicking the "show all releases" link on the main page of a module.

babbage’s picture

Version: 6.x-1.11 » 6.x-1.x-dev

Please maintainer, can you release a 6.x-1.12 based on the current -dev, so that this fix is included in an official release?

joestewart’s picture

StatusFileSize
new1.75 KB

Not trying to muddy things too much, but the attached patch ( 843094-3.patch) worked a little better for us. I wasn't able to override the price values on the node edit form using 843094-2.patch

This sets the prices as defaults and allows overriding on the node edit form.

Since a fix has been committed I didn't change ticket status.

splash112’s picture

Following

yannickoo’s picture

subscribe

no2e’s picture

When will this get commited to the stable 6.x-1.x?

willvincent’s picture

I'm trying to sort everything out now. Branching the project in CVS has apparently caused a number of significant issues.

scotwith1t’s picture

subscribe

willvincent’s picture

Status: Reviewed & tested by the community » Fixed

3rd version of patch from issue #32 included in version 6.x-1.12

willvincent’s picture

Status: Fixed » Closed (fixed)
torgospizza’s picture

I just found this bug today, and was troubleshooting it, and then found out it's been fixed in a recent update. Many thanks to everyone who took time to help patch it :)

scotwith1t’s picture

Version: 6.x-1.x-dev » 6.x-1.12

yes, thanks. the 1.12 version seems to have cleared all of this up!

calebm12’s picture

I am using the 1.12 version and it still does this.
Sell price always shows zero.

calebm12’s picture

StatusFileSize
new12.28 KB

I ended up solving this issue and others found in the different releases (at least so good so far) by downloading and using 1.12 but replacing uc_product_power_tools.module file with the module file from 1.11 patched. I have attached the code used.

Pentacor’s picture

Status: Closed (fixed) » Active

Can't get any of these to work, when I try and patch I get:

Hunk #1 FAILED at 94.
Hunk #2 FAILED at 107.
Hunk #3 FAILED at 120.

When I try the #43 this also doesn't work, any product I make whether they are enabled or not on PPT won't save a sell price, it's rendered my entire site useless!

Please does anyone have any help?

Many thanks

tr’s picture

Status: Active » Closed (fixed)

@Pentacor: Please open a new issue if you have a problem with the 6.x-1.12 or -dev release. The original issue has been fixed in the latest release.