Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • You 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}
    }

    Thread Starter HamidReza Abdipour

    (@abdipour)

    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

    Thread Starter HamidReza Abdipour

    (@abdipour)

    I 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',
    		);
    Thread Starter HamidReza Abdipour

    (@abdipour)

    Yes, 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
    Thread Starter HamidReza Abdipour

    (@abdipour)

    LiteSpeed 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 regards

    Thread Starter HamidReza Abdipour

    (@abdipour)

    After 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.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    https://snipboard.io/A9yTgY.jpg

    Report number: NDYGCJBA

    Thread Starter HamidReza Abdipour

    (@abdipour)

    I 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.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    In previous report number, “JS Combine External and Inline” not turned off.

    Report number: ZOAAQTSR

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    I tried it, the problem still persists.

    Autoload size: 10.61M (litespeed.css._summary 11004878)

    Report number: UPFMBMAT

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    Report number: HDHJLNLD

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    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.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Unfortunately 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.

    Hi,
    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.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    Yes, it works on v3.6
    Now problem solved by updating to v3.7-rc22 dev edition.

Viewing 15 replies - 1 through 15 (of 27 total)