Plugin Directory

Changeset 1519308


Ignore:
Timestamp:
10/21/2016 02:40:50 PM (9 years ago)
Author:
nvaughan84
Message:

fixed bugs with shipping and variants

Location:
merchant-xml-feed-generator/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • merchant-xml-feed-generator/trunk/gmpf-generator.php

    r1392794 r1519308  
    190190        $variants = unserialize($variants);
    191191
    192         if(in_array($product_id, $variants))
     192        if($variants && in_array($product_id, $variants))
    193193        {
    194194            return true;
  • merchant-xml-feed-generator/trunk/gmpf-shipping.php

    r1323906 r1519308  
    6969                $countries = $settings['countries'];
    7070
    71                 foreach($countries as $country)
    72                 {
    73                     $selected = ($country == $ship_to) ? 'selected' : '';
    74                     $shipping_country .= '<option '.$selected.' value="'.$country.'">'.$country.'</option>';
    75                 }
     71                if($countries):
     72                    foreach($countries as $country)
     73                    {
     74                        $selected = ($country == $ship_to) ? 'selected' : '';
     75                        $shipping_country .= '<option '.$selected.' value="'.$country.'">'.$country.'</option>';
     76                    }
     77                endif;
    7678
    7779            $shipping_country .= '</select>';
  • merchant-xml-feed-generator/trunk/gmpf.php

    r1392795 r1519308  
    44Plugin URI: http://www.gmpf.co.uk/
    55Description: Create Feeds for Google Merchant - promote your WooCommerce store on Google
    6 Version: 1.1.3
     6Version: 1.1.4
    77Author: Nick Vaughan
    88Author URI:
  • merchant-xml-feed-generator/trunk/readme.txt

    r1392795 r1519308  
    4545== Changelog ==
    4646
     47= 1.4 =
     48* Fixed in_array() expects parameter 2 to be array, boolean given  error
     49* Fixed Invalid argument supplied for foreach() in shipping.php
     50
    4751= 1.2 =
    4852* Fixed error when generating xml feed
Note: See TracChangeset for help on using the changeset viewer.