Skip to content

Commit

Permalink
Merge pull request #348 from Codeinwp/bugfix/399
Browse files Browse the repository at this point in the history
Added upsell notice on Attach to Products modal
  • Loading branch information
selul authored Sep 26, 2024
2 parents e99ca9c + fc29aca commit efc9f32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/ppom-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1793,3 +1793,7 @@ header.ppom-modal-header {
cursor: pointer;
padding: 10px 0 1px 10px;
}

.ppom-attach-container .ppom-settings-container {
margin: 10px 0;
}
8 changes: 8 additions & 0 deletions templates/admin/products-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@

?>
<div class="ppom-attach-container">
<?php if ( ! ppom_pro_is_installed() || 'valid' !== apply_filters( 'product_ppom_license_status', '' ) ) : ?>
<div class="options_group ppom-settings-container">
<a class="ppom-upsell-link" target="_blank" href="<?php echo esc_url( tsdk_utmify( tsdk_translate_link( PPOM_UPGRADE_URL ), 'product-edit', 'metabox' ) ); ?>">
<span class="dashicons dashicons-external"></span>
<?php esc_html_e( 'Using multiple PPOM field groups on the same product is available in PRO.', 'woocommerce-product-addon' ); ?>
</a>
</div>
<?php endif; ?>
<?php echo apply_filters('ppom_render_attach_popup' , ''); ?>
</div>
<?php

0 comments on commit efc9f32

Please sign in to comment.