Plugin Directory

Changeset 2880482


Ignore:
Timestamp:
03/15/2023 11:54:18 AM (3 years ago)
Author:
viaads
Message:

Empty Price Handling

Location:
viaads
Files:
16 added
5 edited

Legend:

Unmodified
Added
Removed
  • viaads/trunk/hooks/addCart.php

    r2876443 r2880482  
    7979            $shopEvent->Product_id = $product_id;
    8080            $shopEvent->Product_variant_id = $variation_id;
    81             $shopEvent->Price = $product->get_price();
     81            $shopEvent->Price = $product->get_price() == "" ? null : $product->get_price();
    8282        }
    8383
  • viaads/trunk/hooks/pageLook.php

    r2876443 r2880482  
    7777        $shopEvent->Product_sku = $product->get_sku();
    7878        $shopEvent->Product_id = $product->get_id();
    79         $shopEvent->Price = $product->get_price();
     79        $shopEvent->Price = $product->get_price() == "" ? null : $product->get_price();
    8080
    8181        //Plugin
  • viaads/trunk/hooks/removeCart.php

    r2876443 r2880482  
    8080        if (!is_bool($product)) {
    8181            $shopEvent->Product_sku = $product->get_sku();
    82             $shopEvent->Price = $product->get_price();
     82            $shopEvent->Price = $product->get_price() == "" ? null : $product->get_price();
    8383            $shopEvent->Product_id = $cart->cart_contents[$cart_item_key]['product_id'];
    8484            $shopEvent->Product_variant_id = $cart->cart_contents[$cart_item_key]['variation_id'];
  • viaads/trunk/readme.txt

    r2876443 r2880482  
    44Requires at least: 5.4
    55Tested up to: 6.1
    6 Stable tag: 1.1.6
     6Stable tag: 1.1.7
    77Requires PHP: 7.0
    88License: GPLv3
  • viaads/trunk/viaads.php

    r2876443 r2880482  
    33 * Plugin Name: ViaAds
    44 * Description: Plugin der muliggør forbindelsen til ViaAds / Plug-in enabling the connection to ViaAds.
    5  * Version: 1.1.6
     5 * Version: 1.1.7
    66 * Author: ViaAds
    77 * Author URI: https://www.viaads.dk/
Note: See TracChangeset for help on using the changeset viewer.