Plugin Directory

Changeset 2417791


Ignore:
Timestamp:
11/13/2020 08:47:34 AM (5 years ago)
Author:
xevibrainity
Message:

Commit message

Location:
brainity-boost-ads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • brainity-boost-ads/trunk/brainity.php

    r2392391 r2417791  
    99Author: Brainity
    1010Author URI: https://www.brainity.co
    11 Version: 1.0.12
     11Version: 1.0.13
    1212*/
    1313
  • brainity-boost-ads/trunk/pixel/FacebookWordpressPixelInjection.php

    r2310000 r2417791  
    236236        if ( !empty(FacebookPixel::getPixelId()) ) {
    237237
    238             $script = $this->pixel->get_event_script( 'AddToCart', [
    239                 'content_ids'  => $this->get_cart_content_ids(),
    240                 'content_type' => 'product',
    241                 'contents'     => $this->get_cart_contents(),
    242                 'value'        => $this->get_cart_total(),
    243                 'currency'     => get_woocommerce_currency(),
    244             ] );
    245 
    246             $fragments['div.wc-facebook-pixel-event-placeholder'] = '<div class="wc-facebook-pixel-event-placeholder">' . $script . '</div>';
     238            /*$product_ids = $this->get_content_ids_from_cart(WC()->cart->get_cart());
     239
     240            FacebookPixel::inject_event(
     241                'AddToCart',
     242                array(
     243                    'content_ids' => json_encode($product_ids),
     244                    'content_type' => 'product',
     245                    'value' => WC()->cart->total,
     246                    'currency' => get_woocommerce_currency()
     247                ));*/
     248           
    247249        }
    248250
  • brainity-boost-ads/trunk/readme.txt

    r2392391 r2417791  
    102102== Changelog ==
    103103
     104= Brainity 1.0.13 =
     105
     106* Fix issue with add to cart events.
     107
    104108= Brainity 1.0.12 =
    105109
Note: See TracChangeset for help on using the changeset viewer.