Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter WP User

    (@mtfalk)

    @shahzeenfarooq Thanks for the response. Are you able to remove the links (just replace them with <link removed> or something) from my original message?

    Thread Starter WP User

    (@mtfalk)

    @frankremmy Also, it seems like I can no longer edit my original message. I’m guessing it’s a permissions thing. Can you please edit it to remove the public links to our website? I did not realize those would be public to non-logged in users. I’d rather remove all of the links completely, honestly.

    Thread Starter WP User

    (@mtfalk)

    Thanks for the response @frankremmy This is a very helpful starting point, I appreciate it.

    In terms of the wc_get_template_part( 'content', 'single-product' ) method, I just tried implementing that, but it seems like there’s still something missing in terms of JavaScript/CSS being wired up. The single product template does show up on the page, but it is largely unstyled, and the opacity is set to 0 by default (I’m guessing because some JS isn’t running). Looking through the html source, it looks like most (all?) of the same /woocommerce/assets (for both css and js) are being written to the page, but something must still be missing.

    This is the code I used (I tried it with and without the product loop start/end, which doesn’t seem to make a difference) :

    // Start custom WC loop
    //woocommerce_product_loop_start();

    // Setup postdata
    $post = get_post( $my_product_id );
    setup_postdata( $post );

    // Get template part
    wc_get_template_part( 'content', 'single-product' );

    // End loop and reset postdata
    //woocommerce_product_loop_end();
    wp_reset_postdata();

    You also mentioned “Since the [product] shortcode does not load the gallery scripts by default, you could augment your custom pages by enqueuing the missing JavaScript and CSS manually”. It really does seem like that is the lynchpin—i.e. how do we determine which specific CSS and JS to include. Is there some sort of shortcode or tool within WooCommerce that will write the correct CSS/JS to the page for us? Manually hacking in the CSS/JS asset enqueues seems like it would be a maintenance nightmare (especially as WC versions change).

    Unless you have any ideas, I am probably just going to have to make the beta gallery block work, with some heavy customization.

    Thread Starter WP User

    (@mtfalk)

    Thanks for the response @mosesmedh. I have WP Crontrol installed, but the weird thing is that I cannot find a matching cron job anywhere.

    The stuck Scheduled Action hook name is “wcpay_track_update_order”. When I search for that in WP Crontrol, I get zero results. When I look at the All Events tab and sort alphabetically by hook name, there is no matching event hook called wcpay_track_update_order.

    There is something very strange going on with this particular scheduled action.

    Thread Starter WP User

    (@mtfalk)

    My mistake, this turned out to be unrelated to ActiveCampaign for WooCommerce. I don’t see a way to delete this thread, but I’m marking it as resolved.

    Thread Starter WP User

    (@mtfalk)

    Thanks for the response Brecht. Looks like our Pin Method is set to “Load pinit.js (required for Repin ID pinning)”. As far as I know, that was just the default. Would changing that to “Link only” change the popup window behavior to a regular new tab?

    For now, I just solved both of these problems by adding the following jQuery hack to my site javascript:

    $('a.wprm-recipe-pin').attr('target', '_blank').on('click', function (e) {
        e.stopPropagation();
    });

    This fixes the link target bug and also stops the click propagation, which prevents the custom popup window code from running. But I’d prefer to solve this with a legitimate setting instead of a hack if possible.

Viewing 6 replies - 1 through 6 (of 6 total)