Giter Club home page Giter Club logo

synerise-for-woocommerce's People

Contributors

hellward avatar kamilkanik avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mevero

synerise-for-woocommerce's Issues

Versioning and tags?

We use composer to get your plugin (currently from "master"). To make our CI builds slightly more reproducible, it would be useful to introduce some versioning in synerise-for-woocommerce and tag each version (for people who prefer not to discover regression after unexpected upstream changes - just in general, I don't refer to synerise-for-woocommerce in particular). WDYT?

support php8.1

Plugin support php 8.1 ? I have many notices like

[06-Jun-2023 13:57:29 UTC] PHP Deprecated: Return type of Synerise\DataManagement\Model\InlineResponse2003::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in app/plugins/synerise-for-woocommerce/lib/api-data-management/Model/InlineResponse2003.php on line 229

The 'Place Order' event is not working.

hi, the order_placed event not working in 1.05.

2023-08-08T14:27:08+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to Synerise\Integration\Service\Client_Service::prepare_client_params_from_order() must be an instance of WC_Order, null given, called in /var/www/app/plugins/synerise-for-woocommerce/src/Event/class-event-order-placed.php on line 33 and defined in /var/www//app/plugins/synerise-for-woocommerce/src/Service/class-client-service.php:42 Stack trace: #0 /var/www/app/plugins/synerise-for-woocommerce/src/Event/class-event-order-placed.php(33): Synerise\Integration\Service\Client_Service::prepare_client_params_from_order() #1 /var/www/wp/wp-includes/class-wp-hook.php(310): Synerise\Integration\Event\Event_Order_Placed->execute() #2 /var/www/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /var/www/wp/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /var/www/app/plug w /var/www/app/plugins/synerise-for-woocommerce/src/Service/class-client-service.php w linii 42

Missing variable $order

Posible fix: add $order = wc_get_order($order_id)

public function execute(int $order_id)
{
if (!$this->is_event_enabled()) {
return;
}
try {
$this->process_event($this->prepare_event($order_id));
if (!is_user_logged_in()) {
$client_params_json = \GuzzleHttp\json_encode([Client_Service::prepare_client_params_from_order($order)]);

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.