Closed (fixed)
Project:
Ubercart Ajax Attribute Calculations
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2010 at 02:28 UTC
Updated:
24 Sep 2010 at 21:00 UTC
Was having some issues with member_pricing module, the aac getting the correct price.
The reduced price by the member module was only pulled in on the initial load, and any changes made to the price by various attributes did not factor in the updated member price change.
I am not sure if this is the fault on the member pricing module for incorrectly hooking in to change the price, or the aac module not correctly grabbing the price.
My work around for this at the moment is a custom hook written into the member pricing module that I call inside uc_aac.
// Allowing Member Price Module to update pricing
if(module_exists('uc_member_pricing')){
$item->price = module_invoke('uc_member_pricing', 'get_member_price', $item->price, $nid);
};
If anyone else has this issue, I have listed the custom hook I call above in the issues area of the uc_member_price module.
Comments
Comment #1
cyu commentedPerhaps play with module weighting? See what happens when member_pricing module fires before and after uc_aac.
Probably the same issue as here: #824364: Not Compatible with Ubercart Price Per Role
Comment #2
cyu commentedGuessing that Price Per Role working means that this works too with latest dev version of the module. Feel free to re-open if that isn't the case.