leggo-my-eggo
Forum Replies Created
-
Excellent, thank you! Is there a dev version I can look at to see how you did it?
I just kind of quickly hacked something together as a suggestion. Here’s lines 633-648 of wp_shopping_cart.php
$replacement .= '<form method="post" class="wp-cart-button-form" action="" style="display:inline" onsubmit="return ReadForm(this, true);"' . apply_filters('wp_cart_form_attr_filter', "") . '>'; if (!empty($var_output)) {//Show variation $replacement .= '<div class="wp_cart_variation_section">' . $var_output . '</div>'; } if (isset($atts['button_image']) && !empty($atts['button_image'])) { //Use the custom button image for this shortcode $replacement .= '<input type="image" src="' . $atts['button_image'] . '" class="wp_cart_button" alt="' . (__("Add to Cart", "WSPSC")) . '"/>'; } else { //Use the button text or image value from the settings if (preg_match("/http:/", $addcart) || preg_match("/https:/", $addcart)) { // Use the image as the 'add to cart' button $replacement .= '<input type="image" src="' . $addcart . '" class="wp_cart_button" alt="' . (__("Add to Cart", "WSPSC")) . '"/>'; } else { $replacement .= '<input type="submit" value="' . apply_filters('wp_cart_button_filter', $addcart, $price) . '" />'; } }
And then I can do something like:
add_filter('wp_cart_form_attr_filter', 'add_parent_action_to_iframe_forms', 10, 2); function add_parent_action_to_iframe_forms($content) { return 'target="_parent"'; } add_filter('wp_cart_button_filter', 'form_button_text', 10, 2); function form_button_text($addcart, $price) { return $addcart . " for $" . $price; }
Whaddaya think? Do you think something like this could be incorporated?
As a followup, rather than going through the pain of somehow adding these as front-end features, I’d be happy with the ability to override the print_wp_cart_button_for_product function, or a hook to filter the form results.
Forum: Plugins
In reply to: [Firelight Lightbox] YouTube and Vimeo links not preventing new windowI should actually add that the error is still, in fact, thrown. It shown up in the Chrome Developer’s Console. It just doesn’t seem to affect anything.
Forum: Plugins
In reply to: [Firelight Lightbox] YouTube and Vimeo links not preventing new window@ravanh, I didn’t post it because I didn’t think it would be relevant to anyone else (and because it’s a little embarrassing). I had, a few days ago, added a script to open all offsite links in a new window and forgotten about it.
So, I made that script aware of the fancybox links and now all is well.
Oy.
Forum: Plugins
In reply to: [Firelight Lightbox] YouTube and Vimeo links not preventing new windowNever mind. I’m an idiot.
Ugh. I’d really like to avoid that, @brettgfitzgerald, although I certainly understand why you’d want to do it.
Hi @wp-fan, thank you. I think I had been guided in the direction of using an S3 bucket by the W3TC documentation itself. Regardless, it works fine. My only issue is about multi-site’s blogs.dir/files path issue, and how it translates to the CDN. I don’t think that using or not using an S3 bucket would have any bearing on that, do you?
Does anyone know what the intended behavior is on this topic? Is it possible to use W3 Total Cache with CloundFront on a Multi-Site install successfully?
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not set@bhagwad, it sounds as if you have not yet installed the New Relic agent for PHP. This is a different topic than this thread addresses, and doesn’t have anything to do with W3 Total Cache. You should try to install the agent as documented here: https://newrelic.com/docs/php/new-relic-for-php. If you have trouble, New Relic can help.
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not set@usera, that is not the problem I am experiencing. And I’m glad I could help.
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not setEvery reference I can find to that error and W3TC seems to apply to menu pages not appearing. This is just a little box inside the New Relic Dashboard widget on the W3TC Dashboard page. In any case, de/reactivating the plugin doesn’t fix it.
I think at this point, I’m probably safe just ignoring it.
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not set@hinnerkh happy to help. ??
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not setWell, the new relic php agent is installed and running fine. It has recognized my wordpress framework and all seems to be well. W3TC is running fine, and pulling all the data from new relic. I have no reason to think that there is anything wrong at all really, apart from this error message which only appears on the network w3tc settings page.
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not set@usera & @hinnerkh, W3 Total Cache works fine with New Relic (my small issue aside). Be sure you’re using your API Key, from New Relic, not your License Key. To get your API key in New Relic, go to Account Settings->Integrations->Data Sharing, enable API access, and you will then see the key.
The issue I’m having with the permissions error only happens in the Network Settings W3TC Dashboard. On each individual blog’s W3TC Dashboard, the error is gone.