sparkweb
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Add string to existing contentAppending post meta isn’t a function that WordPress supports so it would actually be something custom. The plugin doesn’t support that, so I think your best bet would be to hop into the database and do it. It wouldn’t be too hard to build a little bit of SQL that would do it.
UPDATE wp_postmeta SET meta_value = concat(meta_value, '/01') WHERE meta_key = 'your_target_key';I think that would do it, but obviously this hasn’t been tested so tread with caution and maybe backup first. 🙂
Forum: Plugins
In reply to: [FoxyShop] Anyway the a subscription user can login to account and edit info?Hi, this isn’t available out of the box although you can certainly build something like this. This isn’t something that lends itself well to templating because the solution looks different for everyone depending on how they want to have their subscriptions managed.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Extra Save Lines Not Updating DatabaseThanks so much. Glad you got it working!
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Extra Save Lines Not Updating DatabaseYour field names and statuses don’t have the underscore in front.
foreach ($fields as $field_name) { if ($_POST[$field_name . '_status'] == 1 && $_POST[$field_name] != "") { cfbe_save_meta_data($field_name, $_POST[$field_name]); } }Forum: Plugins
In reply to: [Custom Field Bulk Editor] Extra Save Lines Not Updating DatabaseI installed your code and tried it out and it looks like you aren’t checking to see if the status setting on the field is set to 1 properly. You have:
if ($_POST[$field_name] == 1) {And it should be:
if ($_POST['_' . $field_name . '_status'] == 1 && $_POST['_' . $field_name] != "") {In fact, why don’t you do it like this:
$fields = array( "cms_code", "inpatient_hospital", "inpatient_mental", "skilled_nursing", "hospice_care", "primary_care", "etc.....", ); //Save Your Fields foreach ($fields as $field_name) { if ($_POST['_' . $field_name . '_status'] == 1 && $_POST['_' . $field_name] != "") { cfbe_save_meta_data($field_name, $_POST[$field_name]); } }See https://github.com/sparkweb/foxyshop/blob/master/bulkeditor.php for details on how it’s working in the plugin.
Forum: Plugins
In reply to: [Custom Field Bulk Editor] Extra Save Lines Not Updating DatabaseHi David, could you share what you’ve done or the errors being thrown? If you don’t see any errors, make sure you have WP_DEBUG turned on in the wp-config.php file. If we can get an error, that would really help in determining what the problem is.
The sample code is running within a plugin of mine and doesn’t have any issues so I’d be surprised if there’s a problem there. 🙂
Forum: Plugins
In reply to: [FoxyShop] Foxyshop in selling LogosHi Andy,
Sure, I don’t see why not. I’d probably have all your logos with names as a variation on the main product. The other variations would be things like license and company name/tagline. This shouldn’t be a problem. You’d probably need to just have all your varieties listed on the main selling page then they’ll select the variety on the purchase page.
Forum: Plugins
In reply to: [FoxyShop] Created new template, datafeed no longer workingHi Vincent, I believe this was answered over email. These kind of questions are better with direct support since it likely has something to do with server config.
🙂
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberGreat! Glad you got it all worked out.
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberYes, that is correct. Then refeed again and see if there are any errors. You want to look at what $retval returns. If it returns an error that is helpful information. If it returns a success it means you are all set and then can just comment out the print_r line or remove it.
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberIt looks like you are editing the foxyshop-datafeed-endpoint.php in the plugin instead of making a copy and putting it in your theme folder. Please follow the instructions in step 2. And make sure that the MCAPI.class.php file is in your theme folder as well.
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New Subscriberok now comes the troubleshooting. Right after the code put
print_r($retval);Then refeed the transaction. It should generate an error. Put the error details here.
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberYou don’t have to deactivate your account, just deactivate the API key and make a new one.
I said “So the code should start with line 9 and end with line 18.” You don’t want to have the stuff around the outside – that’s the part that says “if the checkbox is checked, add to MailChimp”.
Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberPlease don’t post your API key in a public forum. You need to immediately go deactivate it and create a new one so your account doesn’t get compromised!
Also, in my last message I said you only want to do some of that code:
require_once 'MCAPI.class.php'; $mailchimp_api_key = 'YOURKEY'; $mailchimp_list_id = "135a7d3da3"; $api = new MCAPI($mailchimp_api_key); $merge_vars = array( 'FNAME' => $customer_first_name, 'LNAME' => $customer_last_name, 'OPTINIP' => (string)$transaction->customer_ip ); $retval = $api->listSubscribe($mailchimp_list_id, $customer_email, $merge_vars, "html", false)Forum: Plugins
In reply to: [FoxyShop] MailChimp Email Integration Not Adding New SubscriberOk, the code I sent earlier is for step 2. But if you want to add everyone automatically, just don’t add the checkbox in step 4 and take out the if statement in your datafeed template (step 2). So the code should start with line 9 and end with line 18.
You asked how to adjust the datafeed template – go through step 2 again being careful to follow the instructions. That explains what you need to do.