Plugin Directory

Changeset 2409104


Ignore:
Timestamp:
10/29/2020 02:03:45 PM (5 years ago)
Author:
morganrichards
Message:

Bug fixes and update to version 1.0.4 to auto update

Location:
auction-feed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • auction-feed/trunk/auction-feed.php

    r2408396 r2409104  
    22/**
    33 * @package Auction_Feed
    4  * @version 1.0.3
     4 * @version 1.0.4
    55 */
    66/*
     
    88Plugin URI: http://wordpress.org/plugins/auction-feed/
    99Description: Display your eBay items on your own website allowing visitors to search your products and buy them easily.  Choose options and styles to suit your wordpress theme for simple and seamless integration..
    10 Version: 1.0.3
     10Version: 1.0.4
    1111Author: OneStepDesign
    1212Author URI: http://onestepdesign.co.uk/
     
    594594      echo '    </div>' . PHP_EOL;
    595595      echo '  </div>' . PHP_EOL;
     596      echo '  <input type="hidden" name="website" id="website" value="' . $_SERVER['SERVER_NAME'] . '">' . PHP_EOL;
    596597      echo '  <button type="button" class="btn update-btn"> DISPLAY RESULTS</button> &nbsp;' . PHP_EOL;
    597598      wp_nonce_field();
     
    769770      }
    770771
    771       $ajaxUrl           = '/v1/' . rawurlencode($sellerId) . '/' . $marketplaceId . '/' . rawurlencode($theme) . '/' . $language . '/' . $itemsPerPage . '/' . (int)$showCategories . '/' . (int)$showSearchBox . '/' . (int)$showMultiplePages . '/' . $sortOrder . '/' . (int)$showLogo . '/' . (int)$linksInNewTab . '/' . $listingType . '/' . $keywords . '/' . $categoryId . '/' . (int)$showBorder . '/' . $borderColour . '/' . $backgroundColour . '/' . $textColour . '/1/';
     772      $ajaxUrl           = '/v1/' . rawurlencode($sellerId) . '/' . $marketplaceId . '/' . rawurlencode($theme) . '/' . $language . '/' . $itemsPerPage . '/' . (int)$showCategories . '/' . (int)$showSearchBox . '/' . (int)$showMultiplePages . '/' . $sortOrder . '/' . (int)$showLogo . '/' . (int)$linksInNewTab . '/' . $listingType . '/' . $keywords . '/' . $categoryId . '/' . (int)$showBorder . '/' . $borderColour . '/' . $backgroundColour . '/' . $textColour . '/1/' . $_SERVER['SERVER_NAME'] . '/';
    772773
    773774      $dbArray = array(
     
    840841      }
    841842
    842       $url  = 'https://www.auctionfeedonyourwebsite.co.uk/ebay' . $ajaxUrl . '?updateDatabase=wordpress';
     843      $url  = 'https://www.auctionfeedonyourwebsite.co.uk/wordpress' . $ajaxUrl . '?updateDatabase=wordpress';
    843844      $data = fopen($url, 'r');
    844845
  • auction-feed/trunk/js/setup-feed.js

    r2399370 r2409104  
    4545      backgroundColour = jQuery('#backgroundColour').val().replace('#','');
    4646      textColour       = jQuery('#textColour').val().replace('#','');
     47      website          = jQuery('#website').val();
    4748
    4849      itemsPerPage   = jQuery('#itemsPerPage').val();
     
    9293
    9394      if (sellerId != '') {
    94         link =  '/v1/' + sellerId + '/' + marketplaceId + '/' + theme + '/' + language + '/' + itemsPerPage + '/' + showCategories + '/' + showSearchBox + '/' + showMultiplePages + '/' + sortOrder + '/' + showLogo + '/' + linksInNewTab + '/' + listingType + '/' + keywords + '/' + categoryId + '/' + showBorder + '/' + borderColour + '/' + backgroundColour + '/' + textColour + '/' + page + '/';
     95        link =  '/v1/' + sellerId + '/' + marketplaceId + '/' + theme + '/' + language + '/' + itemsPerPage + '/' + showCategories + '/' + showSearchBox + '/' + showMultiplePages + '/' + sortOrder + '/' + showLogo + '/' + linksInNewTab + '/' + listingType + '/' + keywords + '/' + categoryId + '/' + showBorder + '/' + borderColour + '/' + backgroundColour + '/' + textColour + '/' + page + '/'  + website + '/';
    9596
    9697        jQuery.ajax({
    97           url:      'https://www.auctionfeedonyourwebsite.co.uk/ebay' + link,
     98          url:      'https://www.auctionfeedonyourwebsite.co.uk/wordpress' + link,
    9899          methond:  'POST',
    99100          dataType: 'html',
Note: See TracChangeset for help on using the changeset viewer.