Chris
Forum Replies Created
-
The ‘gspbwoo_wc_dropdown_variation_attribute_options’ function is outputting the frontend content, which complicates our addition of the ‘slider’ and ‘grid’ attributes. This approach results in the generation of extraneous code and JavaScript, which could potentially cause unnecessary bloat in WooCommerce. This is the reason we unhooked your ‘gspbwoo_wc_dropdown_variation_attribute_options’ function and replaced it with our own combined solution.
However, a more effective approach might be if your ‘gspbwoo_wc_dropdown_variation_attribute_options’ function was built to be extendable. This would allow us, and potentially other developers, to add custom attributes without needing to overwrite the entire function, thereby preventing the output of unnecessary code and ensuring a more streamlined operation.
We are looking to add two additional attribute types – ‘grid’ and ‘slider’ – to be utilized as product page variations. For instance, if we were to link an attribute to the ‘slider’ type in the backend, the product page would then display a slider in place of a dropdown or one of your default types (select, text tag, image tag, color, etc.).
However, the issue lies in the ‘GSPBWOO_Attribute_Swatches’ class, where the ‘init_term_hooks’ method is designed to dynamically search for methods based on the discovered types, including the ones we introduced through our own plugin. As it stands, it seeks non-existent methods such as ‘add_slider_field’, ‘edit_slider_field’, ‘add_grid_field’, and ‘edit_grid_field’ within your class.
Moreover, the ‘gspbwoo_wc_dropdown_variation_attribute_options’ function in the ‘helper-functions.php’ file seems to be causing difficulties as well. As a temporary solution, we have chosen to unhook it and modify your function to allow our attribute types to coexist with your default types. As a result, our ‘slider’ and ‘grid’ options will be correctly displayed on the product page, when applicable.
i hope this makes sense, i am trying to explain it in my best english
/* Initialization attribute term hooks */ public function init_term_hooks() { $swatch_options = get_option( $this->option_name, array() ); $allowed = array( 'select', 'color' , 'image' , 'text' , 'image_tag' ); $swatch_options = array_intersect($swatch_options, $allowed); .... your code .... }
A dirty fix is that we extend our own class with yours and then we override all methods that are throwing errors but thats not how we want to procede. please fix this ??
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Add2Cart call2actionIt does not even updates the minicart product count
when i do a refresh page then the count is updated in your minicart
- This reply was modified 1 year, 9 months ago by Chris.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Add2Cart call2actionWhen i click on the “add2cart” button on this webpage: https://woocommerce.greenshiftwp.com/
your minicart does not slide open?
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Extra settingsah found it: https://localhost:9000/wp-admin/admin.php?page=wc-settings&tab=gspbwoo
- This reply was modified 1 year, 9 months ago by Chris.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Ajax problemsNevermind we found the problem. It seems that after we import your demo content we nee to re-apply the pop-up content in the mega menu’s. they are by default empty after an import it seems.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Demo importtnx it is working
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt worki can send y ou the login creds thru your company website if you want?
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt workHi, sorry had the flu. I would but i dont want to share our dev website to the world. is it somehow possible to pm/email you? Then i can give also inlog and even ssh
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt workI am trying to set it up for
Cloudflare (caching)
Plugins:
Reduce Unused CSS Solution with Critical CSS For WP
Woocommerce
Theme:
GeneratePress
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt worksidenote: your Plug-in Title is confusing, i thought it was only for CSS and not for JS?
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt workerror message in console is:
= Calculate Load Times: there are NO
resource
performance records
(index):427 1404, https://area51.xxxx.nl/null
(anonymous)@(index):424
cwvpsbReplaceScript@(index):424
await in cwvpsbReplaceScript (async)cwvpsbLoadDelayedScripts@(index):424
ccwpTriggerDelayedScripts@(index):339
(anonymous)@(index):327
setTimeout (async)calculate_load_times@(index):326
(anonymous)@(index):334
when i activate my plugins there are more error messages. mostley bugging about defering etc …
Forum: Plugins
In reply to: [Reduce Unused CSS Solution with Critical CSS For WP] Plug-in doesnt workin your css optimizer log i read this:
[01/10/2023 06:09:38 pm] Begin execute CSS Optimizer on https://area51.xxxx.nl/hello-world/
[01/10/2023 06:09:38 pm] CSS Optimizer is not activated. Execution ended on https://area51.xxxxx.nl/hello-world/
[01/10/2023 06:09:41 pm] Begin execute CSS Optimizer on https://area51.xxxxx.nl/
[01/10/2023 06:09:41 pm] CSS Optimizer is not activated. Execution ended on https://area51.xxxx.nl/Do i need to install something?