boloncampana
Forum Replies Created
-
I think I don’t understand the problem, sorry. Only thing I know is that if you have manual payments (e.g. direct bank transfer), it is better to set the subscription type to “One_time”, and manually extend the subscription when they pay (if you set it to “recurring”, the system will automatically renew it if you don’t manually suspend the membership).
I don’t know if that solves your use-case or if I didn’t understand your problem.
- This reply was modified 4 years, 5 months ago by boloncampana.
Hi,
In the meantime, you can paste the code above in your child theme’s function.php (if you don’t have that, you can use the Code Snippets plugin to paste it).
Of course, you should translate the Spanish months to the Arabic ones.I copied an older version by accident. Here’s the patch:
add_action( 'wp_ajax_wcfmvm_change_next_renewal', 'my_change_next_renewal_update',9 ); function my_change_next_renewal_update() { $loc2en = array( 'enero' => 'january', 'febrero' => 'february', 'marzo' => 'march', 'abril' => 'april', 'mayo' => 'may', 'junio' => 'june', 'julio' => 'july', 'agosto' => 'august', 'septiembre' => 'september', 'octubre' => 'october', 'noviembre' => 'november', 'diciembre' => 'december' ); $month = explode(' ', $_POST['next_renewal'], 2); if (array_key_exists($month[0],$loc2en)){ $_POST['next_renewal'] = str_replace( $month[0] , $loc2en[ $month[0] ] , $_POST['next_renewal'] ); } }
In case someone has the same problem, we patched it by adding this to our child theme (of course, change the Spanish months to the ones you need):
add_action( 'wp_ajax_wcfmvm_change_next_renewal', 'my_change_next_renewal_update',9 ); function my_change_next_renewal_update() { $loc2en = array( 'enero' => 'january', 'febrero' => 'february', 'marzo' => 'march', 'abril' => 'april', 'mayo' => 'may', 'junio' => 'june', 'julio' => 'july', 'agosto' => 'august', 'septiembre' => 'september', 'octubre' => 'october', 'noviembre' => 'november', 'diciembre' => 'december' ); $month = explode(' ', $_POST['next_renewal'], 2); if (array_key_exists($month[0],$loc2en)){ str_replace( $month[0] , $loc2en[ $month[0] ] , $_POST['next_renewal'] ); } }
- This reply was modified 4 years, 5 months ago by boloncampana.
Forum: Plugins
In reply to: [WooCommerce Multivendor Marketplace - REST API] App doesn’t connectI can send you the real URL via e-mail if you want to try it by yourselves.
Forum: Plugins
In reply to: [WooCommerce Multivendor Marketplace - REST API] App doesn’t connectOh, it was nothing, I don’t know why that was added (apparently the end quote was interpreted as part of the URL). But basically I meant that the WordPress site is located in a dedicated directory inside the root of a site.
And yes, “site address” and “wordpress address” are both pointing to that sub-directory (in this case, the hypothetical https://www.foo.bar/wordpress_directory )
Forum: Plugins
In reply to: [WooCommerce Multivendor Marketplace - REST API] App doesn’t connectThanks for the quick response! It worked in our main website.
Still, we couldn’t make it work in our testing environment with a base URL like “https://www.foo.bar/wordpress_directory”. We get this error:"Login Failure Contact Admin - Probable Cause incorrect URL"
Sorry for the delay. This didn’t solve our problem. Could it be because we are using manual bank transfer as the payment method?
Since backquotes don’t display correctly wordpress forums, these are copies of the files already patched, uploaded to pastebin:
- wcfm-controller-wcfmmarketplace-itemized-orders.php (Modified in line 92)
- wcfm-controller-wcfmmarketplace-orders.php (Modified in line 105)
Again, if this patch goes against your design, we would like to know how to allow our vendor to change the
withdraw_status
of an order when they mark it as completed.Sorry to bother you, I know this doesn’t solve the problem you are talking about, but this line
$sql = str_replace( ' AND <code>is_trashed
= 0′, ”, $sql );Is wrong. I know you probably got from this issue, and my guess is it was valid back then. I replaced it by (wordpress comment format breaks the query, see it here):
$sql = str_replace( 'AND <code>is_trashed</code> = 0', '', $sql );
To comply with the syntax used in the 5.0.0 version of theese files:
-
/controllers/orders/wcfm-controller-wcfmmarketplace-orders.php
/controllers/orders/wcfm-controller-wcfmmarketplace-itemized-orders.php
This will allow your vendors to see the cancelled orders (if that’s what you want).
- This reply was modified 4 years, 7 months ago by boloncampana.
- This reply was modified 4 years, 7 months ago by boloncampana.
- This reply was modified 4 years, 7 months ago by boloncampana.
- This reply was modified 4 years, 7 months ago by boloncampana. Reason: No way to use backquotes inside a code. I used pastebin to show the solution
I just came to notify that this error still persists.
Thanks for the dev version, I came to report this (I only noticed now) and I’m glad it was already resolved.
I had to do something similar some days ago (I needed to test a custom field through JQuery validation rules) and noticed that it was possible to do a dirty hack. Basically, you insert a script in the vendor registration template through any of the actions hooks scattered in the file “…/plugins/wc-multivendor-membership/templates/vendor-registration.php”.
I guess the problem comes from the fact that those inputs aren’t that ordinary, and may be populated AFTER the moment that the php executes, overriding any placeholder you set with the filter. By using javascript to change the placeholder, you are making the change on the client side, so it may (or not) set the placeholder after the mentioned overriding. Honestly, it would be a shot in the dark, I haven’t tried it, but it may work in the same way my JQuery hack worked for me.
I’m just a user just like you, but maybe I can help. What do you mean by placeholder in registration?
Forum: Reviews
In reply to: [User Menus - Nav Menu Visibility] Exactly what I neededHonestly none. I love it the way it is, and I hope that any new addition in the future doesn’t make the plugin too bloated and you keep the simple interface.