Bob
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: no auto redirects after changing post slug@suhassurse I am not looking to pull in any 3rd party plugin. This is supposed to work in WordPress Core.
Forum: Plugins
In reply to: [WooCommerce] account page filter orders by statusI have found a solution using custom code
add_filter( 'woocommerce_my_account_my_orders_query', 'custom_woocommerce_my_account_my_orders_query', 10, 1); function custom_woocommerce_my_account_my_orders_query($array) { if ( isset($_GET['status']) ) { $array['post_status'] = [ $_GET['status'] ]; } return $array; }Then use /my-account/orders?status=wc-completed to filter orders.
Forum: Plugins
In reply to: [Bosima WeChat Page Sharing] 手机微信内分享无摘要和缩略图解决了,是因为公众号内未完成app认证(上传txt文件)
Forum: Plugins
In reply to: [CM Tooltip Glossary] Highlight terms in ChineseI am willing to purchase the premium version. But could you direct me to a showcase with Chinese terms or feature disclosure page on your site? I didn’t manage to find either.
Thanks.
Forum: Plugins
In reply to: [HTML5 Cumulus] render tags in full width.Forum: Plugins
In reply to: [WooCommerce] unable to remove item from cart> Right. Which means either there is caching or you have something interfering via a custom function or there is a database value causing this.
Where can I see these database values?
> I think you need to start debugging the response of both the ajax remove from cart and the callback and see what it comes up with. It seems this is beyond level 1 troubleshooting.
I guess so.
Thanks for helping.
Forum: Plugins
In reply to: [WooCommerce] unable to remove item from cartThanks for checking.
Before I submitted this post, I disabled all custom code. But there is a plugin enabled which is TranslatePress. If I disable that plugin, item removal from cart would work. I was actually contacting TranslatePress and they suggested I double-check the issue with a fresh WP installation. The twist is that if I enable both woocommerce and TranslatePress on a fresh WP installation, everything works …
TranslatePress tech folks suggested there might be a caching issue but as I checked and didn’t find anything related to that. Unfortunately, they are not willing to help because the fresh installation seemed to prove that the issue isn’t really caused by their plugin.
I am wondering what possible cause could have caused this. Like what kind of HOOKS could potentially disrupt the item removal process from the cart. I am not WC dev savvy so all I can do is speculate.
I did check TranslatePress’ code, there seems to be something related to cart items, although I am not sure 100% they could cause the problem or not, here is a snippet:
/** * Compatibility with WooCommerce cart product name translation * For products with the character - in the product name. * * There is a difference between the rendered – and –. Two different characters. * Somehow in the cart is the minus one, in the shop listing is the longer separator. * Make the cart contain the same type of character which is obtained using get_the_title. */ add_filter( 'woocommerce_cart_item_name', 'trp_woo_cart_item_name', 8, 3 ); function trp_woo_cart_item_name( $product_name, $cart_item, $cart_item_key ){ if ( isset( $cart_item['product_id'] ) ){ $title = get_the_title( $cart_item['product_id'] ); if ( !empty( $title )){ if ( strpos( $product_name, '</a>' ) ) { preg_match_all('~<a(.*?)href="([^"]+)"(.*?)>~', $product_name, $matches); $product_name = sprintf( '<a href="%s">%s</a>', esc_url( $matches[2][0] ), $title ); } } } return $product_name; }There are other bits, I could send you a copy of the plugin if you want.
Thanks again.
Forum: Plugins
In reply to: [WooCommerce] unable to remove item from cartForum: Plugins
In reply to: [WooCommerce] unable to remove item from cartHi,
Thanks for responding.
I can give you temporary admin access to my staging, shall we set up a private channel?
No worries. Thanks for taking the time.
I tried the setlocale() bit, put it into the beginning of wp-config.php, uploaded an image with Chinese filename. Filename still got removed completely. The plugin might have to find a way to match non-ascill chars.
@contactshish13
reduce the cache time by using 1_mins instead of 1_hours
How?
Figured it out. Just pick a regular font from the configuration.
Forum: Plugins
In reply to: [JC Submenu] Woocommerce Product Categories Menu@dirtcheaprc I’m on Astra theme, did the modifications, still not working tho 🙁
Forum: Plugins
In reply to: [Better Font Awesome] JSDelivr version falling way behindPlugin shows