Plugin Directory

Changeset 3234982


Ignore:
Timestamp:
02/04/2025 06:39:23 PM (14 months ago)
Author:
wpiron
Message:

Upgrade and added on-site checkout

Location:
cost-of-goods
Files:
4 edited
3 copied

Legend:

Unmodified
Added
Removed
  • cost-of-goods/tags/1.6.7/admin/partials/cost-of-goods-for-wc-admin-display.php

    r3053846 r3234982  
    11<?php
    22
    3 defined('ABSPATH') || exit;
     3defined( 'ABSPATH' ) || exit;
    44?>
    55
    6 <h1 class="wp-heading-inline"><?php
    7     esc_html_e('Cost Of Goods ', 'cost-of-goods-for-woocommerce'); ?></h1>
    8 <hr>
     6<div class="wrap">
     7    <h1 class="wp-heading-inline">
     8        <?php
     9        esc_html_e( 'Cost Of Goods Dashboard', 'cost-of-goods-for-woocommerce' ); ?>
     10    </h1>
     11    <hr>
    912
    10 <p>Upgrade your plan: <strong><a href="https://wpiron.com/products/cost-of-goods-for-woocommerce/#pricing"
    11                                  style="color:green; text-underline: none !important;" target="_blank">Upgrade Cost Of
    12             Goods plugin</a></strong></p>
     13    <div style="display: flex; gap: 20px; flex-wrap: wrap;">
     14        <!-- Upgrade Section -->
     15        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     16            <h2 style="color: #0073aa;">Upgrade to Premium</h2>
     17            <p><strong>Get more features with our premium version:</strong></p>
     18            <ul style="margin-left: 20px;">
     19                <li>✔ Add COG price for variation products</li>
     20                <li>✔ Track and view profit reports</li>
     21            </ul>
     22            <p>
     23                <a href="#"
     24                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     25                   id="purchase_business_single">1 website
     26                </a>
     27                <a href="#"
     28                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     29                   id="purchase_agency_twenty">20 websites
     30                </a>
     31                <a href="#"
     32                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     33                   id="lifetime_one">Lifetime 1 website
     34                </a>
     35                <a href="#"
     36                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     37                   id="lifetime_twenty">Lifetime 20 website
     38                </a>
     39            </p>
     40        </div>
    1341
    14 <strong>What you will get with premium version?</strong>
    15 <ul>
    16     <li>- Ability to add COG price for variation products</li>
    17     <li>- Ability to track and see report of your profit by products</li>
    18 </ul>
    19 <br>
    20 <strong>How to use this plugin?</strong>
    21 <ol>
    22     <li>Go to your existing product OR create a new one</li>
    23     <li>Go to PRODUCT DATA</li>
    24     <li>Enter regular price</li>
    25     <li>Enter COG price and you will see how much you will earn</li>
    26 </ol>
    27 <hr>
    28 <table style="max-width: 1000px;">
    29     <tr>
    30         <td>
    31             <strong>Easily track profit with cost of goods included in your orders and reports.</strong>
    32             <p>WooCommerce offers you a variety of reports on store performance. Now we’ve introduced Profit Reporting
    33                 to help you make the most of these reports. You can see not just sales revenue, but also Costs and
    34                 Profits all in one place. Use this information to help you make decisions about how to promote your
    35                 products and services so that your store makes more money!</p>
    36         </td>
    37         <td>
    38             <img style="max-width:500px;" src="<?php
    39             echo plugin_dir_url(__FILE__); ?>img/profitandcostofgoods.png" alt="">
    40         </td>
    41     </tr>
    42     <tr>
    43         <td>
    44             <img src="<?php
    45             echo plugin_dir_url(__FILE__); ?>img/cod.png" alt="" style="max-width:500px;">
    46         </td>
    47         <td>
    48             <strong>Add Cost of Goods in all types of WooCommerce products</strong>
    49             <p>Add a Cost of Good to each product, including product variations, so that you can always know what you
    50                 really earned on every order—not just how much you sold. Total costs for each order line item are saved
    51                 at checkout, so even if your costs increase in the future, your total costs are always historically
    52                 accurate.</p>
    53         </td>
    54     </tr>
    55 </table>
     42        <!-- Review Section -->
     43        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px; text-align: center;">
     44            <h2 style="color: #f39c12;">⭐ Rate Us 5 Stars!</h2>
     45            <p>Enjoying our plugin? Please consider leaving a 5-star review to help us improve and stay motivated!</p>
     46            <a href="https://wordpress.org/support/plugin/cost-of-goods/reviews/#new-post" target="_blank"
     47               style="display: inline-block; background: #f39c12; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;">
     48                Leave a Review
     49            </a>
     50        </div>
     51    </div>
     52
     53    <hr>
     54
     55    <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 0px;">
     56        <h2 style="color: #0073aa;">How to Use This Plugin?</h2>
     57        <ol>
     58            <li>Go to your existing product OR create a new one</li>
     59            <li>Navigate to <strong>PRODUCT DATA</strong></li>
     60            <li>Enter regular price</li>
     61            <li>Enter COG price to see your profit margin</li>
     62        </ol>
     63    </div>
     64
     65    <hr>
     66
     67    <div style="display: flex; gap: 20px; flex-wrap: wrap;">
     68        <!-- Upgrade Section -->
     69        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     70            <h2 style="color: #0073aa;">Variation Changes</h2>
     71            <img style="width: 100%; border-radius: 8px;" src="<?php
     72            echo plugin_dir_url( __FILE__ ); ?>img/cog-variations.png" alt="Profit and Cost Report">
     73        </div>
     74
     75        <!-- Review Section -->
     76        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     77            <h2 style="color: #0073aa;">Dashboard of your sales and counting COG</h2>
     78            <img style="width: 100%; border-radius: 8px;" src="<?php
     79            echo plugin_dir_url( __FILE__ ); ?>img/dashboard.png" alt="Profit and Cost Report">
     80        </div>
     81    </div>
     82
     83</div>
     84
     85<script type="text/javascript" src="https://checkout.freemius.com/js/v1/"></script>
     86<script type="text/javascript">
     87    const handler = new FS.Checkout({
     88        product_id: '11242',
     89        plan_id: '19095',
     90        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     91    });
     92
     93    document.getElementById('purchase_business_single').addEventListener('click', (e) => {
     94        e.preventDefault();
     95
     96        handler.open({
     97            name: 'Cost Of Goods For WooCommerce',
     98            licenses: 1,
     99            purchaseCompleted: (response) => {
     100            },
     101            success: (response) => {
     102            }
     103        });
     104    });
     105
     106    const handler_agency = new FS.Checkout({
     107        product_id: '11242',
     108        plan_id: '19096',
     109        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     110    });
     111
     112    document.getElementById('purchase_agency_twenty').addEventListener('click', (e) => {
     113        e.preventDefault();
     114
     115        handler_agency.open({
     116            name: 'Cost Of Goods For WooCommerce',
     117            licenses: 20,
     118            purchaseCompleted: (response) => {
     119            },
     120            success: (response) => {
     121            }
     122        });
     123    });
     124
     125    const handle_lifetime_single = new FS.Checkout({
     126        product_id: '11242',
     127        plan_id: '19097',
     128        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     129    });
     130
     131    document.getElementById('lifetime_one').addEventListener('click', (e) => {
     132        e.preventDefault();
     133
     134        handle_lifetime_single.open({
     135            name: 'Cost Of Goods For WooCommerce',
     136            licenses: 1,
     137            purchaseCompleted: (response) => {
     138            },
     139            success: (response) => {
     140            }
     141        });
     142    });
     143
     144
     145    const handler_lifetime_twenty = new FS.Checkout({
     146        product_id: '11242',
     147        plan_id: '19098',
     148        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     149    });
     150
     151    document.getElementById('lifetime_twenty').addEventListener('click', (e) => {
     152        e.preventDefault();
     153
     154        handler_lifetime_twenty.open({
     155            name: 'Cost Of Goods For WooCommerce',
     156            licenses: 20,
     157            purchaseCompleted: (response) => {
     158            },
     159            success: (response) => {
     160            }
     161        });
     162    });
     163
     164</script>
  • cost-of-goods/tags/1.6.7/cost-of-goods-for-woocommerce.php

    r3225143 r3234982  
    99 * Plugin URI:        https://wpiron.com
    1010 * Description:       add your cost of goods to your products and track your profit in reports
    11  * Version:           1.6.6
     11 * Version:           1.6.7
    1212 * Author:            WP Iron
    1313 * Author URI:        https://wpiron.com/
     
    2727 * Rename this for your plugin and update it as you release new versions.
    2828 */
    29 define('COST_OF_GOODS_FOR_WOOCOMMERCE_VERSION', '1.6.6');
     29define('COST_OF_GOODS_FOR_WOOCOMMERCE_VERSION', '1.6.7');
    3030
    3131/**
  • cost-of-goods/tags/1.6.7/readme.txt

    r3225143 r3234982  
    55Requires at least: 6.7
    66Tested up to: 6.7
    7 Stable tag: 1.6.6
     7Stable tag: 1.6.7
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    184184= 1.6.6 =
    185185* WP Compatability
     186
     187= 1.6.7 =
     188* Upgrade & make on-app purchases
  • cost-of-goods/trunk/admin/partials/cost-of-goods-for-wc-admin-display.php

    r3053846 r3234982  
    11<?php
    22
    3 defined('ABSPATH') || exit;
     3defined( 'ABSPATH' ) || exit;
    44?>
    55
    6 <h1 class="wp-heading-inline"><?php
    7     esc_html_e('Cost Of Goods ', 'cost-of-goods-for-woocommerce'); ?></h1>
    8 <hr>
     6<div class="wrap">
     7    <h1 class="wp-heading-inline">
     8        <?php
     9        esc_html_e( 'Cost Of Goods Dashboard', 'cost-of-goods-for-woocommerce' ); ?>
     10    </h1>
     11    <hr>
    912
    10 <p>Upgrade your plan: <strong><a href="https://wpiron.com/products/cost-of-goods-for-woocommerce/#pricing"
    11                                  style="color:green; text-underline: none !important;" target="_blank">Upgrade Cost Of
    12             Goods plugin</a></strong></p>
     13    <div style="display: flex; gap: 20px; flex-wrap: wrap;">
     14        <!-- Upgrade Section -->
     15        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     16            <h2 style="color: #0073aa;">Upgrade to Premium</h2>
     17            <p><strong>Get more features with our premium version:</strong></p>
     18            <ul style="margin-left: 20px;">
     19                <li>✔ Add COG price for variation products</li>
     20                <li>✔ Track and view profit reports</li>
     21            </ul>
     22            <p>
     23                <a href="#"
     24                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     25                   id="purchase_business_single">1 website
     26                </a>
     27                <a href="#"
     28                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     29                   id="purchase_agency_twenty">20 websites
     30                </a>
     31                <a href="#"
     32                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     33                   id="lifetime_one">Lifetime 1 website
     34                </a>
     35                <a href="#"
     36                   style="display: inline-block; background: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;"
     37                   id="lifetime_twenty">Lifetime 20 website
     38                </a>
     39            </p>
     40        </div>
    1341
    14 <strong>What you will get with premium version?</strong>
    15 <ul>
    16     <li>- Ability to add COG price for variation products</li>
    17     <li>- Ability to track and see report of your profit by products</li>
    18 </ul>
    19 <br>
    20 <strong>How to use this plugin?</strong>
    21 <ol>
    22     <li>Go to your existing product OR create a new one</li>
    23     <li>Go to PRODUCT DATA</li>
    24     <li>Enter regular price</li>
    25     <li>Enter COG price and you will see how much you will earn</li>
    26 </ol>
    27 <hr>
    28 <table style="max-width: 1000px;">
    29     <tr>
    30         <td>
    31             <strong>Easily track profit with cost of goods included in your orders and reports.</strong>
    32             <p>WooCommerce offers you a variety of reports on store performance. Now we’ve introduced Profit Reporting
    33                 to help you make the most of these reports. You can see not just sales revenue, but also Costs and
    34                 Profits all in one place. Use this information to help you make decisions about how to promote your
    35                 products and services so that your store makes more money!</p>
    36         </td>
    37         <td>
    38             <img style="max-width:500px;" src="<?php
    39             echo plugin_dir_url(__FILE__); ?>img/profitandcostofgoods.png" alt="">
    40         </td>
    41     </tr>
    42     <tr>
    43         <td>
    44             <img src="<?php
    45             echo plugin_dir_url(__FILE__); ?>img/cod.png" alt="" style="max-width:500px;">
    46         </td>
    47         <td>
    48             <strong>Add Cost of Goods in all types of WooCommerce products</strong>
    49             <p>Add a Cost of Good to each product, including product variations, so that you can always know what you
    50                 really earned on every order—not just how much you sold. Total costs for each order line item are saved
    51                 at checkout, so even if your costs increase in the future, your total costs are always historically
    52                 accurate.</p>
    53         </td>
    54     </tr>
    55 </table>
     42        <!-- Review Section -->
     43        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px; text-align: center;">
     44            <h2 style="color: #f39c12;">⭐ Rate Us 5 Stars!</h2>
     45            <p>Enjoying our plugin? Please consider leaving a 5-star review to help us improve and stay motivated!</p>
     46            <a href="https://wordpress.org/support/plugin/cost-of-goods/reviews/#new-post" target="_blank"
     47               style="display: inline-block; background: #f39c12; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none;">
     48                Leave a Review
     49            </a>
     50        </div>
     51    </div>
     52
     53    <hr>
     54
     55    <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 0px;">
     56        <h2 style="color: #0073aa;">How to Use This Plugin?</h2>
     57        <ol>
     58            <li>Go to your existing product OR create a new one</li>
     59            <li>Navigate to <strong>PRODUCT DATA</strong></li>
     60            <li>Enter regular price</li>
     61            <li>Enter COG price to see your profit margin</li>
     62        </ol>
     63    </div>
     64
     65    <hr>
     66
     67    <div style="display: flex; gap: 20px; flex-wrap: wrap;">
     68        <!-- Upgrade Section -->
     69        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     70            <h2 style="color: #0073aa;">Variation Changes</h2>
     71            <img style="width: 100%; border-radius: 8px;" src="<?php
     72            echo plugin_dir_url( __FILE__ ); ?>img/cog-variations.png" alt="Profit and Cost Report">
     73        </div>
     74
     75        <!-- Review Section -->
     76        <div style="background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); flex: 1; min-width: 300px;">
     77            <h2 style="color: #0073aa;">Dashboard of your sales and counting COG</h2>
     78            <img style="width: 100%; border-radius: 8px;" src="<?php
     79            echo plugin_dir_url( __FILE__ ); ?>img/dashboard.png" alt="Profit and Cost Report">
     80        </div>
     81    </div>
     82
     83</div>
     84
     85<script type="text/javascript" src="https://checkout.freemius.com/js/v1/"></script>
     86<script type="text/javascript">
     87    const handler = new FS.Checkout({
     88        product_id: '11242',
     89        plan_id: '19095',
     90        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     91    });
     92
     93    document.getElementById('purchase_business_single').addEventListener('click', (e) => {
     94        e.preventDefault();
     95
     96        handler.open({
     97            name: 'Cost Of Goods For WooCommerce',
     98            licenses: 1,
     99            purchaseCompleted: (response) => {
     100            },
     101            success: (response) => {
     102            }
     103        });
     104    });
     105
     106    const handler_agency = new FS.Checkout({
     107        product_id: '11242',
     108        plan_id: '19096',
     109        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     110    });
     111
     112    document.getElementById('purchase_agency_twenty').addEventListener('click', (e) => {
     113        e.preventDefault();
     114
     115        handler_agency.open({
     116            name: 'Cost Of Goods For WooCommerce',
     117            licenses: 20,
     118            purchaseCompleted: (response) => {
     119            },
     120            success: (response) => {
     121            }
     122        });
     123    });
     124
     125    const handle_lifetime_single = new FS.Checkout({
     126        product_id: '11242',
     127        plan_id: '19097',
     128        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     129    });
     130
     131    document.getElementById('lifetime_one').addEventListener('click', (e) => {
     132        e.preventDefault();
     133
     134        handle_lifetime_single.open({
     135            name: 'Cost Of Goods For WooCommerce',
     136            licenses: 1,
     137            purchaseCompleted: (response) => {
     138            },
     139            success: (response) => {
     140            }
     141        });
     142    });
     143
     144
     145    const handler_lifetime_twenty = new FS.Checkout({
     146        product_id: '11242',
     147        plan_id: '19098',
     148        public_key: 'pk_177dd05e074ba273fa0e39265abfe'
     149    });
     150
     151    document.getElementById('lifetime_twenty').addEventListener('click', (e) => {
     152        e.preventDefault();
     153
     154        handler_lifetime_twenty.open({
     155            name: 'Cost Of Goods For WooCommerce',
     156            licenses: 20,
     157            purchaseCompleted: (response) => {
     158            },
     159            success: (response) => {
     160            }
     161        });
     162    });
     163
     164</script>
  • cost-of-goods/trunk/cost-of-goods-for-woocommerce.php

    r3225143 r3234982  
    99 * Plugin URI:        https://wpiron.com
    1010 * Description:       add your cost of goods to your products and track your profit in reports
    11  * Version:           1.6.6
     11 * Version:           1.6.7
    1212 * Author:            WP Iron
    1313 * Author URI:        https://wpiron.com/
     
    2727 * Rename this for your plugin and update it as you release new versions.
    2828 */
    29 define('COST_OF_GOODS_FOR_WOOCOMMERCE_VERSION', '1.6.6');
     29define('COST_OF_GOODS_FOR_WOOCOMMERCE_VERSION', '1.6.7');
    3030
    3131/**
  • cost-of-goods/trunk/readme.txt

    r3225143 r3234982  
    55Requires at least: 6.7
    66Tested up to: 6.7
    7 Stable tag: 1.6.6
     7Stable tag: 1.6.7
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    184184= 1.6.6 =
    185185* WP Compatability
     186
     187= 1.6.7 =
     188* Upgrade & make on-app purchases
Note: See TracChangeset for help on using the changeset viewer.