Plugin Directory

Changeset 3336976


Ignore:
Timestamp:
07/31/2025 05:49:43 AM (8 months ago)
Author:
signcustomiser
Message:

Release version 1.5.4

Location:
sign-customiser
Files:
11 added
4 edited

Legend:

Unmodified
Added
Removed
  • sign-customiser/trunk/cart.php

    r3314209 r3336976  
    139139      'custom_background_path' => $customBackgroundUrl,
    140140      'custom_background_original_path' => $customBackgroundOriginalUrl,
    141       'product_type_paths' => $productTypePaths
     141      'product_type_paths' => $productTypePaths,
     142      'logo_original_path' => $data['logoOriginalUrl'] ?? null,
    142143    ], [], [
    143144      'blocking' => false,
  • sign-customiser/trunk/orders.php

    r3316663 r3336976  
    11<?php
     2
     3function scpwp_check_for_webhooks()
     4{
     5  if (!class_exists('WooCommerce')) {
     6    return false;
     7  }
     8
     9  try {
     10    $data_store = WC_Data_Store::load('webhook');
     11    $webhook_ids = $data_store->get_webhooks_ids();
     12
     13    foreach ($webhook_ids as $webhook_id) {
     14      $webhook = new WC_Webhook($webhook_id);
     15
     16      if (strpos($webhook->get_delivery_url(), 'signcustomiser.com') && $webhook->get_status() === 'active') {
     17        return true;
     18      }
     19    }
     20  } catch (\Exception $exception) {
     21    //
     22  }
     23
     24  return false;
     25}
    226
    327/**
    428 * @param WC_Order $order
    529 */
    6 function spcwp_on_order_created($order_id) {
     30function spcwp_on_order_created($order_id)
     31{
    732  $logger = new SPCWP_Logger();
    833  $logger->log("Starting order create {$order_id} via hook " . current_filter());
     34
     35  if (scpwp_check_for_webhooks()) {
     36    $logger->log('API Webhooks are registered, skipping');
     37    $logger->commit();
     38    return;
     39  }
    940
    1041  // Check if we've already processed this order
     
    3869    }
    3970
    40     $product = wc_get_product( $product_id );
     71    $product = wc_get_product($product_id);
    4172
    4273    $customiserId = $product->get_meta('spcwp_customiser_id');
  • sign-customiser/trunk/readme.txt

    r3316663 r3336976  
    33Tested up to: 6.6.1
    44Requires at least: 6.5
    5 Stable tag: 1.5.3
     5Stable tag: 1.5.4
    66Requires PHP: 7.4
    77License: GPLv2 or later
     
    6363== Changelog ==
    6464
     65= 1.6.0 =
     66* Adds support for API connections.
     67
     68= 1.5.4 =
     69* Adds support for ai custom design flow.
     70
    6571= 1.5.3 =
    6672* Only marks an order as sent if it has items.
  • sign-customiser/trunk/sign-customiser.php

    r3316663 r3336976  
    44Plugin Name: Sign Customiser
    55Plugin URI: https://signcustomiser.com
    6 Version: 1.5.3
     6Version: 1.6.0
    77Requires Plugins: woocommerce
    88License: GPL v2 or later
Note: See TracChangeset for help on using the changeset viewer.