Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • 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.

    Thread Starter jwpalfa

    (@jwpalfa)

    Thanks 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 ๐Ÿ™‚

    Thread Starter jwpalfa

    (@jwpalfa)

    For 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.
    Thread Starter jwpalfa

    (@jwpalfa)

    Seems 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!

    Thread Starter jwpalfa

    (@jwpalfa)

    I’d be happy to use a hook if you can give me a couple of pointers.

    Thread Starter jwpalfa

    (@jwpalfa)

    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.

    Thread Starter jwpalfa

    (@jwpalfa)

    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.

    Thread Starter jwpalfa

    (@jwpalfa)

    Alo

    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.
    Thread Starter jwpalfa

    (@jwpalfa)

    Interesting 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 ๐Ÿ™‚

    Thread Starter jwpalfa

    (@jwpalfa)

    Alo

    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,
    John

    Thread Starter jwpalfa

    (@jwpalfa)

    Yikes! 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.

    Thread Starter jwpalfa

    (@jwpalfa)

    Site is still working, no crash.

    Update manually following instructions as posted by James? – shudder ๐Ÿ™

    Thread Starter jwpalfa

    (@jwpalfa)

    Tried again and received:
    An error occurred while updating Customizr: Could not copy file. customizr/inc/lang/cs_CZ.po

    Thread Starter jwpalfa

    (@jwpalfa)

    I 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

Viewing 15 replies - 1 through 15 (of 16 total)