Paul
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] Cache Is Cleared When Page Updated – Setting is OffI also have the same problem. Otherwise everything is working as it should.
That’s great news!
Looking forward to the next update then!Forum: Plugins
In reply to: [Woocommerce Custom Coupon Message] don't workSorry about the late reply.
Did you check the box to hide the default message?
Forum: Plugins
In reply to: [Woocommerce Custom Coupon Message] Possible incompatibility with URL CouponsHi,
thanks for the feedback!Did you resolve your issue?
When I click on your coupon url (https://bareminimumspanish.com/tester) a message which looks like a custom one is displayed.
If I visit the link again I get a message which says that the coupon is already applied.
So it seems to be working here.
Let me know if your’re still having problems.
Paul
Forum: Plugins
In reply to: [Woocommerce Custom Coupon Message] Facebook and Twitter messagesWell, kind of, but I’m missing the link between the tweet and this plugin.
This plugin gives you the option to make your own coupon message which is displayed when the coupon is applied.
It would be possible (I think) to implement an option with this plugin that you can tweet that you have used a coupon at the store and how you much you saved etc, the name of the coupon etc.
But the tweet will be made before the purchase is completed since this plugin does not interact with the later stages of the order system in Woocommerce (only the discount/coupon part).
Is it something like this you are looking for?
edit: I just realized that what you are asking about might be the facebook/twitter message when using the ShareYourCart integration with Woocommerce?
Forum: Plugins
In reply to: [Woocommerce Custom Coupon Message] Facebook and Twitter messagesHi there,
could you be a bit more specific?I don’t really understand the connection between your question and this plugin.
Paul
Forum: Plugins
In reply to: [PHP Browser Detection] Retina displaysJust for future reference, the above function did not work that well because in some cases it reloaded/redirected back to the front page if the cookie wasn’t set.
I used a slightly modified technique presented on this blogpost:
https://oxidedesign.com/detecting-a-retina-display/So here is the function I’m using now which seems to work fine:
function get_pixel_ratio() { if ( isset( $_COOKIE['retina'] ) ) { $pixel_ratio = $_COOKIE['retina']; } else { ?> <script type="text/javascript"> var retina = 'retina='+ window.devicePixelRatio +';'+ retina; document.cookie = retina; if ( document.cookie.length !== 0 ) { document.location.reload(true); } </script> <?php } return $pixel_ratio; }
Forum: Plugins
In reply to: [PHP Browser Detection] Retina displaysI figured that this wasn’t possible so I made a simple function out of solution 5 suggested on this blogpost:
https://www.bdoran.co.uk/2012/08/28/detecting-and-delivering-images-to-retina-displays/
function get_pixel_ratio() { $pixelRatio = 1; if (isset($_COOKIE["pixel_ratio"])) { $pixelRatio = $_COOKIE["pixel_ratio"]; } else { ?> <script language="javascript"> writeCookie(); function writeCookie() { var pixelRatio = 1; if (window.devicePixelRatio) { pixelRatio = window.devicePixelRatio; } document.cookie = "pixel_ratio=" + pixelRatio + ";" + document.cookie; location = '<?= $_SERVER['PHP_SELF'] ?>'; } </script> <?php } return $pixelRatio; }
Forum: Reviews
In reply to: [Woocommerce Custom Coupon Message] Awesome, but…Just released an update which fixes the typo, and with new features as well!
Forum: Reviews
In reply to: [Woocommerce Custom Coupon Message] Awesome, but…Thanks for the feedback!
I’ll fix the typo in the next update ??