sparkweb
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Feature request to add filter by dateI didn’t do update_post_meta() because that was updating it every time. I had the IF check to make sure one hadn’t been added first. Not sure why it’s doing that — it certainly wasn’t on my test install. Good luck….
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Feature request to add filter by dateJust put it in your theme’s functions.php file. Inside the <?php tag so it gets processed as PHP.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Feature request to add filter by dateGlad that worked for you.
This is outside the scope of what I’d like to do with the plugin, but this kind of thing could be very easily accomplished with just a bit of code. I worked this up and it should do the trick:
add_action("wp_insert_post", "my_insert_function"); function my_insert_function($post_id) { if (!get_post_meta($post_id, "My Field Name")) { add_post_meta($post_id, "My Field Name", "My Value"); } if (!get_post_meta($post_id, "My Field Name2")) { add_post_meta($post_id, "My Field Name2", "My Value2"); } }Forum: Plugins
In reply to: [Custom Field Bulk Editor] Feature request to add filter by dateI have added this feature for you. I’ve also limited the default number of posts per page to 200.
The repo FAQ hasn’t updated yet, but please download version 1.8. Here’s the docs:
This plugin will run into memory problems and not submit properly if there are too many posts on a page. Currently the page limit is set at 200. To show more or less on a page, just add “posts_per_page=10” to the querystring to display only 10 posts. Use the querystring page_number=X to display a certain page.
Search for a date range by entering a search query with “..” between the dates. So if you wanted to search for all dates between 2014-01-01 and 2014-02-01 you would search for “2014-01-01..2014-02-01”. Or search for “2014-01-01..” to search for all orders between 2014-01-01 and the current date. Or search from the beginning of time until 2010-01-01 by searching “..2010-01-01”.
Forum: Plugins
In reply to: [FoxyShop] "Subscription" disappear@jidy, yes. You have to enable the subscription feature in the settings, but then you’ll be able to add subscription products.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Feature request to add filter by dateNoted. I will consider this for a future version. Thank you,
Forum: Plugins
In reply to: [Hide YouTube Related Videos] Plugin Not workingI know this is a pretty old thread, but I found out that Jetpack was overriding the functionality here. If you had JetPack installed, you can upgrade to version 1.3 for the fix.
Forum: Reviews
In reply to: [Hide YouTube Related Videos] No longer seems to be working@jmessick, could you share your url with me? Feel free to email it to web at sparkweb dot net.
Forum: Plugins
In reply to: [FoxyShop] Set Variable for product-single.php after Gravity Form SubmissionIf you run into problems with PayPal, you might be interested in Stripe which is available in private beta in Australia now: https://support.stripe.com/questions/is-stripe-available-in-australia-how-do-i-sign-up-for-the-beta
Forum: Plugins
In reply to: [FoxyShop] Set Variable for product-single.php after Gravity Form SubmissionHmmm – sounds like kind of a complicated system. I think the way I would approach this would be to have the main product page not show variables until it comes back with some querystring options from Gravity Forms. Then you can use the variables it gets from GF to prefill things like the sub start date.
1. Watch out for product validation. You may need to turn that off if it becomes a problem.
2. If you pass in a product ID to the foxyshop_setup_product() function it will do all the product setup stuff from the database.
3. I wouldn’t mess with manual PayPal subs. Do it all through FC for more simplicity.
Forum: Plugins
In reply to: [FoxyShop] Variations and Subscription LengthsHi! Interesting question. There isn’t a method for doing this directly as you are thinking. You could do End Date{sub_enddate} as the name, but this wouldn’t let you change price. And you could do Price with different prices but it wouldn’t let you change the sub_enddate.
I think the best course of action here is a small bit of jQuery to listen for a change on the variation in question and then update your sub_enddate value. I’ve thrown together some code to give you an idea what I mean, but I want to stress that this hasn’t been tested so it may have some dreadful syntax error or may need a little massaging.
$("select.variation-pay-length").change(function() { var current_value = $(this).val(); //2 Months if (current_value.indexOf("2 Months") >= 0) { <?php $new_date = date("Ymd", strtotime("+2 months +1 day")); ?> new_date = "<?php echo $new_date; echo foxyshop_get_verification("sub_enddate", $new_date); ?>"; //4 Months } else if (current_value.indexOf("4 Months") >= 0) { <?php $new_date = date("Ymd", strtotime("+4 months +1 day")); ?> new_date = "<?php echo $new_date; echo foxyshop_get_verification("sub_enddate", $new_date); ?>"; } //Set the Value $("#fs_sub_enddate_<?php echo esc_attr($product['id']); ?>").val(new_date); });The basic idea is that your variation is named “Pay Length” and you have a default sub end date specified (so the field is there to edit). You also want your sub to end 1 day after the last payment. The code above would go in a javascript tag on your single product template.
Hope that helps.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] conflit with ACFI posted an update yesterday. Should be okay now.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] conflit with ACFHi LC – I see the issue. This will be patched soon. For now, just uncheck “Field Groups” at wp-admin/options-general.php?page=cfbe_settings.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Not working for Jigoshop ProductsHmmm – I don’t see anything here that relates to CFBE. Are you running the latest version of WordPress? I would look up some of these errors — also try to disable all your other plugins and even switch themes and see if that makes a difference.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Not working for Jigoshop ProductsSorry to hear that. Can you turn on WP_DEBUG (in wp-config.php) for a minute and get me an error and line number?