• Resolved Phillip Dews

    (@phillipdewsblogger)


    Hello All,

    I am a developer and I built a site for a client of mine. What he wants is to use this plugin to set prices individually on each of the products. Sounds simple enough.

    However we use WP All Import Pro to import the the products from an external website, namely mobileshop.bz by using their API and an XML Link.

    You can see here the import settings and the adjust prices which is currently set at 20 euro extra for each of the products..
    check out this screenshot of the current import settings

    Now my client would like to know if this plugin can work well with WP All Import Pro and will he be able to set individual prices for a small amout of different products?

    Looking forward to your reply.
    Phillip Dews

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello Phillip

    Unfortunately, we don’t add any inputs/elements for the product.
    So you have to create rule for each product.
    Visit tab Tools to see .json structure.

    If you want to import rules from external file – please, adapt this code.
    thanks, Alex

    $file_path = WP_CONTENT_DIR . '/uploads/prices/pricing_rules.json';
    if (file_exists( $file_path )) {
      $data = json_decode(file_get_contents($file_path));
      WDP_Importer::import_rules($data,true); // true -- delete all rules before import
      unlink( $file_path );
    }
    • This reply was modified 4 years, 5 months ago by algol.plus.
    Thread Starter Phillip Dews

    (@phillipdewsblogger)

    Hi Alex,

    Thank you for that. How would you adapt it out of interest? And what file would this code be found?

    Many thanks.
    Phillip

    Plugin Author algol.plus

    (@algolplus)

    1. Visit >WooCommerce>Pricing Rules, create rules (for 2-3 products), visit tab “Tools” and you will see .json structure
    2. You have to generate such .json file for all products
    3. Run my code to import rules into our plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Itegration with WP All import Pro’ is closed to new replies.