Condless
Forum Replies Created
-
Forum: Plugins
In reply to: [User Posts Limit] Network-wide rules don’t seem to be appliedHi Ludovic,
Network-wide rules are not reflected on this dashboard widget but should work as usual, please make sure you use the latest version of the plugin.Forum: Plugins
In reply to: [Unit Price for WooCommerce] Stock ManagementHi,
The stock should be managed by the units that the product is sold by, for example if the product is sold by meters and you have 5 meters of it the stock should be 5.Hi,
The latest plugin version allows to define which fields to hide, but to hide different fields for different methods will require customziation.Forum: Plugins
In reply to: [Cities Shipping Zones for WooCommerce] Using Checkout Field Editor PluginHi Mira,
Please make sure to enable the billing_country and shipping_country fields using the Checkout Field Editor, and to select the country/state of the store (WooCommerce => Settings => General => Store address).Forum: Plugins
In reply to: [User Posts Limit] Shortcode for notificationsHi,
To display the notification when posts limit exceeded (update the post type):
[upl_hide type="post"]To display the user’s limit:
[upl_limits]Forum: Plugins
In reply to: [User Posts Limit] RCP AddonHi,
1. See ‘Restrict Content Pro’ in the docs, you’ll be able to change the limit which applied on users based on their RCP Membership.
2. See ‘How to lock the edit of posts’ in the docs, some customization will be required to make it compatible with the RCP membership expiration.Forum: Plugins
In reply to: [Unit Price for WooCommerce] Plugin not working in Flutter appHi Praveen,
The change should be made in the code of the app, for displaying the calculated by per unit price in the cart try using the product ‘price_html’ attribute instead of the ‘price’ attribute.Forum: Plugins
In reply to: [NSFW] [Cities Shipping Zones for WooCommerce] Edit greek area namesHi,
The empty options may be added by another code/plugin, please try to temporary replace your theme and deactivate all the plugins except WooCommerce and Cities Shipping Zones.The names of the cities can be modified using the following code into your theme’s functions.php file (for example this will remove the ‘psevdo’ from Patra and Elafonissos):
add_filter( 'csz_cities', 'csz_modify_cities_names' ); function csz_modify_cities_names( $cities ) { if ( 0 == strpos( get_locale(), 'en' ) ) { $country = 'GR'; $cities_names = [ 'GR37010100' => __( 'West Greece', 'woocommerce' ) . ' - ' . 'Patra', 'GR43030000' => __( 'Peloponnese', 'woocommerce' ) . ' - ' . 'Elafonissos', ]; foreach ( $cities_names as $key => $city ) { if ( isset( $cities[ $country ][ $key ] ) ) { $cities[ $country ][ $key ] = $city; } } } return $cities; }GR37010100 is the code of Patra and GR43030000 is the code of Elafonissos (cities codes are accessible in the plugin folder /i18n/cities/GR.php file)
Forum: Plugins
In reply to: [Unit Price for WooCommerce] How to set a minimum quantityHi,
The quantity buttons of your theme doesn’t fully support decimal quantity step.
You can replace them using this plugin.
Then redownload the Unit Price plugin and add this CSS (to hide the quantity buttons in mini cart):.widget_shopping_cart_content .qib-button { display: none !important; }Forum: Plugins
In reply to: [Unit Price for WooCommerce] How to set a minimum quantityHi,
Please redownload the plugin, then change the Quantity Step (both in option and in code) to 0.1 instead of 0.10.Forum: Plugins
In reply to: [Unit Price for WooCommerce] How to set a minimum quantityHi,
If the Quantity Step is ‘0,10’ the code should contain exactly the same (and not ‘0.10’).Forum: Plugins
In reply to: [Unit Price for WooCommerce] How to set a minimum quantityHi,
In the product ‘Unit Price’ settings set 10 in ‘Quantity Step’.
Copy the code from the plugin’s docs ‘How to set minimum quantity’ into your theme’s functions file, and update inside the code (instead of the other numbers):
’10’ => ’50’,
which means all the products which have ‘Quantity Step’ of 10 will have minimum quantity of 50.Forum: Reviews
In reply to: [User Posts Limit] Restrict posts based on user in each roleCustomization will be required, please contact via email.
Forum: Reviews
In reply to: [User Posts Limit] Restrict posts based on user in each roleHi Hamed,
The following code will display the users only their own posts (applied on any post type):add_action( 'pre_get_posts', 'wp_restrict_to_owner' ); function wp_restrict_to_owner( $query ) { if ( ! is_admin() && ! current_user_can( 'manage_options' ) ) { $query->set( 'author', is_user_logged_in() ? get_current_user_id() : '999999' ); } }Hi,
You can split Al-qatif governorate into multiple cities using the following code in your functions.php file:add_filter( 'csz_cities', 'csz_split_cities' ); function csz_split_cities( $cities ) { $country_code = 'SA'; $city_code = 'SASHQA'; $sub_cities = [ 'other', 'city', 'Saihat', 'Safwa' ]; if ( isset( $cities[ $country_code ][ $city_code ] ) ) { $count = 101; foreach ( $sub_cities as $sub_city ) { $cities[ $country_code ][ $city_code . $count ] = $cities[ $country_code ][ $city_code ] . ' - ' . $sub_city; $count++; } unset( $cities[ $country_code ][ $city_code ] ); } return $cities; }