Jairo Ochoa
Forum Replies Created
-
Hi @jamesosborne,
Now it works because I’ve fixed the function get_formatted_product() in /wp-content/plugins/google-site-kit/includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php
I’ve added these lines at the beginning of the function.$product = wc_get_product( $product );
if ( ! $product || ! $product instanceof WC_Product ) { return; }I would suggest developers of the plugin to add them also.
Thanks
- Form filled
- Site was crashed so I’ve entered debug and I could see the error message and discover the origin of the issue. I had to deactivate Site Kit to make the site run again.
- It occurs in both cases; enable and disabled.
I fixed just adding these lines at the beginning of get_formatted_product():
$product = wc_get_product( $product );
if ( ! $product || ! $product instanceof WC_Product ) { return; }Somehow there is no product object.
Notice that this website has a database of 35,000 car models.
Maker, model and year datatables are not in WP tables as Posts. They are in own tables.
When searching for a car model the results show the matching vehicles. Results are products but the array of results is created as $objData instead of WC_Product.Thanks
Forum: Plugins
In reply to: [WooCommerce] Product Categories List widget blockHi @shahzeenfarooq
Thanks for the tip.
Product Categories seems to be a good choice to solve the problem.Thanks @sandipmondal
Hi @ralucastn
Thanks for the script.
I have also developed a similar script. It would be great that it were included in the Core as has_shortcode() finds a shortcode anywhere.Regards
Hi @ralucastn
I think thatCartCheckoutUtils::is_checkout_page()returnstrueeven if the Checkout page were empty.
What it does is check if this page is registered in WooCommerce > Settings > Advanced and it ignores the content of the page.
I will test it to confirm it.
RegardsHi @mahfuzurwp
Thanks for your reply.
I’ll forward the request to these channels.
It’s a bit weird that we have to continuosly hack the Core to achieve better performance that WooCommerce should do by itself. Fortunately these tones of lines of code we re-use on each new website but it makes no sense to re invent the wheel … otherwise go back to the lovely shortcodes that run smooth and without surprises.
RegardsWe are on the same situation.
Although WooCommerce pages are automatically generated with a unique block, Chart or Checkout depending on the page, we always have to modify these pages.
Maybe to move these blocks into a Section/Column/Row, maybe to add and Spacer before the block because the block is hidden below the Header/Menu.
So, what I cannot understand that the function which @alexggj relates can only found blocks if they are on the first position.
If we switch to shortcodes and check with the function has_shortcode(), it founds the [woocommerce_cart] where ever it could be.
It seems that blocks development is going steps backwards.
Why do not blocks do at least the same as shortcoded do ?
RegardsForum: Plugins
In reply to: [WPVulnerability] Contact form rompeHola @javiercasares
Hemos detectado donde está el problema.
Pusimos storefront y ningún plugin salvo CF7 y empezamos a activar plugins hasta que llegando al tuyo fallaba. Si lo quitábamos no fallaba.
La cuestión es que es la combinación del tuyo y otro plugin que no está en el repositorio son la causa.
Es la combinación de ambos. Porque es un plugin que también gestiona correos.
Inicialmente como fallaba con el tuyo activo investigamos y vimos que unos cambios recientes eran de sanitización (lo vimos en github de tu plugin) y por eso lo veíamos claro. Pero no.
Vamos a investigar ese otro plugin y ver porqué se chocan.
Gracias por revisar también desde tu lado.
SaludosForum: Plugins
In reply to: [Contact Form 7] HTML and Headers bugHello again
We have detected that the reason is this plugin https://wordpress.org/plugins/wpvulnerability/
I’m reporting to them.
ThanksForum: Plugins
In reply to: [WooCommerce] WooCommerce allows 0 € and 0 items refundsHi @mosesmedh
It’s no need to make a video. It’s quite simple to replicate.
- Create an order. Choose any product you wanted.
- Save it and change status to Processing.
- Edit the order and press on Refund button (left side below order items)
- Do not add any product and do not add money to refund
- Press on Refund button (right side below Totals)
Now you have created a refund order with 0 items and 0 money. Why ? WooCommerce should have alert “please add some item or money to refund”.
Even more, you would be able to repeat from step 3 for 1 million times and WooCommerce would allow you to do it.
Regards
Forum: Plugins
In reply to: [The Events Calendar] Broken link /(/?:list)/ and /(/?:month)/Hi @tristan083
Since I’ve set admin language the same as website language it’s working fine.
Forum: Plugins
In reply to: [The Events Calendar] Broken link /(/?:list)/ and /(/?:month)/Hi @tristan083
I hope you can find the reason of the bug.
Let me know if I can help
ThanksForum: Plugins
In reply to: [The Events Calendar] Broken link /(/?:list)/ and /(/?:month)/Hi @tristan083
So you mean that this issue only affects user which are logged and who has a WP Admin language different to website language ?
Then, not logged users can browse the site without issues ?Forum: Plugins
In reply to: [The Events Calendar] Broken link /(/?:list)/ and /(/?:month)/Hi @tristan083
This site is in Spanish but meanwhile developing, I’m coding a plugin for this customer, I usually set my WP Admin in English.
Do you suggest it could be the reason ?
As I know language settings in user account are only for the Admin pages.
Let me know if it could be reason.
Thanks