jwpalfa
Forum Replies Created
-
Looks like v3.9.1 has corrected the problem. At least it has for me, YMMV.
Ditto. Disabling the gallery plug-in brought our Woo store back to life. Currently the gallery remains disabled as, sadly, revenue trumps photos. Please fix promptly.
Forum: Themes and Templates
In reply to: [Customizr] fatal error on updateThanks Nicolas.
I activated a default theme; deleted Customizr; installed fresh version of Customizr; reactivated my Custimzr-child theme. All seems to work.
Just one of those things that go bump in the night ๐
Forum: Plugins
In reply to: [WooCommerce] variable link in shop pageFor the record, hereโs what I have come up with in my search for a way to skip the product category page for a category with only 1 product:
This Woo function builds the url for the product category page inside the shop page loop:
function woocommerce_template_loop_category_link_open( $category ) { echo '<a href="' . esc_url( get_term_link( $category, 'product_cat' ) ) . '">'; }It can be removed with the woocommerce_before_subcategory hook. As in:
remove_action( 'woocommerce_before_subcategory', 'woocommerce_template_loop_category_link_open', 10 );Then I created my own function to build the url. I took a bit of a shortcut since I know the โMembershipโ category has only one product named โMembershipโ. If I was wanting to generalize this behaviour I would check the number of products in each category and build the product page url for any category with 1 product instead of the product category page url. Put that in my rainy day job jar ๐
Hereโs my brute force url builder:
function arcc_template_loop_category_link_open( $category ) { $category_name = $category->name; if ( $category_name == 'Membership' ) { $product = get_page_by_title( 'Membership', OBJECT, 'product' ); $product_id = $product->ID; $arcclink = get_the_permalink( $product_id ); } else { $arcclink = get_term_link( $category, 'product_cat' ); } echo '<a href="' . esc_url( $arcclink ) . '">'; } add_action( 'woocommerce_before_subcategory', 'arcc_template_loop_category_link_open', 10);I’m not sure what this does to the breadcrumbs but that’s for another day.
- This reply was modified 7 years ago by jwpalfa.
Forum: Plugins
In reply to: [WooCommerce] variable link in shop pageSeems like it should be pretty straightforward …
Just remove the action that builds the link url and add it back in with some logic to build the link for $category == membership with /product and leave the other links alone and using /product_category.
I just can’t figure out where the hook goes!
Forum: Plugins
In reply to: [WooCommerce] variable link in shop pageI’d be happy to use a hook if you can give me a couple of pointers.
No joy with that. The pop-up to mail the log happens but all buttons in it are greyed out. Can’t change the email address, can’t send, can’t cancel.
Log at https://pastebin.com/7DYjbmzi
Changing the parameters as in the ‘common reasons’ varies the end point of the scan but it always seems to just stop in the middle of scanning a list of files.
Forum: Plugins
In reply to: [ALO EasyMail Newsletter] Add an attachmentAlo
Your memory is very good! After attaching the file to the newsletter post the link generated in the body of the post may be deleted. The file is still delivered as an attachment to the email message.
I think you should include your custom_easymail_newsletter_get_attachments function as suggested above in the examples on the easymail for developers page! And in the samples in the mu-plugins folder.
Thank you so much for the coding suggestions.
John
- This reply was modified 8 years, 5 months ago by jwpalfa.
Forum: Plugins
In reply to: [ALO EasyMail Newsletter] Add an attachmentInteresting behaviour!
If I create a newsletter post and click the ‘Add Media’ button and then go through the upload a file process and insert it into the post, I get a nice attachment just as hoped. However, if I select an existing file from the media library to insert into the post, it does not appear in the email as an attachment. Why the difference?
My other complaint is that the body of the post contains a link to the file in the media library – which is not a url that I really want to expose.
Close but not quite there yet ๐
Forum: Plugins
In reply to: [ALO EasyMail Newsletter] Add an attachmentAlo
Thanks very much for that suggestion. It will work fine as long as I have only one newsletter per month and I want to send it in the month to which it belongs.
Of course you know that your users always want more ๐ What would it take to add a data field to the newsletters post page to specify an attachment file name? I can live with uploading it myself, having a fixed upload directory (/uploads ?) and being limited to a single attachment. Naturally removing those limitations could be future enhancements ๐
Adding this ability would certainly be worth a cash donation!
Thanks for considering this,
JohnForum: Fixing WordPress
In reply to: error updating to 4.7Yikes! Almost out of my allotted disc space ๐ Unpacking the zip file on the server caused an error – I guess that’s why the automated update process failed too.
I cleaned out some old stuff and tried again and was successful.
Thanks for your suggestions.
Forum: Fixing WordPress
In reply to: error updating to 4.7Site is still working, no crash.
Update manually following instructions as posted by James? – shudder ๐
Forum: Themes and Templates
In reply to: [Customizr] v3.4.36 update errorTried again and received:
An error occurred while updating Customizr: Could not copy file. customizr/inc/lang/cs_CZ.poForum: Themes and Templates
In reply to: [Customizr] Logo beside Title in page header with customizrI gave up trying to get both the title and the logo side by side in the header and settled for just the logo.
As for the menu bar in line with the logo, that is strictly CSS entries to move them around until aligned.
JWP