Closed (works as designed)
Project:
Ubercart
Version:
7.x-3.4
Component:
Roles
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2013 at 22:32 UTC
Updated:
4 Apr 2013 at 22:48 UTC
i see uc_roles_action_order_renew on uc_roles.rules.inc
foreach ($order->products as $product) {
// Look for any role promotion features assigned to the product.
$roles = db_query("SELECT * FROM {uc_roles_products} WHERE nid = :nid", array(':nid' => $product->nid));
foreach ($roles as $role) {
// Product model matches, or was 'any'.
if (!empty($role->model) && $role->model != $product->model) {
continue;
}
$product->model its having the product generic sku, not the attribute ALTERNATE SKU
Comments
Comment #1
ropic commentedsorry , my fault , i'm doing this programmatically and i see i need to change manually the $product->model, and not only add data['attributes] array