Forum Replies Created
-
AuthorPosts
-
Julian KanaanParticipant
Thanks @ben. Posted my code for posterity
Julian KanaanParticipant`<?php
$location = $_GET[‘userlocation’];
$type = $_GET[‘usersearch’];
$args = array(
‘meta_query’ =>
array(
array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘_wcv_custom_settings_store’,
‘value’ => $type
),
array(
‘key’ => ‘_wcv_store_city’,
‘value’ => $location
)
)));
$results = get_users( $args );
if (count($results) > 0) {
// start the loop
foreach ( $results as $user ) {
echo ‘<span>’ . esc_html( $user->user_email ) . ‘</span>’;
}
}
else {
echo ‘nothing found’;
}
?>`
Julian KanaanParticipantFor anyone with the same problem btw, I use a hidden regular text field created with the guide above, and insert a checkbox into the store-settings.php.
Then I use jQuery to detect if that checkbox is clicked, then enters ‘yes’ into the invisible text-field.
jQuery(“#checkbox”).click(function() {
jQuery(“#_wcv_custom_settings”).val(‘yes’);
});Julian KanaanParticipant@FERVOUS Any updates on this topic of letting vendors create subscriptions?
Thanks!
Julian KanaanParticipantBetter walkthrough I put together:
/// Step One:
Use duplicator to:
download site backup of all files & export database/// Step 2:
Put these two items into a folder in safe place
/// Step 3:
Upload installer.php from Duplicator into root directory
/// Step 4:
Go to https://new-site-address.com/installer.php
/// Step 5:
Fill out the new/old url settings within /installer.php
this replaces all instances of old domain w/ new one
/// Step 6:
wp-admin > Settings > Permalinks and enter new domain details
/// Step 7:
Check site for anything broken
/// Step 8: SEO things
in .htaccess of old site,
add a redirect to new site
Julian KanaanParticipantDoes this sound alright?
/// Step One:
download site backup of all files
export database from MySQL
/// Step 2:
Put these two items into a folder in safe place
/// Step 3:
wp-admin, Settings > General.
Update URL fields w/ new site address
/// Step 4:
Upload old site backup files to new site’s root directory
Upload database
/// Step 5
in new site’s functions.php to update databases:
update_option(‘siteurl’,’http://www.new-site-address.com’);
update_option(‘home’,’http://www.new-site-address.com’);Julian KanaanParticipantHi @fervous and @ben, while I have this support tab open, can you give me some advice on changing the url of my site?
Is it as simple as the following two lines of code? Does this affect the databases that use my current site as prefixes for photos and the like?
update_option(‘siteurl’,’http://www.new-site-address.com’);
update_option(‘home’,’http://www.new-site-address.com’);
Julian KanaanParticipantWow. Huge thanks for this plugin @ben. You just saved me a ton of time going through code
Julian KanaanParticipantOr @ben 🙂
June 21, 2017 at 3:28 pm in reply to: Trying to display banner if no token for Stripe connect #68657Julian KanaanParticipantReplaced $stripe_connect with $stripe_yes in case that the original was conflicting with the WC connect plugin and it seems to work.
Would that make sense? I suck at this
June 21, 2017 at 3:12 pm in reply to: Trying to display banner if no token for Stripe connect #68656Julian KanaanParticipantIn fact, in a fresh browser/fresh user, if I delete the exclamation point, making it
if ( isset( $stripe_token ) ){ echo 'Connect your stripe account to accept payments thanks!'; }
…then it **displays** the error. Weird.
Julian KanaanParticipantThanks @fervous. If I can get it working I’ll report back too
Julian KanaanParticipantOne last quick question:
If I want to display a vendor’s commmission rate in their dashboard,
would the following couple lines be appropriate? Am I using the right meta? (I just use a simple percent commission w/o any other flat fee complications.)<h3> <?php $commission_viewable = get_userdata( $vendor_id )->_wcv_commission_percent'; echo $commission_viewable; ?> </h3>
Julian KanaanParticipantWorked perfectly thanks! Very cool. Thanks for keeping up with the almost daily questions I ask.
Julian KanaanParticipantThis is what I’ve tried but it doesn’t echo the address:
$email_vendor = get_user_meta( $vendor_id , ‘_wcv_paypal_address’, true ); <button class="emailbutton"><a href="mailto:<?php echo $email_vendor; ?>"></a>Email Creator </button>
Julian KanaanParticipant[deleted]
Julian KanaanParticipantWhile I have this support tab open, is there a way to php echo a vendor’s email address onto their Store page?
Julian KanaanParticipantAnd yes if you or Ben or any other developers start messing around with it and get it to work, I’d love to get the code snippets 🙂
Julian KanaanParticipantJulian KanaanParticipant@fervous, you might actually try this on your site too if you use Connect, just add /express/ to your
(https://connect.stripe.com/oauth/authorize?%5BTEST CLIENT ID]) link like I did above and try to onboard a test user.
Super cool and clean.
Julian KanaanParticipantAnd I actually was able to onboard a few test users by using the url https://connect.stripe.com/express/oauth/authorize?….
However, WC connect plugin fails to recognize these users as already having a Stripe acct upon being redirected 🙁
June 12, 2017 at 10:09 am in reply to: Quick question on where to find this .php for shipping settings #67844Julian KanaanParticipantHuge thanks @fervous 🙂
June 11, 2017 at 7:00 pm in reply to: Quick question on where to find this .php for shipping settings #67798Julian KanaanParticipantJune 7, 2017 at 12:06 pm in reply to: Quick question on where to find this .php for shipping settings #67469Julian KanaanParticipantHere’s a screenshot.
Julian KanaanParticipantI will not have any product or category commission overrides, and I will only be using percents, so that might simplify finding the final vendor commission.
I’ll experiment and see what I can do, but any other help would be great. Thanks 🙂
Julian KanaanParticipant@fervous Any ideas?
Julian KanaanParticipantHah. Fixed it. He had conveniently saved all the modifications in a single folder. Saved it to desktop, deleted, refreshed site, and everything is back to normal.
Very odd that it conflicted so much with WC Vendors.
Julian KanaanParticipantGoodluck to me! Thanks Anna
Julian KanaanParticipantCould I use these php files and overwrite any modified pages?
https://github.com/woocommerce/woocommerce/blob/release/3.0/templates/myaccount/my-account.phpJulian KanaanParticipantOh, I’ll just delete the tables then.
My site is full of my own CSS. No real template changes. All cosmetic.
Julian KanaanParticipantI actually do remember I hired a freelancer to do some work. He edited a page for WC Product Vendors. Everything involving WC Vendors is completely stock.
Should I go and try to delete these files that are still left?
Julian KanaanParticipant@fervous
Hmm. My pages settings are normal. Do you want to take a look?user: wcanna
pass: *&Y^hmRDDnQppq0j4e&#Wq7mJulian KanaanParticipantLine 204 from /wc-core-functions.php
Julian KanaanParticipantOpened up dashboard.php and found line 45 that was apparently causing issues.
It’s apparently trying to pull data from WooCommerce Product Vendors, which I thought I had completely deleted before installing WC Vendors.
Should I delete this line?
Julian KanaanParticipantWell that works perfectly. Front end and in commissions. For the future, what caused it? Was it the plugin being a few days out of date? @fervous
Julian KanaanParticipantDone. @fervous
Julian KanaanParticipant@fervous any ideas?
Julian KanaanParticipantScreenshots of commission settings and the pv_commissions table. The commissions were set before the test orders were created of course.
Julian KanaanParticipant@fervous
Just a few notes to simplify your troubleshooting:1. All orders seen in the backend are testing orders and should be visible in vendor orders as well as in commissions. (They’re not visible in either.)
2. I used to have WooCommerce Product Vendors installed. I followed steps in a support thread long ago in which @ben described how to delete that plugin and data associated with it to switch to WC Vendors. Maybe that might be causing an issue?
Julian KanaanParticipantUser: wcanna
pass: vzoW361BzM7p!sQfHgYpE@E8Julian KanaanParticipantSure. It’s a live site in that it’s indexed and payment gateways work, but other than that, feel free to test.
Do I submit the login credentials inside a private reply here?
Julian KanaanParticipant1. Yes this happens with all test vendors I have created.
2. Right. When I go to wp admin > woocommerce > commissions, no commission is shown for the vendor. It returns “no items found.”
3. Yes I have the 93% commission set in wp admin > woocommerce > wc vendors > commission
4. Database. Using the plugin Database Browser, it actually looks like I do have that table. I see “wpqt_pv_commission”
Julian KanaanParticipantAdditionally, no vendor commission override has been made.
-
AuthorPosts