GithubHelp home page GithubHelp logo

taggrs / taggrs-wordpress Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 154 KB

Easily integrate your Wordpress/Woocommerce site with TAGGRS Server Side Tracking!

License: Other

PHP 95.89% JavaScript 2.23% CSS 1.88%
ga4 google-analytics server-side-tracking woocommerce wordpress

taggrs-wordpress's Issues

Error in refund event

The refund event falsely assumes the product on the order line_item still exists.
In our case the product does not exists in the store anymore resulting in the following error:

Error: Call to a member function get_id() on bool in /wp-content/plugins/taggrs-wordpress-plugin/includes/events/refund.php:12

The event should check if the product exists before using the object.

Variant price issue

Hello. First of all, your plugin works great and I thank you for taking the time to make this.
In some tests I conducted, when I add the variant version of any product (different price occurs) to the cart, the "add_to_cart" event is not triggered with the variant price. The default price of the product is triggered.

Error in remove_from_cart event

[29-May-2024 14:31:34 UTC] PHP Fatal error:  Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /home/invulbres/domains/[*.nl/public_html/wp-admin/update-](http://*.nl/public_html/wp-admin/update-)core.php:565

Error in view_promotions event

Log file is full with errors from the view_promotions event.

Undefined variable $promotion_id in /wp-content/plugins/taggrs-wordpress-plugin/includes/events/view_promotion.php on line 52

Undefined variable $promotion_code in /wp-content/plugins/taggrs-wordpress-plugin/includes/events/view_promotion.php on line 53

Undefined variable $promotion_items in /wp-content/plugins/taggrs-wordpress-plugin/includes/events/view_promotion.php on line 54

The 3 variables mentioned above are only defined in the foreach loop above. But if the promotions array is empty is will result in the undefined variable errors.

After activation error

When I use the plugin I immediately get an error on the front of the website.
The rear continues to work.
I get the following error:

Fatal error: Uncaught Error: Call to undefined function is_product() in /home/richards/domains/brandinwebdesign.nl/public_html/wp-content/plugins/taggrs-wordpress/includes/events/view_item.php:15 Stack trace: # 0 /home///.nl/public_html/wp-includes/class-wp-hook.php(324): wc_gtm_view_item() #1 /home///.nl/public_html/wp-includes /class-wp-hook.php(348): WP_Hook->apply_filters() #2 /home///.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home///.nl/public_html/wp-includes/general-template.php(3068): do_action() #4 /home///.nl/public_html/wp-content/ plugins/oxygen/component-framework/oxygen-main-template.php(268): wp_footer() #5 /home///.nl/public_html/wp-includes/template-loader.php(106): include('...') #6 /home///.nl/public_html/wp-blog-header.php(19): require_once('...') #7 /home///.nl/public_html/index.php(17): require('...') #8 {main} thrown in /home///**.nl/public_html/wp-content/plugins/taggrs- wordpress/includes/events/view_item.php on line 15

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.