Changeset 3420119
- Timestamp:
- 12/15/2025 12:28:35 PM (4 months ago)
- Location:
- ffl-api/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/class-ffl-api-admin.php (modified) (1 diff)
-
ffl-api.php (modified) (2 diffs)
-
includes/class-ffl-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ffl-api/trunk/README.txt
r3061052 r3420119 1 === FFL API WooCommerce Plugin===2 Contributors: Optimum73 Tags: FFL, WooCommerce, FFL gun dealers, gun dealer, FFLdealers1 === FFL API Integration for WooCommerce === 2 Contributors: optimum7 3 Tags: ffl, woocommerce, firearms, gun dealers 4 4 Requires at least: 5.0 5 Tested up to: 6. 46 Requires PHP: 7. 37 Stable tag: 1. 6.15 Tested up to: 6.9 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 11 11 12 FFL API WooCommerce plugin has been created to improve WooCommerce online stores. It simplifies the checkout phase on online gun stores that can implement user-friendly features for the benefit to the dealers and their customers.12 FFL API Integration for WooCommerce helps online stores integrate FFL dealer selection into the WooCommerce checkout process when selling regulated firearm products. 13 13 14 14 15 15 == Description == 16 16 17 FFL API Integration for WooCommerce is designed for WooCommerce-powered online stores that sell firearm-related products requiring shipment to licensed FFL dealers. 17 18 18 [FFL API](https://www.fflapi.com) simplifies the checkout phase for online gun dealer websites. FFL API WooCommerce plugin only works on the websites that has WooCommerce plugin. These eCommerce stores can implement user-friendly features that benefit the dealers and their customers.19 The plugin integrates with the FFL API service to allow customers to select a licensed dealer during checkout. This helps store owners clearly separate FFL and non-FFL products and guide customers through the appropriate checkout flow. 19 20 20 21 As a one-of-a-kind software in the online gun dealer sector, FFL API provides a service that everybody needs in the process of buying FFL products online. 21 This plugin requires an active WooCommerce installation and valid API credentials from FFL API. 22 22 23 23 24 24 == Shop Owners == 25 Online shop owners wish to raise revenue and improve their storefronts. 12% of customers leave the website during checkout because of the limited options or inconvenience. Others get upset with the brand in the case of never receiving their orders. 25 26 Online shop owners selling regulated firearm products often need a clear and structured checkout experience that supports FFL dealer selection. 27 28 This plugin provides tools to: 29 - Identify firearm products 30 - Display FFL dealer selection during checkout 31 - Manage dealer-related shipment details within WooCommerce 26 32 27 33 28 With FFL API, shop owners will not lose customers on the checkout phase because of the confusion. Websites will see a drastic reduction in cart abandonment, and find viable business leads. 34 == Customers Purchasing FFL Products == 29 35 36 Customers purchasing firearm products can search for nearby licensed FFL dealers by ZIP code during checkout and select a dealer before completing their order. 30 37 31 == Users Interested In Purchasing FFL Products == 32 Website visitors want to shop online with ease. A complex checkout does not impress them, in the age of Amazon and convenience. 38 The selected dealer’s information is displayed clearly to help avoid confusion during fulfillment. 33 39 34 35 FFL API provides user-friendly checkout. Visitors know whether their products are FFL or not and where to ship their products.36 40 37 41 == Screenshots == 38 42 39 1. Simply setup FFL API WooCommerce Plugin 40 2. Set the products as firearms 41 3. Bulk update the products 42 4. FFL dealers appear on the map via zip code 43 44 ==Features== 45 46 ==User-Friendly Checkout== 47 48 FFL API provides user-friendly checkout to WooCommerce stores. Customers can make their purchases easily, with an enhanced experience and simple UI design. 49 50 ==Ability to Define FFL Products== 51 52 FFL API WooCommerce plugin provides a very easy user interface for shop owners. As the admin of the online stores, shop owner adds FFL products to the store carts, which are saved in the system and appropriately defined. The API will remember these selections for future orders. Moreover, shop owner has the ability of bulk ordering as well. 53 54 ==Bulk Update on Admin Panel== 55 56 This feature provides the ability to determine the products as FFL or non-FFL with bulk edition on the admin panel. The store owners can update up to 999 products with one click. 57 58 This feature also provides filtering of the products by category. 59 60 ==Listing FFL Dealers On Map== 61 62 FFL API saves customers the time spent finding their certified local dealers on a separate website. The software automatically lists the dealers within the customer’s zip code, eliminating one step of the purchase process. Thanks to this feature, store owners will not lose customers at the checkout phase and complete the conversion. 63 64 ==Easy Gun Dealer Search With Zip Code== 65 66 Customers have the ability to search with zip code and find the nearest gun dealer to them. They can select the gun dealer with just one click and continue to billing. 67 68 ==Auto-Update Functionality== 69 70 When a new release is published FFL API WooCommerce Plugin sends an update notification to the admin of the website. With this feature, the FFL API makes sure that websites are up to date. 71 72 ==Color Customization== 73 74 FFL API WooCommerce Plugin provides color customization ability to website admin. The plugin’s design can be determined however the admin wants. 43 1. Plugin settings page 44 2. Assigning products as firearms 45 3. Bulk product management 46 4. FFL dealer search by ZIP code 75 47 76 48 77 == The Ability to Land FFL Selection Area Anywhere on The Page==49 == Features == 78 50 79 This feature provides the ability to set the position of FFL API Plugin where admin wants on the websites. There are 5 options for FFL API Plugin position: 51 = Checkout Integration = 52 Displays an FFL dealer search field on the WooCommerce checkout page when firearm products are present in the cart. 53 54 = Firearm Product Identification = 55 Allows store administrators to mark products as firearm or non-firearm. 56 57 = Bulk Product Updates = 58 Provides bulk actions in the admin panel to update firearm status for multiple products. 59 60 = FFL Dealer Map = 61 Displays nearby licensed FFL dealers based on customer ZIP code using Google Maps. 62 63 = Dealer Search by ZIP Code = 64 Customers can search for FFL dealers within a defined radius and select one during checkout. 65 66 = Automatic Updates = 67 The plugin supports WordPress automatic update notifications. 68 69 = Color Customization = 70 Admin users can adjust basic color settings for the FFL dealer list display. 71 72 = Flexible Placement = 73 The FFL dealer selection area can be positioned in different locations on the checkout page: 80 74 * Order Review 81 75 * Above Billing Form … … 84 78 * Below Shipping Form 85 79 86 ==Experience The FFL API Wordpress Plugin Before You Download== 80 81 == Demo == 82 You can view a demo of the plugin functionality here: 87 83 [FFL API Demo](https://wpdemo.fflapi.com/) 88 89 90 ###IMPORTANT:91 If you think you found a bug in FFL API, or have a problem/question concerning the plugin, please check out [Support Forum](https://www.fflapi.com/contact-us/).92 93 ###IMPORTANT-2:94 If you don't have WooCommerce plugin on your website, FFL API will not work. FFL API WooCommerce Plugin has been created only to launch with WooCommerce plugin.95 96 97 98 84 99 85 100 86 == Frequently Asked Questions == 101 87 88 = Can I use the same API key for multiple websites? = 89 No. Each website requires a separate API key. 102 90 103 = 1. CAN I USE THE SAME API KEY FOR MULTIPLE WEBSITES? = 91 = Do unused API requests roll over to the next month? = 92 No. API request limits reset with each billing cycle. 104 93 105 No. For each website, you need to have a unique API key. Therefore, you need to buy a unique one when integrating a new website. 94 = Can customers search dealers by address or ZIP code? = 95 Yes. Customers can search for licensed FFL dealers using ZIP code information. 106 96 107 = 2. DOES THE API REQUEST NUMBERS TRANSFER TO THE NEXT MONTH'S USAGE? = 108 109 No. Each package price is monthly. We provide an API request number for the purchased month. 110 These numbers reset at the beginning of your package renewal date and do not transfer to the new month’s numbers. 111 112 113 = 3. CAN CUSTOMERS MAKE AN ADDRESS SEARCH TO FIND GUN DEALERS? = 114 115 Yes, customers can search for filling the address field to find the nearest gun dealers to the address. 116 117 118 = 4. HOW DO I KNOW IF A GUN DEALER HAS FFL LICENSE OR NOT = 119 120 121 FFL API, updates gun dealers according to the FFL license regularly. 122 97 = How is dealer license information maintained? = 98 FFL dealer data is updated through the FFL API service. 123 99 124 100 125 101 == Installation == 126 102 103 = Minimum Requirements = 104 * WordPress 5.0 or higher 105 * PHP 7.4 or higher 106 * MySQL 5.x 107 * WooCommerce plugin 127 108 128 #### Thank you for your interest in FFL API WooCommerce Plugin. 109 = API Requirements = 110 To use this plugin, you need: 111 1. An FFL API key from https://app.fflapi.com/register 112 2. A Google Maps API key from https://developers.google.com/maps/documentation/maps-static/get-api-key 113 114 = Installation Steps = 115 1. Upload the plugin ZIP file via Plugins > Add New > Upload Plugin 116 2. Activate the plugin 117 3. Navigate to the "FFL API" menu in the WordPress admin 118 4. Enter your API keys and configuration settings 119 5. Save changes 129 120 130 121 131 ### Minimum requirements. 132 * Wordpress 5.0+ 133 * PHP 7.x 134 * MySQL 5.x 135 * WooCommerce Plugin 136 137 In order to use FFL Api, you need 2 API Keys 138 1. FFL API: Please go to [https://app.fflapi.com/register](https://app.fflapi.com/register) and complete the subscription process. 139 2. Google Maps API: You can see how to get Google Maps API Key from the link below. 140 [https://developers.google.com/maps/documentation/maps-static/get-api-key](https://developers.google.com/maps/documentation/maps-static/get-api-key) 141 142 You can follow the steps below for the setup process. 143 144 ### Perform a new installation 122 == Assigning a Product as Firearm == 123 1. Go to Products > All Products 124 2. Edit a product 125 3. Locate the firearm option in Product Data 126 4. Enable the firearm checkbox 127 5. Update the product 145 128 146 129 147 After downloading the ZIP file of the Event Calendar WD plugin, 130 == How FFL Dealer Search Works == 131 1. Add a firearm product to the cart 132 2. Proceed to checkout 133 3. Enter ZIP code in the FFL dealer search field 134 4. Select a dealer from the map or list 135 5. Complete checkout 148 136 149 137 150 1. Log in to the administrator panel. 151 2. Go to Plugins Add > New > Upload. 152 3. Locate “ffl_WooCommerce_plugin.zip” 153 4. Click "Install Now" button. 154 5. Upon successful installation of the plugin, select “Activate Plugin” button 155 6. After the plugin is activated, “FFL API” will appear on the menu 156 7. Select the “FFL API” link 157 8. Fill in the following information: 158 **FFL API Key 159 **Google Maps API Key 160 **Set Warning Message for the Checkout Page 161 9. Select “Save Changes” to save the changes 162 10. If the installation does not succeed, please [click here to contact us](https://www.fflapi.com/contact-us/). 138 == Changelog == 163 139 140 = 1.6.2 = 141 * Plugin name and documentation updates to comply with WordPress.org guidelines 142 * Internationalization improvements 143 * Settings sanitization enhancements 164 144 165 == How To Assign a Product as Firearm == 166 1. Navigate to “Products -> All Product” 167 2. Select “Edit” button below the product title for the products that will be assigned as Firearm 168 3. Scroll down to “Product Data” section 169 4. Check “This is a firearm product” checkbox 170 5. Select “Update” button. 145 = 1.6.1 = 146 * Compatibility update for WooCommerce HPOS 171 147 148 = 1.6.0 = 149 * Admin panel input hint improvements 172 150 173 == How FFL Search Box Works == 174 1. Add a product that was assigned as a firearm in the cart 175 2. Navigate to the Checkout 176 3. FFL Dealer Search Box will appear 177 4. Enter the Zipcode and the Radius information which FFL dealer you want the firearm to be shipped 178 5. Select Find Nearby. Based on the Zipcode entered, FFL dealers located within the radius will appear on the map 179 6. Select an FFL Dealer from the map. The shipping information of the selected FFL dealer will appear on the page 151 = 1.5.9 = 152 * Added option to control FFL info pop-up visibility 180 153 181 == Changelog == 182 v1.6.1 Compatibility with Woocommerce HPOS 183 v1.6.0 Admin panel input hint updates 184 v1.5.9 Added FFL info pop-up visibility option 185 v1.5.8 FFL map issue solved 186 v1.5.7 Special character usage bug solved at Firearm Warning Message 187 v1.5.6 some bug fixes 188 v1.5.3 form clear notice added 189 v1.5.2 Some UI fixes and improvements 190 v1.5.1 WooCommerce 3.9+ Shipping Address issue fix 191 v1.5.0 : First Offical Release! 154 = 1.5.8 = 155 * Fixed FFL dealer map display issue 156 157 = 1.5.7 = 158 * Fixed special character handling in Firearm Warning Message 159 160 = 1.5.6 = 161 * Minor bug fixes and stability improvements 162 163 = 1.5.3 = 164 * Added form clear notice 165 166 = 1.5.2 = 167 * User interface fixes and minor improvements 168 169 = 1.5.1 = 170 * Fixed shipping address issue for WooCommerce 3.9 and later 171 172 = 1.5.0 = 173 * Initial public release -
ffl-api/trunk/admin/class-ffl-api-admin.php
r2957890 r3420119 143 143 { 144 144 //register our settings 145 register_setting('ffl-api-settings', 'ffl_api_key_option'); 146 register_setting('ffl-api-settings', 'ffl_api_gmaps_option'); 147 register_setting('ffl-api-settings', 'ffl_api_warning_message'); 148 register_setting('ffl-api-settings', 'ffl_list_background_option'); 149 register_setting('ffl-api-settings', 'ffl_list_text_option'); 150 register_setting('ffl-api-settings', 'ffl_init_map_location'); 151 register_setting('ffl-api-settings', 'ffl_map_show_modal', ['default' => 'yes']); 145 register_setting('ffl-api-settings','ffl_api_key_option',['type'=>'string','sanitize_callback'=>'sanitize_text_field']); 146 register_setting('ffl-api-settings','ffl_api_gmaps_option',['type'=>'string','sanitize_callback'=>'sanitize_text_field']); 147 register_setting('ffl-api-settings','ffl_api_warning_message',['type'=>'string','sanitize_callback'=>'sanitize_textarea_field']); 148 register_setting('ffl-api-settings','ffl_list_background_option',['type'=>'string','sanitize_callback'=>'sanitize_hex_color']); 149 register_setting('ffl-api-settings','ffl_list_text_option',['type'=>'string','sanitize_callback'=>'sanitize_hex_color']); 150 register_setting('ffl-api-settings','ffl_init_map_location',['type'=>'string','sanitize_callback'=>'sanitize_text_field']); 151 register_setting('ffl-api-settings','ffl_map_show_modal',['type'=>'string','default'=>'yes','sanitize_callback'=>'sanitize_text_field']); 152 152 153 } 153 154 -
ffl-api/trunk/ffl-api.php
r3061042 r3420119 16 16 * Plugin Name: FFl API 17 17 * Plugin URI: fflapi.com 18 * Description: FFL API Woocommerce plugin19 * Version: 1.6. 118 * Description: FFL API Integration for WooCommerce 19 * Version: 1.6.2 20 20 * WC requires at least: 3.0.0 21 21 * WC tested up to: 6.1 … … 48 48 * Rename this for your plugin and update it as you release new versions. 49 49 */ 50 define('FFL_API_VERSION', '1.6. 0');50 define('FFL_API_VERSION', '1.6.2'); 51 51 52 52 /** -
ffl-api/trunk/includes/class-ffl-api.php
r2250737 r3420119 306 306 _n('%s product set as firearm.', 307 307 '%s products set as firearm.', 308 intval($_REQUEST['set_ffl_done']) 308 intval($_REQUEST['set_ffl_done']), 309 'ffl-api' 309 310 ) . '</p></div>', intval($_REQUEST['set_ffl_done'])); 310 311 … … 318 319 _n('%s product set as unfirearm.', 319 320 '%s products set as unfirearm.', 320 intval($_REQUEST['unset_ffl_done']) 321 intval($_REQUEST['unset_ffl_done']), 322 'ffl-api' 321 323 ) . '</p></div>', intval($_REQUEST['unset_ffl_done'])); 322 324
Note: See TracChangeset
for help on using the changeset viewer.