Changeset 2417791
- Timestamp:
- 11/13/2020 08:47:34 AM (5 years ago)
- Location:
- brainity-boost-ads/trunk
- Files:
-
- 3 edited
-
brainity.php (modified) (1 diff)
-
pixel/FacebookWordpressPixelInjection.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
brainity-boost-ads/trunk/brainity.php
r2392391 r2417791 9 9 Author: Brainity 10 10 Author URI: https://www.brainity.co 11 Version: 1.0.1 211 Version: 1.0.13 12 12 */ 13 13 -
brainity-boost-ads/trunk/pixel/FacebookWordpressPixelInjection.php
r2310000 r2417791 236 236 if ( !empty(FacebookPixel::getPixelId()) ) { 237 237 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 247 249 } 248 250 -
brainity-boost-ads/trunk/readme.txt
r2392391 r2417791 102 102 == Changelog == 103 103 104 = Brainity 1.0.13 = 105 106 * Fix issue with add to cart events. 107 104 108 = Brainity 1.0.12 = 105 109
Note: See TracChangeset
for help on using the changeset viewer.