michelve / software-license-manager

🔐Wordpress Software License Management. Supports WooCommerce, and WP eStore.
https://epikly.com
GNU General Public License v3.0
77 stars 29 forks source link

There is no link string for "slm-view" in wc_licenses_class.php #41

Closed k-kikuchi-waverworks closed 4 years ago

k-kikuchi-waverworks commented 4 years ago

Thank you for fixing #33. I say big thanks to you.

However, this fix caused an another issues.

<td class="slm-view" data-title="<?php echo __('view', 'softwarelicensemanager'); ?>"><a href="" class=" woocommerce-button button view"><?php echo _e('view'); ?></a></td>

There is no string value for href attribute so that links for order pages are not working. I looked your code, and I think this should be like following.

<td class="slm-view" data-title="<?php echo __('view', 'softwarelicensemanager'); ?>"><a href="<?php echo get_site_url() . '/my-account/view-order/' . $license_info->purchase_id_; ?>" class=" woocommerce-button button view"><?php echo _e('view'); ?></a></td>

Would you mind fixing this?

King Regards KAZUKI