petschko
Forum Replies Created
-
Forum: Reviews
In reply to: [Compliance by Hu-manity.co] Easy and still offers many functionsSometimes you need to shutoff stuff with PHP and then this function is super handy.
Most of the time you don’t need this function but sometimes its good to have, so thats why I like it, because you CAN use it if you need it.
I use it for Google-Analytics as Opt-In, the plugin itself don’t offer me a Opt-In method, just a Opt-Out method via Javascript, but with this function I can just turn off that plugin, just for those users, which don’t allow 3rd party cookies
Forum: Reviews
In reply to: [Compliance by Hu-manity.co] Easy and still offers many functionsThe function returns true if the user accept cookies, else it returns false (if user refuse cookies or didn’t choose an option)
You can use it in PHP-Code for stuff
Edit: The function is well documented, see:
/** * Check if cookies are accepted. * * @return boolean Whether cookies are accepted */ function cn_cookies_accepted() { return (bool) Cookie_Notice::cookies_accepted(); }- This reply was modified 8 years ago by petschko.
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] GA Opt-In / HookUpdate:
I took a look by myself into your Plugins-Code and found myself a solution (if anyone cares^^)I personally use the Cookie Notice from dFactory-Plugin, its super easy to see with php if the user want to accept cookies.
You have just to add this tiny sniped to your functions.php:
if(class_exists('WC_Google_Analytics_Integration')) { if(! cn_cookies_accepted()) // returns false when user deny cookies (or not defined if he want) -> Opt in remove_filter('woocommerce_integrations', array(WC_Google_Analytics_Integration::get_instance(), 'add_integration'), 10); }If you want an other control function, you can also replace “cn_cookies_accepted” with your function
- This reply was modified 8 years ago by petschko.
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] GA Opt-In / HookMay I didn’t wrote what I want.
I don’t want to change the Google-JS-Code at all!
Your Plugin just inplements the Javascript code in the HTML-Header via PHP, I want to know if there is a hook (Serverside – PHP), where I can stop your PHP function from implementing the JS-Code (Analaytics) to the HTML-Head.
Thanks for the replies so far
- This reply was modified 8 years ago by petschko.
Forum: Plugins
In reply to: [Google Analytics for WooCommerce] GA Opt-In / HookIt would just help if there is a hook, which I can remove (Your function, which includes the Google-Javascript Code)
Then I could just remove the call of the function, which includes the Javascript code to the head, else it would not removed.
Something like that:
function gaOptIn() { if(! userAllowGA()) // Function declared by me, returns true or false // remove_action(/* stuff to remove your function */); }I have the same Problem here.
Its confusing for the user. The user can’t know which combinations are avialable and which not…
Had the same problem (also after downgrading/reinstalling)… Switching to an other Plugin worked for me but it’s sad…
@hydro1313
Thanks, I was going crazy bec of this =) Thanks for the link to the old Version, now it works again!Edit: For some reason it worked just 1 time oO Now its useless again, maybe I should get an other Plugin or write a little snipped by myself.
- This reply was modified 9 years ago by petschko.
Forum: Plugins
In reply to: [Site Reviews] Redirect user after reviewThanks for the very fast reply! That was what I’m looking for =)
Forum: Plugins
In reply to: [Site Reviews] Redirect user after reviewThanks for this, this helps! It there a documentation what can be inside the “ev” var?
Thanks, I’ve edited my Review… (If there is such a Function, the 3star Review is definetly wrong – I have overlooked it sorry)
Forum: Plugins
In reply to: [WooCommerce] WooCommerce 3.0 – Enable old Gallery?Okay, then I have to use the CSS-Solution
CSS-Backgrounds working fine as fix =)
/* Product-Gallery Transparency-Fix */ .woocommerce-product-gallery img.zoomImg { background-color: #FFF; }May add it to the core (I guess there some other Shops who using PNGs with transparency as well)?
Forum: Plugins
In reply to: [WooCommerce] WooCommerce 3.0 – Enable old Gallery?Sure. Here you go: https://4point-einlagen.de/produkt/business-aktiv-leatherline-schwarz-damen/
Maybe it can be done with CSS – So there is no option to turn on the old Gallery?Thanks for the fast reply so far =)
Forum: Plugins
In reply to: [WooCommerce] Woocommerce 3.0 and PHP7Yeah tested it since I read this, but I didn’t had any trouble with it. May its an other Plugin from the OP which causes this issues^^
PHP7 & WooCommerce 3.0.0 works fine for me and I fixed almost any style issue now. Keep up the good work =)
- This reply was modified 9 years, 2 months ago by petschko.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce 3.0 and PHP7I use PHP7 as well. Can you tell what is not working?
The Version 3.0 annoys me even without that issue, all translations are gone & some styles are <3<3<3<3ed up.
But if PHP 7 doesn’t work that would be a reason to go back to the prev version.
Petschko