WebWizards
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Shipping options not available when logged inHi there,
I noticed you’re using our B2BKing Core plugin. Please note that B2BKing has a feature to control shipping and payment methods by group: https://woocommerce-b2b-plugin.com/docs/how-to-enable-disable-payment-and-shipping-methods-based-on-users-or-groups/
Please try to go to B2BKing -> Groups -> “B2C Users” and “Business Group”, and for each category of users / groups, check that the shipping methods you want are enabled.
Hi Jose,
That filter only exists in the Pro version of the plugin (no reason really, just didn’t get around to adding it to the Core version yet), so unless you’re using the Pro plugin, that would be why it doesn’t work. If it helps you with development, I can send you a copy of the Pro one, let me know.
It does work to use $user->add_role to add multiple roles, but it creates a lot of confusion for customers (because WP shows only 1 role in the user profile), and also other plugins mess with roles, so it’s just simpler to keep this entirely separate as user meta – helps avoid a lot of conflicts and support tickets.
Good luck, have a nice day!
Hi Jose,
Thank you for using our plugin,1) Indeed, instead of WP roles, we are using the plugin’s own ‘Groups’ (which you can find in the backend in B2BKing -> Groups – you can add, edit, or delete groups here).
These groups are a custom post type and we reference a group by its post ID. Groups are stored in the user meta key ‘b2bking_customergroup’.
So for example, if you want to get the group ID of a specific user, you can use:
$group_id = get_user_meta($user_id,'b2bking_customergroup', true);
To get the name of the group:
$group_name = get_the_title($group_id);2) Why we are doing this instead of WP roles is because in WooCommerce it’s best for a customer to have the ‘Customer’ role. We could add multiple roles, but WordPress UI shows only 1 role by default, so that could be confusing and create issues.
3) You can return true for this filter: b2bking_use_wp_roles
Then deactivate and reactivate the B2BKing plugin. Now after reactivating it, you will see the plugin has created a WP role for each group.Initially the roles are not synced for users, but after you save a user profile, it should then sync automatically for that user (and for future users).
The purpose of this filter is just compatibility with other plugins, like in your example,
Kind regards,
StefanHi there,
It’s normal that products with hidden prices cannot be added to cart – it would be impossible for an order to be placed without a price.
We would like to make an improvement here in future versions so that it’s possible to use ‘quote requests’ for these hidden price products, but at the moment quotes can only be enabled globally for all items.
Regarding the issue where prices are not hidden on the catalogue page:
– That’s usually the result of a plugin or theme conflict. We would recommend that you try to deactivate all other site plugins (except b2bking and woocommerce) and to switch to the default storefront theme.
– Almost always that would resolve the issue – and that should help you pinpoint where exactly the conflict is coming from.
Hi there,
Because of some technical limitations, you must first save the product before you can see the Add-ons screen. I suspect that may be the issue, because the add-ons tab does not show initially when creating a new product.
When editing an existing product, you can see add-ons here as in this screenshot: https://prnt.sc/fHdlNcFstt-E
Let me know if that helps,
Kind regards,
StefanBy the way,
I just remembered, a day or two ago we released an update for MarketKing that I have reason to believe may help solve your issue. Please try to update the plugin first and see if that helps (you should have version 1.1.07).Hi there,
We did test the plugin with Flatsome and we were happy with how they worked together. I think there must be something specific on your site, maybe some specific Flatsome setting or plugin or something that is interefering.
I can check on your site if you’d like. For that, please open a private ticket with us at https://webwizards.ticksy.com (you can open it in the MarketKing Pre-Sales category). In the ticket, we would need a backend (admin) login to your site, or a staging clone site, so we can check the issue,
Kind regards,
StefanThank you for your review 🙂
I checked your screenshot. To achieve that:
1) First, it’s possible there could be product filters plugins out there that have a setting or option for that. Basically you’d need a plugin that integrates that way with WooCommerce’s [products] shortcode. Unfortunately I don’t know which one I could suggest – we don’t have that much experience with product filters plugins either.
2) What would definitely work is to use a bit of custom coding / templating.
You can completely edit the store page template per your needs. We have a guide here: https://woocommerce-multivendor.com/docs/how-to-edit-marketking-pages-templates/ ( see under “For example, if you want to edit the individual store page template:” )
You would copy the store-page.php page to your child theme folder and then edit it.
Inside that file, you’d need to modify the products tab so that it’s split into 2 columns. In the column on the left side, you’d add a woof filters shortcode [woof] ( https://products-filter.com/shortcode/woof ).
Other filters plugins or other filters in general may be compatible as well – our plugin simply uses the default [products] shortcode from WooCommerce. Any filter compatible with that should also work.
I checked, you can also add that to the sidebar.
1) You can remove it from showing above products by going to WOOF settings and setting this to ‘No’: https://prnt.sc/vMYTfcjTurBc
2) You can add it to the side bar by going to Appearance -> Widgets and finding the WOOF widget there: https://prnt.sc/Wz9uFquohvVd
The final result looks like this on my local test site: https://prnt.sc/wyEOBkeRR-_l
I don’t know if you’re seeing a sidebar on the store page or not – it depends on your theme. If you’re not seeing a sidebar, try to edit the stores page and change the template there: https://prnt.sc/hs-0hlTuMT4_
Hi there, thanks for the kind words,
We just pushed an update (1.1.06) that makes the plugin quite compatible with the WOOF Products Filter plugin ( https://ww.wp.xz.cn/plugins/woocommerce-products-filter/ ).
I recommend you try to use that – if you run into any issues you can let us know,
Hi there,
I understand this issue was resolved by enabling the ‘All Products Visible’ setting (in B2BKing -> Settings -> Access Restriction).
Have a nice day,
Hi there,
For each product, B2B prices are stored within the product’s metadata.
The keys used are:
– b2bking_regular_product_price_group_GROUPID
– b2bking_sale_product_price_group_GROUPID
More info here: https://woocommerce-b2b-plugin.com/docs/release-1-8-0-price-lists-csv-import-export-pricing-in-the-product-page/
For example, to get the regular price for the group with ID 123, you can use
$price = get_post_meta($product_id,’b2bking_regular_product_price_group_123’, true);
Hi again,
Sorry, maybe I wasn’t very clear on that. I meant that [b2bking_b2b_registration] will be more compatible with captcha plugins. Without a captcha plugin, there are no other features to prevent spam registration.I’ve now tested it with the following Captcha plugin: https://ww.wp.xz.cn/plugins/wp-recaptcha-integration/ and I can see they are working together correctly. It is working with both registration shortcodes. I am using the free version of the above plugin and I am using a Site Key and Secret Key for a Google V2 I’m not a robot captcha.
Hi there,
Which shortcode are you using?
It may help to use [b2bking_b2b_registration] instead of [b2bking_b2b_registration_only]. The first one will be more compatible.
I was under the impression most captcha plugins should work with that. Specifically we have tested it with “Advanced noCaptcha & invisible Captcha (v2 & v3)”, but other plugins should work as well.