tipomarwan
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Admin Interface] WP Custom Admin Interface and WMPLHi
I have exactly the same problem
through the support of WPML I managed to solve the block on their part by activating the permissions as translator user (specified here https://wpml.org/documentation/support/wpml-admin-capabilities/) and also adding the manage_options permission. (to manage permissions I use the User Role Editor plugin)
This way with the custom admin interface plugin disabled I see the translations the right way
But as soon as I activate your plugin, I deactivate the translations part and I cannot edit them
it tells me that I don’t have permission to access the page.
to solve I have to assign a double role to the user (both editor and administrator)
in this way I can hide the menus that I do not want to show to the editor user, but in fact I have made him an administrator, with all the risks involved
Is there a way to give access without necessarily making the user an administrator?Thanks
Forum: Plugins
In reply to: [Firelight Lightbox] product page in fancyboxHi
thanks for reponse
i’ve resolved with Featherlight
but still use your plugin for other links like PDF??
Hi
thanks for questioni’ve resolved by this workaround
i’ve set a flag in product page ($mminEnable == ‘yes’) to allow minimun quantity to 5 for selected productthen added this code to functions.php
/*
* Changing the minimum quantity to 5 for all backordered WooCommerce products
*/function woocommerce_quantity_input_min_callback( $min, $product ) {
global $post;
$mminEnable = get_post_meta( $post->ID, ‘is_minqty5’, true );
if ( $product->managing_stock() && $product->is_on_backorder( 1 ) && $mminEnable == ‘yes’){
$min = 5;
}
return $min;
}
add_filter( ‘woocommerce_quantity_input_min’, ‘woocommerce_quantity_input_min_callback’, 10, 2 );So it’s impossible todo?
No way?
??