Hello,

Great module! Exactly what I was looking for!

Unforunately need to use it with Drupal 6, therefore no use for me.

When do you expect to have Drupal 6 version out? Would be very appreciated.

Thank you, all the best!

Comments

stefan81’s picture

Hi!

I need it as well.
Please let us know how much work you'll need to port it to Drupal 6 / Ubercart 2.x.
I gladly sponsor your efforts.

Thank

iaminawe’s picture

also interested in this

chadchandler’s picture

Anyone interested in this for Drupal 6 can accomplish the exact same thing using the UC_custom price module, or even easier the UC_discounts module.

akburr’s picture

Assigned: Unassigned » akburr

I would also love to have this for v.6. I'm willing to chip in some cash to port it over if you're available to do it. Please contact me if you are and we can make arrangements.

Mattias-J’s picture

Category: feature » task
Status: Active » Needs work
StatusFileSize
new7.4 KB

I needed this module, so made a quick convection, someone else has to go from here. As far as i can see the module works.

Left to do:

  • Descriptions for the sheama array [uc_price_per_role.install]
  • Find why the second call to validate has an empty role_prices (and if handled wrongly correct) [uc_price_per_role.module]
  • General look through of the module

Patch is against the current HEAD.

catorghans’s picture

I used the drupal6 patch, thanks.

this line:

$rpid = db_last_insert_id('uc_price_per_role_prices', 'rpid');

does not always produce unique values in MySQL.

I think "rpid" column could be of type "serial".

This has to do with you second "to-do" item.

OzSchmoz’s picture

How is this going? I'm very keen, since I need a unique alternative price for each product, e.g. retail and trade.
Thanks for your work.

techypaul’s picture

+1. will chip in if needed.

giorgosk’s picture

@longwave

will chip in as well if needed
just tell us what will cost !!

abaddon’s picture

Status: Needs work » Needs review
StatusFileSize
new8.83 KB
new1.42 KB

comment #6 and Duplicate entry '0' for key 1 query: INSERT INTO dru_uc_price_per_role_prices (rpid, vid, nid, rid, price) VALUES (0, 26, 26, 7, 220) in sites/all/modules/uc_price_per_role/uc_price_per_role.module on line 172.
if you have 2 custom prices (or maybe more) second one doesnt get stored

use the attached patch (on top of patch from #5), ive used #5 + this one over the 5.x version of the module and for convenience ill attach the zipped module as well

@longwave, any chance to commit this to a 6.x-dev release?

that0n3guy’s picture

sub...

longwave’s picture

Status: Needs review » Fixed

I have started a new 6.x branch based on the above work with some minor changes, thanks to everyone in this issue who provided patches. I will leave this as a -dev release until I get some feedback that it works successfully. I'd also like to port the new 5.x-1.1 features to the 6.x branch eventually.

techypaul’s picture

Hi longwave,

where is this? I would like to test it for you. I can't see it in the releases.

Thanks,
Paul.

longwave’s picture

Development releases are only built every 12 hours, it hasn't shown up yet but should be available shortly - please check back tomorrow.

techypaul’s picture

Version: 5.x-1.0 » 6.x-1.x-dev

Hi,

Downloaded, installed and tested - its working great. Just in time for me - about to add 1000s of products with multiple prices and I was worrying about it! lol.

Thanks for everyones efforts. I'll be using this a lot over the next few days and will let you know if I find any probs.

P.

longwave’s picture

6.x-1.0 has been released.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.