Follow

Pre/Post Processing Script Snippets

Pre/Post Processing and snippets

 
 

Script snippets can be added to the Pre/Post Processing boxes at the bottom of your ebay configuration page to create specific rules outside of the plug-ins creating the rest of the configuration page.

 

  1. Want to add the word Book at the end of your ebay titles? Add this to your Post-Processing box.
    if ( $passin->{item}->{media} =~ /(hardback|hardcover|paperback|Spiral-bound|Mass Market|Binding|Board book|Cloth)/i ) 
    {
     $passout->{ebay_out}->{Title} .= " Book";
    }
  2. Want to add the word New at the end of your eBay Titles? Add this to your Post-Processing box.
    if ( $passin->{item}->{condition} == 11 ) { $passout->{ebay_out}->{Title} .= " New"; }
    
  3. For Custom Titles: Add the following to your Post-Processing box. Replace p0 with whichever private field you want to use for the Title.
    $passout->{ebay_out}->{title} = $passin->{item}->{p0};
    
  4. Here's a better author adder that won't leave you with JUST the author in the case where the author line is > 55 characters
    $author = $passin->{item}->{author}; 
    $title = $passin->{item}->{title}; 
    if ( length ( $title ) < 60 ) 
    { 
      $passout->{ebay_out}->{Title} = substr ( $author, 0, ( 75 - length ( $title ) ) )." .. ".$title;
    }
    

     

  5. This is just like the one above, but it does the title then author
    $author = $passin->{item}->{author}; 
    $title = $passin->{item}->{title}; 
    if ( length ( $title ) < 60 ) 
    {
    $passout->{ebay_out}->{Title} = $title." .. ".substr ( $author, 0, ( 75 - length ( $title ) ) ); 
    } 
    

     

  6. To make an exception to a certain from sku from eBay script enter the following to your Pre-Processing box and Replace exclusionsku with which ever sku you are wanting excluded:
    if ( !$passin->{item}->{eby_item_id} 
    && ( $passin->{item}->{price} < 20.00 )
    && ( $passin->{item}->{sku} !~ /exclusionsku\-12k/i ) ) 
    { 
    return undef; 
    }
    

     

  7. For No international shipping add the following to your Post-Processing block of you ebay configuration page.
    delete( $passout->{ebay_out}->{ShippingDetails}->{InternationalShippingServiceOption} ); 
    
  8. Put this into your Pre-Processing box to NOT offer Priority Shipping.
    $passin->{item}->{expd} = 'n';
    

     

  9. Want to allow International Shipping on just eBay? Add this line to your Pre-Processing box.
    $passin->{item}->{intl} = 'y';

     

  10. Want to allow Priority Shipping on just eBay?</b> Add this line to your Pre-Processing block.
    $passin->{item}->{expd} = 'y';
  11. If you want to enter your first category number in Private Field 0 (p0). This will look in your p0 for your store category number and if there isn't one there put your item in your other catagory.
     
    $passout->{ebay_out}->{Storefront}->{StoreCategoryID} = $passin->{item}->{p0} || '1';
    

     

  12. The snippet for the Sales Tax:
    $passout->{ebay_out}->{UseTaxTable}='1';
    push @{$passout->{mod}->{ModifiedFields}}, { Field => 'Item.UseTaxTable', ModifyType => 'Modify' };
    

     

  13. To only send a certain range of skus in a numeric range. Add this to your Pre-Processing box:
    return undef if ( ( $passin->{item}->{sku} >= 100100 ) && ( $passin->{item}->{sku} <= 101000 ) );
    
    Replace 100100 with your starting sku and 101000 with your ending sku.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk