Random Address

Plugin Banner

Random Address

by michaelcanan

Download
Description

Generates a Random US Address that the customer can choose to send there order to.
It will replace shipping address with the randomly generated one. Admin has to have google geocoding api key to use.
Admin can also add addresses to the database from settings page.

Arbitrary section

Features

Stuff it does:

  1. Generate Random US Address
  2. Allow Customer to Ship to that Address
  3. Add own address to list.
  4. Auto Updates shipping address to random address if selected

Other Stuff:

  • Address shows up in confirmation email

Here’s a link to My site

<?php code(); // goes in backticks ?>
  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Random Address Plugin screen to configure the plugin
  4. Add your Google Geocoding API Key to the settings area. https://developers.google.com/maps/documentation/geocoding/get-api-key
  1. This is what it will look like in checkout

    This is what it will look like in checkout

  2. Settings page

    Settings page

Will this generate an address outside of US?

No

2.6

  • If user selects to ship to random address now overwrites previous shipping address.
  • Also changes name to “Random Name”
  • Now says Shipping Random Address: in email

2.5

  • Made it look nicer in order email and in admin page
  • Moved action filter to after order notes

2.0

  • Added ability to put in addresses

1.0

  • Made Plugin
Back to top