WebWizards
Forum Replies Created
-
Hi there,
I believe you can achieve that by adding the following PHP code snippet to your site:add_action('wp_footer', function(){ $earnings = get_posts( array( 'post_type' => 'marketking_earning', 'numberposts' => -1, 'post_status' => 'any', 'fields' => 'ids', )); foreach ($earnings as $earning){ wp_delete_post($earning); } $agents = get_users(array( 'meta_key' => 'marketking_group', 'meta_value' => 'none', 'meta_compare' => '!=', 'fields' => 'ids', )); foreach ($agents as $agent){ delete_user_meta($agent,'marketking_user_payout_history'); delete_user_meta($agent,'marketking_outstanding_earnings'); delete_user_meta($agent,'marketking_user_balance_history'); } });After adding this, open your site on the frontend, for the snippet to load. Then when you’re done, remove the snippet.
The snippet can be added to functions.php or through any snippets plugin.
Forum: Plugins
In reply to: [WooCommerce] Multiple orders from same customer placed on same timestampHi there,
I see you are using our MarketKing multi-vendor plugin. It may be related to the issue you’re describing.
In MarketKing, when a customer places an order with products belonging to multiple vendors, that order will be split into multiple sub-orders.
What would happen is that the main order would be processed and paid normally, and afterwards, it would be split, so that each vendor can handle their part of the order with their products (each suborder would have the products of that vendor).
The payment would/should normally only be done for the “Composite orders” (the main order containing the suborders): https://prnt.sc/cuWC-2rQzkdr
I don’t know the exact details of what the issue you are having is, or if it’s even related, but I thought I should mention the above.
Thanks for using our plugin!
I have a plugin update that I believe would be able to solve that. Since this is part of the B2BKing Pro plugin, we can only send that privately based on the purchase / license code.
It would be best if you can please open a ticket with us at https://webwizards.ticksy.com . If your support expired, no problem, just open a ticket in the B2BKing Pre-Sales category please, and I will send you the update there. Thank you.
You can achieve that by adding this PHP code snippet to your site:
(can be added to functions.php or to any snippets plugin)add_action('woocommerce_order_item_meta_end', function($item_id, $item, $order, $val){ $vendor = get_post_field( 'post_author', $item->get_product_id() ); echo '<br>Vendor: <strong>'.marketking()->get_store_name_display($vendor).'</strong>'; }, 10, 4);You should be able to see the vendor here: https://prnt.sc/NtobogkNxJVQ
Hi there,
Thanks for using our plugin,With the Electro theme, you must add the following PHP code snippet to your site for the vendor name to show on the single product page:
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 45 );This can be added to functions.php or through any snippets plugin,
Thank you for letting us know about this,
I’ve looked into it and I believe I’ve found a bug that could cause this in specific circumstances.
I’ve now released update 4.2.35.
After updating, it may be necessary to update the dynamic rule as well.
Please try and let us know if that solves it for you,
Thank you for letting me know,
I have now released an update which I believe can fix it. It is version 4.2.34
If you do not see the update available in the backend, you can delete the plugin and re-install it, to get the latest version.
Please check and let me know if that solves it for you,
Thank you so much 🙂
Hi there,
Thanks for using our plugin,Sure, you could set up discounts through rules. For example here is a rule that sets a 50% discount on all products, for B2B users: https://prnt.sc/RXji1U9cCy5C
Or if you edit a product directly, you can set up a B2B Sale price: https://prnt.sc/jU6c2Y34UFx8
In the above example you can see a regular price (B2C) = $76, regular B2B price = $50, and a discounted sale price for B2B = $30
Let me know if that helps,
Hi there,
Can you please clarify in what panel / page do you mean? Might help if you can share a screenshot.
The customer can see the vendor when they go to My Account -> Orders here: https://prnt.sc/-6fjux7kVdeo
In the backend, you can see the vendor for each order in WooCommerce -> Orders: https://prnt.sc/UBtv2tCAzfBQ
Hi there,
At the moment I don’t have a way to do this unfortunately. We would like to add a “Subscriptions” module to the plugin that will have specific integrations like what you are describing – this will come very soon as a feature.
But right now, the only compatibility we have for subscriptions is for the admin to require vendors to pay a subscription to be able to use the marketplace.
Kind regards,
StefanGlad to hear that’s solved, thanks for the update.
Thank you for clarifying,
I believe you may be looking at this panel here: https://prnt.sc/iXjYCpAZgEgk
This is not a panel from our plugin – it is just a default WordPress option.
The “about me” of our plugin is only available in the vendor dashboard. The vendor can change it in the vendor dashboard -> Settings -> Store Information: https://prnt.sc/mMankzSJIbq8
At the moment, the only way for the admin to modify it would be to log in as the vendor, perhaps with this free plugin: https://ww.wp.xz.cn/plugins/login-as-user/
Hi there,
Thank you for using our plugin,
I am a bit confused by the issue and it would help if you could explain this further. MarketKing would not affect the value of the order itself. The commission should not have any effects on the total of the order – it is not clear what you mean / what happens when the “total of each product is 0”.
I am not sure if you’re experiencing some kind of bug, or just looking at a panel where 0 is the balance / commission.
Could you please share a screenshot of the page where you are seeing orders with value 0 / products with value 0? so we can better understand what is happening.
And if you deactivate MarketKing, then the order value is not 0? if you place a new order, the value is not 0 with MarketKing inactive?
Thank you so much 🙂