bhamrick
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Email Triggering Twice (2x sends)Sorry, if you’re not fluent in PHP I wouldn’t recommend attempting this. Plenty of freelancers out there looking for work, I’d recommend hiring one.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Email Triggering Twice (2x sends)Figured this out for anyone else who might run into this. I copied my original code from a blog post but it looks like that code is out of date. I noticed it wasn’t working early on and copied my
WC_Fulfillment_Order_Emailclass from the nativeWC_Email_New_Orderclass, but I just figured out I also needed to update how I was including that class. This is the method SkyVerge used, which I copied:function add_expedited_order_woocommerce_email( $email_classes ) { // include our custom email class require_once( 'includes/class-wc-expedited-order-email.php' ); // add the email class to the list of email classes that WooCommerce loads $email_classes['WC_Expedited_Order_Email'] = new WC_Expedited_Order_Email(); return $email_classes; } add_filter( 'woocommerce_email_classes', 'add_expedited_order_woocommerce_email' );That seems to be the culprit, I updated it to the style WooCommerce now uses to include its native email classes:
function add_fulfillment_order_woocommerce_email( $email_classes ) { // add the email class to the list of email classes that WooCommerce loads $email_classes['WC_Fulfillment_Order_Email'] = include( 'includes/class-wc-fulfillment-order-email.php' ); return $email_classes; } add_filter( 'woocommerce_email_classes', 'add_fulfillment_order_woocommerce_email' );So far everything is working as expected!
Forum: Plugins
In reply to: [W3 Total Cache] Total Cache is removing roles from $current_userThanks! I only need it when I’m actually importing using that other plugin so I can just temporarily disable it. Hopefully next time I need to do that this plugin will have been fixed.
Ok, so after running some tests, the issue was I had Convert to UTF-08 set to “utf08 encoding” which is the default. Since my file was already utf-8 I changed it to “No” and now my characters are loading fine.
Thanks!
Output of
file -I import.csvistext/plain; charset=utf-8. I assume that’s correct? I’ll try running it again with the conversion setting.Forum: Plugins
In reply to: [WooCommerce] Create account after checkoutI have this same issue. I want my customer’s username/password automatically generated and emailed to them (this is for a membership site), so I imagine I could write a plugin to leverage WC’s ability to autocreate users but initiate it on the thank you page? Has anyone done this? Any pointers on what action I should attach to and if the order ID is accessible?
Forum: Plugins
In reply to: [WooCommerce] Allow purchaser to gift a digital productThanks for the response! I’d happily pay for this feature if it could be done as an addon.
Thank you
Forum: Plugins
In reply to: [Related Posts for WordPress] Drafts Appearing In Related PostsYes, I’m using the latest version of WordPress and this plugin. This bug is still happening, see the “Free Class: Balancing Your Hormones Naturally” related post on http://drbrighten.com/natural-antibacterial-spray/. That’s not a published post, which is why it’s linking to a post ID and not the permalink.
Forum: Networking WordPress
In reply to: Fresh Multisite Install – Can't Log InNo idea what the problem was, but I started over: delted my DB and the install directory, and reinstalled. Everything works now!
Forum: Plugins
In reply to: Nextgen Gallery do_shortcode not working?do_shortcode seems inefficient here, as ultimately the shortcode is calling the nextgen function echo nggShowSlideshow();
I would just do this:
<?php echo nggShowSlideshow(1, 475, 390); ?>Forum: Themes and Templates
In reply to: Main Menu Bar Children Issue (Webfolio theme)I think that’s much more complicated than necessary. The problem is that wp_list_categories is assigning child unordered lists the “children” class, while wp_list_pages does not. Therefore you simply need to change the instance in green.css declaring the background (it looks to be line 60) to something that will include the links from wp_list_pages as well. You can probably simply change the selector to include all secondary ul’s by removing the “.children”, something like this:
#topMenu ul.sf-menu li ulForum: Themes and Templates
In reply to: Displaying a page two different waysquery_posts(“p=14”); pulls the content from page id 14, so you have two pages but you only edit the content of page id 14.
Forum: Themes and Templates
In reply to: Displaying a page two different waysThere are several ways to do this, many of which are probably more complicated than you need. You could check the referrer url or pass in URL params and change classnames as needed, or you could do what esmi is talking about and create a duplicate page. In the custom template on the dupe page you would simply change:
if (have_posts()) : while (have_posts()) : the_post();
to:query_posts("p=14"); if (have_posts()) : while (have_posts()) : the_post();changing “14” in this example to your relevant page id.
Forum: Themes and Templates
In reply to: help with sidebarYou’ll have to edit the theme and add an additional sidebar. I’m assuming you have changed your reading preferences to show a Static Page on the homepage in place of your recent posts, so your blog page should be using the index.php template. Here’s a guide on adding sidebars:
Adding Extra Sidebar to your WordPress ThemeForum: Plugins
In reply to: MORE Fields Plugin -Where do I begin – Need Help Now…Displaying of post-meta is a feature of the WordPress function the_meta() as described here. For this information to be output in the post display, there are only two options. Either the theme itself has a line item displaying the_meta() or get_post_meta(), or a plugin is applying a filter to add it to the post content. I suspect it is the former, so check your single.php template in your theme and edit as necessary.