Plugin Directory

Changeset 2838166


Ignore:
Timestamp:
12/22/2022 09:04:37 PM (3 years ago)
Author:
viaads
Message:

Moved Number Format to Backend

Location:
viaads
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • viaads/trunk/readme.txt

    r2837965 r2838166  
    44Requires at least: 5.4
    55Tested up to: 6.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.1
    77Requires PHP: 7.0
    88License: GPLv3
  • viaads/trunk/sync.php

    r2833521 r2838166  
    119119        $product_object->Slug = $product->get_slug();
    120120        //Price
    121         $product_object->price = number_format( $product->get_price(), 2, ".", "" );
     121        $product_object->price = $product->get_price();
    122122        //Regular Price
    123         $product_object->regularPrice = number_format( $product->get_regular_price(), 2, ".", "" );
     123        $product_object->regularPrice = $product->get_regular_price();
    124124        //SalePrice
    125         $product_object->salePrice = number_format( $product->get_sale_price(), 2, ".", "" );
     125        $product_object->salePrice = $product->get_sale_price();
    126126
    127127        if ( $product->get_sale_price() != 0 ) {
     
    129129            $product_object->OnSale = true;
    130130            // Sale Price
    131             $product_object->SalePrice = number_format( $product->get_sale_price(), 2, ".", "" );
     131            $product_object->SalePrice = $product->get_sale_price();
    132132            // On Sale From Date
    133133            $dateOnSaleFrom = new DateTime( $product->get_date_on_sale_from() );
     
    174174                $child_object->DateCreated = $createdAt->format( 'c' );
    175175                // Gets the products Final Price
    176                 $childPrice = number_format( $child->get_price(), 2, ".", "" );
     176                $childPrice = $child->get_price();
    177177                $child_object->Price = $childPrice;
    178178                // Regular Price
    179                 $child_object->RegularPrice = number_format( $child->get_price(), 2, ".", "" );
     179                $child_object->RegularPrice = $child->get_price();
    180180                // On Sale Data
    181181                if ( $product->get_sale_price() != 0 ) {
     
    183183                    $child_object->OnSale = true;
    184184                    // Sale Price
    185                     $child_object->SalePrice = number_format( $child->get_sale_price(), 2, ".", "" );
     185                    $child_object->SalePrice = $child->get_sale_price();
    186186                    // On Sale From Date
    187187                    $dateOnSaleFrom = new DateTime( $child->get_date_on_sale_from() );
  • viaads/trunk/viaads.php

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