How to Add Domain Names from CSV file

Posted on Posted in Documentation

Import from a .csv file

You can import domain names from a .csv file. The file can be of any name, but it must be a .csv format. The file also needs to have pre-defined header names.

“mdlp_post_title” = the post title. Usually the domain name i.e My- Domain-List.com
“mdlp_post_desc” = the description of the domain “mdlp_post_excerpt” = the post excerpt “mdlp_post_date” = the post date
“mdlp_post_author” = the post author
“mdlp_domain_price” = the domain price
“mdlp_domain_url” = the domain url if you want to point to a different url then the domain name
“mdlp_domain_is_premium” = indicates whether the domain is premium or not
“mdlp_domain_buy_button” = the payment service code snippet that you would get from Stripe, Paypal, etc. See more information below.

You don’t have to use all those headers, you can pick and choose which one is appropriate for the list of domains you are adding. You should have one line per domain and the text data should contain double quotes around it.
Here is a sample file that you can use:

sample_csv_file

The mdlp_domain_buy_button requires a javacript code from a Payment service such as Stripe, Paypal, Escrow, Bitcoin, etc. First step is to acquire this Javascript code from these sites. For example, I got this sample code from Stripe. When you add the snippet of code to the .CSV file, please be sure that it is in one line. For example, re-format the code above into this:

<form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="pk_test_<your_key>" data-amount="2000" data-name="My Domain List" data-description="2 widgets" data-image="https://stripe.com/img/documentation/checkout/marketplace.png" data-locale="auto"> </script> </form>

In the file, I want to bulk add the follow domain information: title, excerpt, price, and buy button. Note that the mdlp_domain_buy_button code does not have to be encoded in the .CSV file

mdlp_post_title,mdlp_post_excerpt,mdlp_domain_price,mdlp_domain_buy_button
mydomainlist.com,news,8779,<form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="pk_test_<your_key>" data-amount="2000" data-name="My Domain List" data-description="2 widgets" data-image="https://stripe.com/img/documentation/checkout/marketplace.png" data-locale="auto"> </script> </form>
alotofpilates.com,news,8779,<form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="pk_test_<your_key>" data-amount="2000" data-name="A Lot of Pilates" data-description="2 widgets" data-image="https://stripe.com/img/documentation/checkout/marketplace.png" data-locale="auto"> </script> </form>

Leave a Reply

Your email address will not be published. Required fields are marked *