Plugin Directory

Changeset 2405780


Ignore:
Timestamp:
10/24/2020 07:52:40 AM (5 years ago)
Author:
amadercode
Message:

Upgrading the simplehtmldom library & create version tag.

Location:
wp-amazon-shop
Files:
67 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • wp-amazon-shop/trunk/includes/import/wp-amazon-shop-ikits.php

    r2182422 r2405780  
    11<?php
    22if (!defined('ABSPATH')) exit;
     3//use html parser
     4use simplehtmldom\HtmlWeb;
     5
    36if (!class_exists('ACL_WPAS_iKits')) {
    47
     
    598601            $products = array();
    599602            // Create a DOM object
    600             $html = new simple_html_dom();
    601             //$html->load_file($search_url);
    602             $html->load(urldecode(base64_decode($search_url)));//Search Result
     603            $doc = new HtmlWeb();
     604            $html = $doc->load(urldecode(base64_decode($search_url)));//Search Result
    603605            //return $html->plaintext;
    604606            if (gettype($html->find('span[data-component-type=s-result-info-bar]', 0)) != "NULL") {
  • wp-amazon-shop/trunk/includes/import/wp-amazon-shop-import.php

    r2404692 r2405780  
    44}
    55require_once( 'wp-amazon-shop-ikits.php');
     6//use html parser
     7use simplehtmldom\HtmlWeb;
    68class ACL_Amazon_Product_Import
    79{
     
    11031105        $proudct_url=$basic_url.$asin;
    11041106        // Create a DOM object
    1105         $html = new simple_html_dom();
    1106         $html->load_file($proudct_url);
     1107        // Create a DOM object
     1108        $doc = new HtmlWeb();
     1109        $html = $doc->load($proudct_url);
    11071110
    11081111        if(gettype($html->find('span.price', 0)) != "NULL") {
  • wp-amazon-shop/trunk/includes/wp-amazon-shop-handler.php

    r2404692 r2405780  
    33    exit; // Exit if accessed directly
    44}
     5//use html parser.
     6use simplehtmldom\HtmlWeb;
     7
    58class ACL_Amazon_Product_Handler
    69{
     
    142145        $proudct_url=$basic_url.$asin;
    143146         // Create a DOM object
    144          $html = new simple_html_dom();
    145          $html->load_file($proudct_url);
     147         $doc = new HtmlWeb();
     148         $html = $doc->load($proudct_url);
    146149         if(gettype($html->find('a#titlehref', 0)) != "NULL") {
    147150             $title_raw =$html->find('a#titlehref', 0)->innertext;
  • wp-amazon-shop/trunk/readme.txt

    r2404692 r2405780  
    44Tags: amazon, amazon shop,affiliate,amazon affiliate, dropship, amazon dropship,amazon product search, amazon product import,amazon product auto link
    55Requires at least: 4.0
    6 Tested up to: 5.5
     6Tested up to: 5.5.3
    77Stable tag: 2.1.0
    88Requires PHP: 5.6.0
     
    2222
    2323= Dropshipping & Affiliation with Amazon Free Version =
    24 📣 No PA API products Import with [Dropshipping & Affiliation with Amazon Chrome Extension](https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm)
    25 <hr />
    2624👉Easy & quick installation
    2725[Live Demo & Documentation](https://www.youtube.com/watch?v=ps1ekUOLNC8)
     
    4038👉Import Amazon products with Extended information on admin panel
    4139[Live Demo & Documentation](https://www.youtube.com/watch?v=NDjPUkuJx9c)
    42 <hr />
    43 👉Import products with Extended information from Amazon store using chrome extension
    44  [Live Demo & Documentation](https://www.youtube.com/watch?v=XEJkNWJ0KlM)
    4540<hr />
    4641👉Add to cart redirected to Amazon cart page
     
    5348= Dropshipping & Affiliation with Amazon Pro Version Features =
    5449<strong>( Included Free Version Features )</strong>
     50📣 No PA API products Import with [Dropshipping & Affiliation with Amazon Chrome Extension](https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm)
     51<hr />
    5552👉Display products by keyword search,ASIN number or url
    5653& Product details on the display product grid.
  • wp-amazon-shop/trunk/wp-amazon-shop.php

    r2404692 r2405780  
    88 * Author URI: http://www.amadercode.com/
    99 * Requires at least: 4.0
    10  * Tested up to: 5.5
     10 * Tested up to: 5.5.3
    1111 * Stable tag: 2.1.0
    1212 * Text Domain: wp-amazon-shop
     
    4040// Load Amazon sdk libraries
    4141require_once( 'includes/wp-amazon-shop-install.php');
    42 require_once( 'includes/lib/html/simple_html_dom.php');
     42require_once( 'includes/lib/simplehtmldom_2_0-RC2/HtmlWeb.php');
    4343//Load Plugin Operation class files
    4444require_once( 'includes/wp-amazon-shop-handler.php');
Note: See TracChangeset for help on using the changeset viewer.