Changeset 2943295
- Timestamp:
- 07/26/2023 12:58:56 AM (3 years ago)
- Location:
- wc-call-for-price/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wc-call-for-price.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-call-for-price/trunk/readme.txt
r2098840 r2943295 1 1 === WC Call For Price === 2 Contributors: aihimel 2 Contributors: aihimel, iamasadpolash 3 3 Tags: call for price, woocommerce, plugin, customizable, image upload, admin page, feature rich 4 4 Requires at least: 4.2.2 5 Tested up to: 5.2 5 Tested up to: 6.2.2 6 Requires PHP: 7.2 6 7 Stable tag: trunk 7 License: GPLv 2or later8 License URI: http://www.gnu.org/licenses/gpl- 2.0.html8 License: GPLv3 or later 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 9 10 10 11 This plugin shows "Call For Price" text/HTML or image on empty price fields. It depends on woocommerce. … … 12 13 == Description == 13 14 14 This is a woocommerce plugin that shows "call for price" on empty price products of woocommerce. It supports simple 15 text, html and also images. You call select call for price image from the plugin's internal images or you can 16 upload your own image. 15 **WC Call for price or WooCommerce Call for Price plugin** is a free WordPress plugin that will let you put **Call For Price** button as selectable/uploadable image or as text instead of price for products. You can also provide custom **HTML** context instead of plain text. 17 16 17 It is tested up to the latest version of **WordPress** and **PHP**. 18 19 Join in at [Github](https://github.com/aihimel/wc-call-for-price) Development 18 20 19 21 == Installation == 20 22 21 The installation process is very simple.23 Installing WC Call for Price plugin for WooCommerce is just like any other plugin installation. 22 24 23 1. Install and activate Woocommerce. 24 1. Install WC Call For Price plugin from wordpress plugin directory or upload the plugin manually to your server at /wp-content/plugins/ directory. 25 1. Activate the plugin through 'Plugins' menu in the Wordpress Administrator. 26 1. Go to Woocommerce >> Call For Price menu. 25 #### Hosting Requirement 26 27 Any hosting that supports WordPress installation can be used to install WC Call for Price plugin 28 29 * Supports any shared hosting 30 * Supports any dedicated hosting 31 * Supports VPS(Virtual Private Server) hosting 32 * Supports AWS(Amazone Web Services) 33 34 #### Hardware Requirement 35 No specific hardware requirement 36 37 #### Special PHP Packages 38 No special PHP Packages are required 39 40 #### Installation Process 41 * Install WordPress 42 * Install and activate WooCommerce 43 * Install WC Call For Price 44 * **From WordPress Dashboard** 45 * Go to Plugins > Installed Plugins 46 * Click Add New button besides page title Plugin 47 * Search "WC Call for Price" by Aftabul Islam 48 * Install & Activate 49 * **By Downloading** 50 * Visit [WC Call for Price](https://wordpress.org/plugins/wc-call-for-price/) WordPress.org Plugin Download Page 51 * Download the Plugin 52 * Upload the plugin 53 * Install and Activate 27 54 28 55 Thats all you need to do. … … 48 75 == Changelog == 49 76 50 = 1.0 = 77 = 1.2.1 (25 July, 2023)= 78 * Tested up-to WordPress 6.2.2 79 * Tested up to PHP v7.2 80 * Unnecessary asset files removed 81 * License Update to GPLv3 51 82 52 * Initial release of the plugin. 83 = 1.1.1 = 84 * Backend font issue has been fixed 85 * Clash with some other plugin has been fixed 53 86 54 87 = 1.1 = 55 56 88 * Tested for version 4.4.1 57 89 * Screenshots added 58 90 59 = 1.1.1 = 60 61 * Backend font issue has been fixed 62 * Clash with some other plugin has been fixed 91 = 1.0 = 92 * Initial release of the plugin. -
wc-call-for-price/trunk/wc-call-for-price.php
r2098840 r2943295 1 1 <?php 2 3 2 /** 4 3 * Plugin Name: WC Call For Price 5 4 * Plugin URI: http://www.wordpress.org/wc-call-for-price 6 * Version: 1.2.0 7 * Author Name: Aftabul Islam 5 * Version: 1.2.1 6 * Author: Aftabul Islam 7 * Author URI: https://profiles.wordpress.org/aihimel 8 8 * Author Email: [email protected] 9 * PHP version: 5.69 * PHP version: 7.2 10 10 * Text domain: wc-call-for-price 11 11 * Description: This plugin shows "call for price" text/HTML or image on empty price fields. It depends on woocommerce. 12 * License: GPLv 2or later12 * License: GPLv3 or later 13 13 14 14 Copyright 2015 Aftabul Islam (email : [email protected]) … … 28 28 */ 29 29 30 // Security Check 31 defined('ABSPATH') || die(); 30 32 31 // Restricting Direct Access 32 defined('ABSPATH') or die("<h1>404</h1> Page not found."); 33 34 //~ if(file_exists('../wp-admin/includes/plugin.php')) require_once('../wp-admin/includes/plugin.php'); 35 36 define('WC_CALL_FOR_PRICE_VERSION', '1.0'); 37 define('WC_CALL_FOR_PRICE_PATH', plugin_basename(__FILE__)); 38 39 if(PHP_VERSION_ID < 50200){ 40 41 wp_die('<div class=\'error\'><p>'.__('The WC Call For Price plugin requires at least PHP version of 5.2').'</p></div>'); 42 43 // Deactivating the plugin 44 if(is_plugin_active(WC_CALL_FOR_PRICE_PATH)) deactivate_plugins(WC_CALL_FOR_PRICE_PATH); 45 46 } 33 defined( 'WC_CALL_FOR_PRICE_VERSION' ) || define('WC_CALL_FOR_PRICE_VERSION', '1.2.0'); 34 defined('WC_CALL_FOR_PRICE_PATH') || define('WC_CALL_FOR_PRICE_PATH', plugin_basename(__FILE__)); 47 35 48 36 // Activation and Deactivation Hooks … … 56 44 57 45 // Activating the plugin 58 if(!function_exists('wc_call_for_price__activate')){function wc_call_for_price__activate(){ 46 if( ! function_exists('wc_call_for_price__activate') ) { 47 /** 48 * Checking if WooCommerce is installed and activated 49 * @return void 50 */ 51 function wc_call_for_price__activate(){ 59 52 60 // Che acking if the woocommerce plugin is available61 if( !class_exists('WooCommerce')){53 // Checking if the woocommerce plugin is available 54 if( ! class_exists('WooCommerce')){ 62 55 63 56 deactivate_plugins(WC_CALL_FOR_PRICE_PATH);
Note: See TracChangeset
for help on using the changeset viewer.