Plugin Directory

Changeset 2138741


Ignore:
Timestamp:
08/13/2019 10:05:32 AM (7 years ago)
Author:
Perzonalization
Message:

fixing a bug

Location:
perzonalization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perzonalization/tags/1.4.6/perzonalization.php

    r2138732 r2138741  
    573573        }
    574574       
    575         if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_front_page() || is_order_received_page()) {
     575        if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_404() || is_front_page() || is_order_received_page()) {
    576576
    577577            global $woocommerce;
     
    608608        }
    609609
    610         if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_front_page() || is_order_received_page()) {
     610        if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_404() || is_front_page() || is_order_received_page()) {
    611611            echo "<script type='text/javascript' async>(function (w, d, n, i, a, l, s, r, c) { r = Math.round(Math.random() * 1e4); c = d.getElementById(i); if (!c) { s = d.createElement(n); s.type = 'text/javascript'; s.id = i; s.src = '//' + a + '?rnd=' + r; s.async = 1; l = d.getElementsByTagName(n)[0]; l.parentNode.insertBefore(s, l); } if (c) { runPRZPlugin(true); } })(window, document, 'script', 'prz_loader', 'cdn.perzonalization.com/js/loader/woocommerce.loader.js'); </script>";
    612612        }
  • perzonalization/trunk/perzonalization.php

    r2138732 r2138741  
    11<?php
    22/**
    3  * Plugin Name: Perzonalization  - AI Related Products & Upsell
     3 * Plugin Name: Perzonalization  - Recommendations in Real Time
    44 * Plugin URI: perzonalization.com
    55 * Version:  1.4.6
    6  * Description: With the help of more than 3 billion pages we have personalized so far, we have learned that understanding the visitor is the key in personalizing an online store. That is why we not only analyse behaviours around products but also the visitor's individual preferences and similar users' preferences. Works with activated wooCommerce API.
     6 * Description: With the help of more than 5 billion pages we have personalized so far, we have learned that understanding the visitor is the key in personalizing an online store. That is why we not only analyse behaviours around products but also the visitor's individual preferences and similar users' preferences. Works with activated wooCommerce API.
    77 * Author: Perzonalization
    88 * Author URI: http://www.perzonalization.com/woocommerce-plugin/
     
    564564       
    565565        if (is_404()) {
    566             $user_id = get_current_user_id();
     566            $user_id = get_current_user_id();
    567567            echo "<script type='text/javascript'>
    568568                  var detailsForPrz = {
     
    573573        }
    574574       
    575         if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_front_page() || is_order_received_page()) {
     575        if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_404() || is_front_page() || is_order_received_page()) {
    576576
    577577            global $woocommerce;
     
    608608        }
    609609
    610         if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_front_page() || is_order_received_page()) {
     610        if (is_woocommerce() || is_search() || is_checkout() || is_cart() || is_404() || is_front_page() || is_order_received_page()) {
    611611            echo "<script type='text/javascript' async>(function (w, d, n, i, a, l, s, r, c) { r = Math.round(Math.random() * 1e4); c = d.getElementById(i); if (!c) { s = d.createElement(n); s.type = 'text/javascript'; s.id = i; s.src = '//' + a + '?rnd=' + r; s.async = 1; l = d.getElementsByTagName(n)[0]; l.parentNode.insertBefore(s, l); } if (c) { runPRZPlugin(true); } })(window, document, 'script', 'prz_loader', 'cdn.perzonalization.com/js/loader/woocommerce.loader.js'); </script>";
    612612        }
     613       
    613614        echo "
    614615        <!--PERZONALIZATION-END Do not modify or delete this comment-->";
Note: See TracChangeset for help on using the changeset viewer.