osCmax v2.5 User Manual
Results 1 to 5 of 5

matching product cross-sell with easy populate

This is a discussion on matching product cross-sell with easy populate within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, i have been using these contributions Matching Products Cross-Sell: osCommerce Community Add-Ons Support thread: MATCHING PRODUCTS CROSS-SELL - osCommerce ...

      
  1. #1
    New Member
    Join Date
    Sep 2008
    Posts
    21
    Rep Power
    0


    Default matching product cross-sell with easy populate

    Hi,
    i have been using these contributions

    Matching Products Cross-Sell: osCommerce Community Add-Ons
    Support thread: MATCHING PRODUCTS CROSS-SELL - osCommerce Community Support Forums

    EasyPopulate: osCommerce Community Add-Ons
    Support thread: Easy Populate & Products Attributes - osCommerce Community Support Forums


    the matching product cross-sell create SKUs for all the product but when i export the CSV file from easypopulate it does NOT have sku field in it.. is there any way to add it.
    so whenever we use exporting thru easypopulate it automatically gets product_ids from cross-sell contr and adds it to the export file??
    i really need this asap.
    please help me here guys.. im not too good with coding.. but i pick things easily.
    thanks in advance.
    bye

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: matching product cross-sell with easy populate

    Hi nahi_sonu,

    Your first mod stores the new SKUs in the products table ...

    So if you read the easypopulate.php code there are instructions in there to explain how to add new fields to your csv files. Look around line 250 ...

    // ** products table **
    // Lets say you have added a field to your "products" table called
    // "products_upc". The header name in your import file will be
    // called "v_products_upc". Then below you will change the line
    // that looks like this (without the comment double-slash at the beginning):
    // $custom_fields[TABLE_PRODUCTS] = array(); // this line is used if you
    have no custom fields to import/export
    //
    // TO:
    // $custom_fields[TABLE_PRODUCTS] = array( 'products_upc' => 'UPC' );
    So you need to find the line 300

    Code:
    $custom_fields[TABLE_PRODUCTS] = array(); // this line is used if you have no custom fields to import/export
    and change it to

    Code:
    $custom_fields[TABLE_PRODUCTS] = array( 'products_matching' => 'Matching_SKUs' );
    It is always worth checking in the code for help ...

    Hope this works for you - REMEMBER TO BACKUP BEFORE CHANGING ANYTHING.

    Regards,
    pgmarshall
    _______________________________

  3. #3
    New Member
    Join Date
    Sep 2008
    Posts
    21
    Rep Power
    0


    Default Re: matching product cross-sell with easy populate

    Hi,
    thanks for the reply.. right after posting this thread i was testing few settings in easy populate and was able to get it working..
    it was to change the

    // $custom_fields[TABLE_PRODUCTS] = array( 'products_upc' => 'UPC' );

    to

    $custom_fields[TABLE_PRODUCTS] = array( 'products_id' => 'SKU' );


    tc
    bbye

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: matching product cross-sell with easy populate

    nahi_sonu,

    I think you may need to use

    products_matching not products_id

    otherwise you will just get the products_id not the ones you have linked to using the mod - might be wrong since I do not use this mod.

    Glad you got it working,

    Regards,
    pgmarshall
    _______________________________

  5. #5
    New Member
    Join Date
    Sep 2008
    Posts
    21
    Rep Power
    0


    Default Re: matching product cross-sell with easy populate

    hey pgmarshall,
    the solution i mentioned above worked. as the contribution for cross sell uses products_id not products_matching.
    so
    // $custom_fields[TABLE_PRODUCTS] = array( 'products_upc' => 'UPC' );

    to

    $custom_fields[TABLE_PRODUCTS] = array( 'products_id' => 'SKU' );
    works like a charm.

    Resolved thread needs to be closed

Similar Threads

  1. Matching Products Cross-sell
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-28-2007, 12:00 PM
  2. Matching Products Cross-sell
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-27-2007, 11:30 AM
  3. Matching Products Cross-sell
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-09-2007, 11:15 AM
  4. Fast Easy Cross-Sell
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-23-2007, 04:24 AM
  5. Fast Easy Cross-Sell
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-20-2007, 07:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •