habibillah/woocommerce-fixed-quantity

all role option

Closed this issue · 5 comments

lalop commented

Is that possible to make this functionnality avalaible for all roles ?

Go to WooCommerce Settings >> Products >> Fixed Quantity

lalop commented

I get this
capture d ecran 2016-07-13 a 14 57 15

But if I go on the page logged as admin I don't see the fixed quantity price feature.
Do you see what I mean ?

See default Role and Available Roles fields.

On Wed, Jul 13, 2016 at 7:58 PM Samuel Laulhau notifications@github.com
wrote:

I get this
[image: capture d ecran 2016-07-13 a 14 57 15]
https://cloud.githubusercontent.com/assets/313117/16804060/2339fa54-490a-11e6-9ee3-21dba9ae11f8.png

But if I go on the page logged as admin I don't see the fixed quantity
price feature.
Do you see what I mean ?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAhZFniBDrNszjzNkMWP3NiU7_BAe0-2ks5qVODkgaJpZM4JLYh1
.

lalop commented

Ok so I think there is an issue in the code
https://github.com/habibillah/woocommerce-fixed-quantity/blob/master/classes/woofix-utility.php#L84

When I come here the key is customer and current_user_roles is [administrator] so the function never show me the default price per quantity

lalop commented

sorry it's my fault, du to some change I did to support variation