clickingclients
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Raw data from shortcodesThanks again. I’ll leave this here for others to learn from also.
I added the following to my child theme functions.php// Flexible wrapping and styling of PDB value add_shortcode('wrapped_value', 'cc_wrapped_value' ); function cc_wrapped_value( $atts ) { vTag = sanitize_text_field( $atts['tag'] ); vClass = sanitize_text_field( $atts['class'] ); vId = sanitize_text_field( $atts['el_id'] ); $html = '<' . vTag . ' class="' . vClass . '" id="' . vId .'">'; $html .= do_shortcode( '[pdb_single record_id=' . $atts['record_id'] . ' fields=' . $atts['fields'] . ' template=bare-value ]' ); $html .= '</' . vTag . '>'; return $html; }Thank you.
I can confirm it has fixed it.
Awesomely quick response! Thank you.Thank you.
I can confirm it has fixed it.
Awesomely quick response! Thank you.I tried restoring the earlier version of Elementor and there was no change.
At this stage, I’ve deactivated “Defer Render-blocking JS” until SG fix it.Their changelog definitely indicates it is their change:
“Improved Async load of JS files
…
Moved lazyload script in footer
…”Let’s goooo SiteGround. 🙂
https://ww.wp.xz.cn/support/topic/sg-update-version-5-3-4-breaks-elementor-js/
- This reply was modified 6 years, 6 months ago by clickingclients.
Thank you 🙂
In the meantime I managed to locate and solve the “woocommerce_add_order_item_meta” warning.
Culprit = woo-custom-fields-for-variation
I modeled off the link below AND commented out the Plugin’s call to “woocommerce_add_order_item_meta” on line 26.// Save custom data to order item meta data add_action('woocommerce_checkout_create_order_line_item', 'save_custom_order_item_meta_data', 10, 4 ); function save_custom_order_item_meta_data( $item, $cart_item_key, $values, $order ) { if( isset( $values['options'] ) ){ if( ! empty( $values['options'] ) ) { foreach ( $values['options'] as $options ) { $name = $options['name']; if ( $options['price'] > 0 ) { $name .= ' (' . wc_price( get_var_product_addition_options_price( $options['price'] ) ) . ')'; } $item->update_meta_data( $name, $options['value'] ); } } } }Thanks again.
Thanks Ross. Much appreciated.
Feel free to reach out with any questions/stats/plugin lists you need to see further what happening.
On Siteground shared hosting, mainly Australian users, Cloudflare enabled (I believe ajax & checkout not cached).
I was thinking/hoping to add some useful logging around the place to focus further.
Perhaps within the ajax call itself, to see the timing.Thanks again.