Home › Forums › Stripe Commissions & Gateway Support › Stripe Notice if Not Connected
NOTICE: We've Moved to a Ticket System for Support
As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system. This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.
For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.
If you are a WC Vendors Pro customer please open a support ticket here. If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.
The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.
Thank you to all of our customers!
- This topic has 10 replies, 3 voices, and was last updated 6 years, 3 months ago by
fleckebk.
-
AuthorPosts
-
February 27, 2017 at 10:55 am #57683
fleckebk
ParticipantI’m using Stripe Connect to pay my vendors, so I’m requiring they setup their account in the front-end dashboard. Is there a way to alert the new vendors they haven’t setup their Stripe account yet? I see you guys have a snippet to show a notice if no shop name is setup, but I’m not sure how to modify that for a Stripe alert.
https://www.wcvendors.com/kb/notify-vendors-havent-configured-stores/
I’m controlling all products from wp-admin as the admin, so your solution of requiring stripe for product upload won’t work for me. Seen here – https://www.wcvendors.com/help/topic/require-vendors-to-have-stripe/.
Thanks,
BryanMarch 3, 2017 at 2:30 pm #58130fleckebk
ParticipantAnybody have any thoughts on how to do this?
March 3, 2017 at 2:49 pm #58131Jamie
KeymasterHello,
You’d just have to check if they have the user meta key ‘_stripe_connect_access_key’ and that it is set. If its not set, then you’d add a notice to the dashboard. Is this for free or pro ?
cheers,
Jamie.
March 3, 2017 at 2:50 pm #58132fleckebk
ParticipantI bought your pro and stripe connect plugins, so pro.
March 3, 2017 at 3:03 pm #58134Jamie
KeymasterHello,
This gist should work. I just did quick testing but it appeared to work.
https://gist.github.com/digitalchild/d3190ab2f72575057b7e7b46a6cb4891
adjust the message as you see fit.
cheers,
Jamie.
March 3, 2017 at 3:24 pm #58138fleckebk
ParticipantFirst Jamie, thanks for the quick reply! I’m not seeing anything displayed though with that snippet. I’m using the BuddyBoss Marketplace theme, so I’m wondering if they are not allowing this function to display for some reason? I’m not a programmer, so I’m just taking a guess at the moment.
Thanks,
BryanMarch 3, 2017 at 3:28 pm #58139Jamie
KeymasterHello,
What version of pro are you running? What action are you running as I updated the gist just after I posted it.
It should be calling the wcv_pro_before_dashboard action. I haven’t used that theme so I’m not sure however that action is in the pro code not a template so it should call.
It will also only show it on vendors dashboards (above the menu) if they haven’t connected otherwise it won’t show anything.
cheers,
Jamie.
March 3, 2017 at 3:36 pm #58140fleckebk
ParticipantHere’s my system report, should be using the latest of everything wc vendor and woo related. I can give you some login info if that would help maybe solve this for others, let me know. I know the theme I’m using claims to be 100% compatible with your plugin, as it was advertised by you guys some time ago.
### WordPress Environment ### Home URL: https://nuethix.com Site URL: https://nuethix.com WC Version: 2.6.14 Log Directory Writable: ✔ WP Version: 4.7.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 5.6.30 PHP Post Max Size: 32 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.19.7 NSS/3.21 Basic ECC SUHOSIN Installed: – MySQL Version: 5.6.35 Max Upload Size: 32 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ ### Active Plugins (31) ### Gravity Forms: by rocketgenius – 2.1.2.1 Ultimate Addons for Visual Composer: by Brainstorm Force – 3.16.7 Add Logo to Admin: by c.bavota – 1.6.2 Adminimize: by Frank Bültge – 1.11.2 Advanced Custom Fields: by Elliot Condon – 4.4.11 MarketPlace: by BuddyBoss – 1.3.1 BuddyPress User Blog: by BuddyBoss – 1.2.0 BuddyPress: by The BuddyPress Community – 2.8.1 Custom Post Type UI: by WebDevStudios – 1.5.2 Disqus Conditional Load: by Joel James – 10.2.3 Indeed My Team (Visual Composer Version): by indeed – 3.0 WPBakery Visual Composer: by Michael M - WPBakery.com – 5.0.1 Maintenance: by fruitfulcode – 3.3 Nav Menu Roles: by Kathy Darling – 1.8.6 Peter's Login Redirect: by Peter Keung – 2.9.1 Redirection: by John Godley – 2.5 Restrict Content by Role: by Make Do – 3.5.0 Search & Filter Pro: by Designs & Code – 2.3.2 Tax Rate Upload: by Adam Bowen – 2.4.5 User Switching: by John Blackbourn – 1.0.9 WC Vendors - Stripe Commissions & Gateway: by WC Vendors – 1.0.4 WC Vendors Pro: by WC Vendors – 1.3.9 WC Vendors: by WC Vendors – 1.9.8 Woocommerce Advanced Bulk Edit: by George Iron – 4.1.1 WooCommerce Customer/Order CSV Export: by WooThemes / SkyVerge – 4.1.4 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 1.5.39 WooCommerce Shipment Tracking: by WooCommerce – 1.6.3 WooCommerce UPS Shipping: by Automattic – 3.2.1 WooCommerce USPS Shipping: by WooCommerce – 4.4.4 WooCommerce: by WooThemes – 2.6.14 Yoast SEO: by Team Yoast – 4.4 ### Settings ### Force SSL: ✔ Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 0 ### API ### API Enabled: ✔ ### WC Pages ### Shop Base: #1231 - /shop/ Cart: #59 - /cart/ Checkout: #60 - /checkout/ My Account: #61 - /my-account/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: OneSocial Child Theme Version: 1.2.0 Author URL: http://www.buddyboss.com Child Theme: ✔ Parent Theme Name: OneSocial Parent Theme Version: 1.2.0 Parent Theme Author URL: http://www.buddyboss.com WooCommerce Support: ✔ ### Templates ### Overrides: onesocial-child/woocommerce/archive-product.php onesocial-child/woocommerce/single-product/related.php ### WC Vendors Pro ### Theme Compatability: - Pro Dashboard Page: - #646 Feedback form page: - #978 Vendor Shop Permalink: - athletes/ ### Templates ### Overrides: – ### Customer/Order CSV Export ### Order Export Format: custom Customer Export Format: default Automatically Export Orders: email Export Trigger: schedule Export Start Time: 6:00am Export Interval: 30 Next Export: Scheduled on March 3 2017 3:00 pm Order Statuses: wc-processing Product Categories: Products: Automatically Export Customers: disabled
March 3, 2017 at 3:55 pm #58141fleckebk
ParticipantHere you go, some login info if that helps you at all. Should be for an admin and vendor profile.
Site is in maintenance mode, so click the lock on the page to log in:
admin
u: wcvendors
p: nuethix1vendor
u: bryanhicks
p: nuethix1https://nuethix.com/athlete-pro-dashboard/
Thanks,
BryanMarch 3, 2017 at 10:34 pm #58173Anna
MemberHello,
This is the method I use on my site
I put this in a kb article here:
https://www.wcvendors.com/kb/prevent-product-listing-vendor-no-stripe-account-connected-stripe-gateway-commissions/and you can see the discussion in this thread:
Please note that if you are using the BuddyBoss Social Marketplace then you will have to add bb-marketplace to the path of your saved modified template: wp-content/themes/onesocial-child/bb-marketplace/wc-vendors/dashboard/product-edit.php
March 4, 2017 at 12:24 pm #58221fleckebk
Participant@fervous – Thanks for the solution; however, I’m not allowing vendors to add/edit products. I don’t think that will work.
@digitalchild – Ok, I think I know what’s going on here. Again, not a programmer, but I simply made one small tweak to your code to get it working (whether right or wrong). If a user hasn’t set up stripe yet, there is no record in the ‘wp_usermeta’ table for ‘_stripe_connect_access_key’. I think your code was checking if the value was set. So, I think we need to check whether the record was even there for a user. Mod below:Change this -> if ( ! isset( $stripe_token ) ){
To this -> if ( ! $stripe_token ){
Working great now! Hopefully this will help anybody else out who needs to alert their users to set up Stripe to get paid.
Thanks to both of your for helping me through this.
Bryan
-
AuthorPosts
- The forum ‘Stripe Commissions & Gateway Support’ is closed to new topics and replies.