Plugin Directory

Changeset 2585500


Ignore:
Timestamp:
08/19/2021 01:29:05 PM (5 years ago)
Author:
haitham22
Message:

Correction some codes in files

Location:
raccoon-platform/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • raccoon-platform/trunk/Raccoon-platform.php

    r2546948 r2585500  
    99 * Description: More informed customers reflect more sales. Here are the features you get from using Raccoon.
    1010
    11  * Version: 1.5
     11 * Version: 2.0.0
    1212 * License: GPLv2 or Later
    1313 * Text Domain: Raccoon-Platform
  • raccoon-platform/trunk/Readme.txt

    r2546948 r2585500  
    55Requires at least: 3.1
    66Tested up to: 5.7.2
    7 Stable tag: 1.5
     7Stable tag: 2.0.0
    88Requires PHP: 7.0
    99License: GPLv3 or later
  • raccoon-platform/trunk/include/Popular_items.php

    r2585157 r2585500  
    5353        $response = wp_remote_get( 'https://api.raccoonplatform.com:5000/recommend/popular_items/' . $apiKay . '/' . $action . '/' . $number_items . '' );
    5454
    55 //        print_r($response);
     55
    5656
    5757        $this->output = wp_remote_retrieve_body( $response );
     
    6666        $product_id = array();
    6767        $result = json_decode($this->output, true);
    68 //        print_r(count($result));
     68
    6969        if( $result['res'] > 0){
    7070        foreach ($result['res'] as $key => $product){
  • raccoon-platform/trunk/include/Related_items.php

    r2546677 r2585500  
    4141
    4242          $result = json_decode($this->output, true);
    43           if($result){
     43          if($result['res'] > 0 ){
    4444          foreach ($result['res'] as $key => $product){
    4545              array_push($product_id, $product['key']);
  • raccoon-platform/trunk/include/Session_based.php

    r2546677 r2585500  
    4141        $product_id = array();
    4242        $result = json_decode($this->output, true);
    43         if($result){
     43        if($result['res'] > 0 ){
    4444        foreach ($result['res'] as $key => $product){
    4545            array_push($product_id, $product['iid']);
Note: See TracChangeset for help on using the changeset viewer.