HamidReza Abdipour
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] Hook (or webhook) when new transactions happenYou can use the
woo_wallet_transaction_recorded
action.
This action have 4 argument:$transaction_id, $user_id, $amount, $type
This is a sample to use this action:
add_action( 'woo_wallet_transaction_recorded', 'wallet_amount_change_notifier', 10, 4 );
function wallet_amount_change_notifier( $transaction_id, $user_id, $amount, $type ) {
if($type === 'credit'){//do what you want in credit transaction}
}Hi,
Thanks for your advise.
What I did:
1- Create a new variable with “Data Layer Variable” type and set “Data Layer Variable Name” to “ecommerce”.
2- Create a new variable with “Custom JavaScript” type and write this code:function(){ var ecommerceVar = {{ecommerce DLV}}; if ('currencyCode' in ecommerceVar){ ecommerceVar.currencyCode = 'USD'; } if ('currency' in ecommerceVar){ ecommerceVar.currency = 'USD'; } }
3- Edit “GA – Event – Ecom Events” Tag and set “Read Data from Variable” option to variable created in step 1.
Now ecommerce variable in tag manager preview return with new currency code.
What about orderData? I can do same steps for orderData. My question is in step 3 where should I set to use my variable and not to use data layer?
Thanks in advance
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] product_cat custom taxonomyI found the solution,
For who reach this topic use this filter to remove any taxonomy from exclude list:add_filter( 'yikes_simple_taxonomy_ordering_excluded_taxonomies', 'change_yikes_excluded_taxonomies', 10, 1 ); function change_yikes_excluded_taxonomies( $excluded_taxonomies ) { if (($key = array_search('product_cat', $excluded_taxonomies)) !== false) { unset($excluded_taxonomies[$key]); } return $excluded_taxonomies; }
Default excluded taxonomies:
// Array of taxonomies we want to exclude from being displayed in our options. $excluded_taxonomies = array( 'nav_menu', 'link_category', 'post_format', 'product_shipping_class', 'product_cat', 'product_type', 'edd_log_type', );
Forum: Plugins
In reply to: [LiteSpeed Cache] ESI and wp nonceYes, this section of logs related to this ESI:
09/15/21 10:44:25.298 [xxx.xxx.33.83:57096 2 lX7] [ESI] Appended nonce action to nonce list [action] my-nonce-sample 09/15/21 10:44:25.299 [xxx.xxx.33.83:57096 2 lX7] [ESI] param --- array ( 'action' => 'my-nonce-sample', '_ls_silence' => true, ) 09/15/21 10:44:25.299 [xxx.xxx.33.83:57096 2 lX7] [ESI] md5_string=nonceeyJhY3Rpb24iOiJwZW1pbmEtbGFuZGluZ3MtYWpheCIsIl9sc19zaWxlbmNlIjp0cnVlfQ== 09/15/21 10:44:25.299 [xxx.xxx.33.83:57096 2 lX7] [ESI] ?? [BLock_ID] nonce [wrapper] wp_create_nonce my-nonce-sample [Control] 09/15/21 10:44:25.299 [xxx.xxx.33.83:57096 2 lX7] <esi:include src='/landings/?lsesi=nonce&esi=eyJhY3Rpb24iOiJwZW1pbmEtbGFuZGluZ3MtYWpheCIsIl9sc19zaWxlbmNlIjp0cnVlfQ%3D%3D&_hash=03b7c625ad32951cf17ded3df8ea8cb9' as-var='1' /> 09/15/21 10:44:25.299 [xxx.xxx.33.83:57096 2 lX7] [ESI] Preserved to 0ddf77f31f9fd0db107c7a0059694d6d
Forum: Plugins
In reply to: [LiteSpeed Cache] Stop Generate UCSSLiteSpeed Technologies Tech Support:
Guest mode optimization will still use UCSS/CCSS service.
Latest dev commit may have smaller wp-config summary data usage. Give it a try.
Best regardsForum: Plugins
In reply to: [LiteSpeed Cache] Stop Generate UCSSAfter two or three tries, it clears the list. But immediately generate new URLs.
This list gets more than 8000 URLs and causes server load (for mysql process) and site speed gets extremely low.
As we discussed in Autoload size increasing unormal i tried to contact support and they said working on it. So I decided to disable this feature until the problem is solved.- This reply was modified 3 years, 10 months ago by HamidReza Abdipour.
Forum: Plugins
In reply to: [LiteSpeed Cache] Stop Generate UCSShttps://snipboard.io/A9yTgY.jpg
Report number: NDYGCJBA
Forum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalI have a problem with turning off this options. Bootstrap framework included in theme and some of styles (such as fonts) overwrites on bootstrap styles from theme style.css. When combine int/ext turned off, bootstrap styles loaded after my theme style.css. So fonts and other customized styles not overwrite on bootstrap. How can i manage the priority?
So can’t keeping off this options. I turned off, purged all and check the database autoload size, but nothing changed. Then restore options on.Forum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalIn previous report number, “JS Combine External and Inline” not turned off.
Report number: ZOAAQTSR
Forum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalHi,
I tried it, the problem still persists.Autoload size: 10.61M (litespeed.css._summary 11004878)
Report number: UPFMBMAT
- This reply was modified 3 years, 11 months ago by HamidReza Abdipour.
Forum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalHi,
Report number: HDHJLNLDForum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalHi,
I checked that. There isn’t any random string in CSS or JS. (only different is the post views number in html in every load)
I think these css addresses saved in that field in database related to “Generate UCSS” service. Currently it has 7138 URL list in queue waiting for cron (in one of subsites of the multisite).
Tried to Run Queue Manually and gets quota error:You don’t have enough quota for current service left this month.
It should have a limit number for URLs in list.
Forum: Plugins
In reply to: [LiteSpeed Cache] Autoload size increasing unormalUnfortunately no.
I tried to “Purge All” and “Empty Entire Cache” from Toolbox.
Once it solved by Empty Entire Cache. But now not work any more.
Also it increased daily. Now it gets 1.67M (litespeed.css._summary 1493038)
I checked this field from database. It’s filled by many css addresses.Forum: Plugins
In reply to: [LiteSpeed Cache] Google Tag Manager Not workingHi,
Google tag manager use<noscript>
tag. Turn off “Remove Noscript Tag” option in LiteSpeed Cache -> Page Optimization -> [3] Optimization.
You should Purge all cache after this change.Forum: Plugins
In reply to: [LiteSpeed Cache] LSCWP Admin bar (ESI)Hi,
Yes, it works on v3.6
Now problem solved by updating to v3.7-rc22 dev edition.