Plugin Directory

Changeset 3804443


Ignore:
Timestamp:
11/16/2026 07:55:56 AM (less than one hour ago)
Author:
awaisaliawandxb
Message:

Release 2.0.8

Location:
vsw-visual-search-for-woocommerce
Files:
289 added
8 edited

Legend:

Unmodified
Added
Removed
  • vsw-visual-search-for-woocommerce/trunk/assets/css/admin-modern.css

    r3800314 r3804443  
    11/* Admin presentation layer. All rules stay inside the plugin screen. */
     2.vswvisef-admin .vswvisef-tab-panel .form-table th{width:220px;padding:20px 16px 20px 0}
     3.vswvisef-admin .vswvisef-tab-panel .form-table td{padding:16px 0}
     4.vswvisef-admin .vswvisef-tab-panel input.regular-text{width:100%;max-width:560px;min-height:42px;border:1px solid #cfdce1;border-radius:6px;padding:8px 12px}
     5.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
     6.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) tr{display:flex;flex-direction:column;gap:12px;padding:20px;background:#fff;border-right:1px solid #e1e6e9}
     7.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) td{font-size:24px;font-weight:600;color:#173844}
     8.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) th,.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) td{width:auto;padding:0}
     9@media(max-width:782px){.vswvisef-admin .vswvisef-tab-panel>table:not(:has(thead)) tbody{grid-template-columns:1fr}.vswvisef-admin .vswvisef-tab-panel .form-table th{width:auto}}
    210.vswvisef-admin .vswvisef-plan-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:6px 0 16px}
    311.vswvisef-plan-price strong{font-size:30px;line-height:1.3;letter-spacing:-1px;color:#173844;font-weight:650}
  • vsw-visual-search-for-woocommerce/trunk/assets/js/admin-tabs.js

    r3800314 r3804443  
    1515  }
    1616  const anchors = Array.from(nav.querySelectorAll('a'));
     17  const usageTable = screen.querySelector('.widefat');
     18  if (usageTable && Array.from(usageTable.querySelectorAll('td')).some(cell => {
     19    const parts = cell.textContent.trim().match(/^(\d+)\s*\/\s*(\d+)$/);
     20    return parts && Number(parts[1]) >= Number(parts[2]);
     21  })) {
     22    const upgrade = document.createElement('a');
     23    upgrade.href = '#vswvisef-plans-panel';
     24    upgrade.className = 'button button-primary';
     25    upgrade.textContent = 'Upgrade plan — usage limit reached';
     26    usageTable.after(upgrade);
     27  }
     28  const contact = document.createElement('section');
     29  contact.id = 'vswvisef-contact-panel';
     30  const contactTitle = document.createElement('h2');
     31  contactTitle.textContent = 'Contact Us';
     32  const supportLink = document.createElement('a');
     33  supportLink.href = 'https://wordpress.org/support/plugin/vsw-visual-search-for-woocommerce/';
     34  supportLink.textContent = 'Get help in the support forum';
     35  supportLink.className = 'button';
     36  contact.append(contactTitle, supportLink);
     37  screen.append(contact);
     38  const contactTab = document.createElement('a');
     39  contactTab.href = '#vswvisef-contact-panel';
     40  contactTab.textContent = 'Contact Us';
     41  nav.append(contactTab);
    1742  const settings = screen.querySelector('form[action="options.php"]');
    1843  if (settings) {
    … …  
    3560  Array.from(screen.children).forEach(function (element) {
    3661    if (element.id === 'vswvisef-account') current = '#vswvisef-account';
     62    else if (element === contact) current = '#vswvisef-contact-panel';
    3763    else if (element === plans) current = '#vswvisef-plans-panel';
    3864    else if (element.id === 'vswvisef-analytics') current = '#vswvisef-analytics';
  • vsw-visual-search-for-woocommerce/trunk/assets/js/search.js

    r3673485 r3804443  
    163163          const title = document.createElement('h3'); title.textContent = product.name; content.append(title);
    164164          const price = document.createElement('div'); price.className = 'vswvisef-product__price'; price.innerHTML = product.price_html; content.append(price); link.append(content); card.append(link);
    165           const action = document.createElement('a'); action.className = 'vswvisef-product__action'; action.href = product.can_add_to_cart ? product.add_to_cart_url : product.url; action.textContent = product.can_add_to_cart ? vswvisefSearch.addToCart : vswvisefSearch.viewProduct; action.addEventListener('click', () => trackClick(data, product)); card.append(action);
     165          const action = document.createElement('a'); action.className = 'button vswvisef-product__action'; action.href = product.can_add_to_cart ? product.add_to_cart_url : product.url; action.textContent = product.can_add_to_cart ? vswvisefSearch.addToCart : vswvisefSearch.viewProduct; action.addEventListener('click', () => trackClick(data, product)); card.append(action);
    166166          results.append(card);
    167167        });
  • vsw-visual-search-for-woocommerce/trunk/readme.txt

    r3804341 r3804443  
    55Tested up to: 7.1
    66Requires PHP: 8.1
    7 Stable tag: 2.0.7
     7Stable tag: 2.0.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    123123== Changelog ==
    124124
     125= 2.0.8 =
     126* Fixed clipped storefront result buttons and improved result layout compatibility.
     127* Improved admin tab styling and added a Contact Us tab.
     128* Updated the Free plan display to 200 products and 200 monthly searches.
     129* Added an upgrade link when usage reaches the service allowance.
     130
    125131= 2.0.5 =
    126132* Renamed plugin-owned identifiers with the distinct `vswvisef` prefix, added legacy option migration, and included readable asset sources for WordPress.org review.
  • vsw-visual-search-for-woocommerce/trunk/src/Admin/SettingsPage.php

    r3804341 r3804443  
    275275                        $used_products = absint( $health_data['plan']['products']['used'] ?? 0 );
    276276                        $used_searches = absint( $health_data['plan']['monthly_searches']['used'] ?? 0 );
    277                         $recommended_plan = $used_products <= 100 && $used_searches <= 100 ? 'free' : ( $used_products <= 1000 && $used_searches <= 2000 ? 'starter' : 'business' );
     277                        $recommended_plan = $used_products <= 200 && $used_searches <= 200 ? 'free' : ( $used_products <= 1000 && $used_searches <= 2000 ? 'starter' : 'business' );
    278278                        $plan_choices = array(
    279                                 'free' => array( 'name' => __( 'Free', 'vsw-visual-search-for-woocommerce' ), 'products' => 100, 'searches' => 100, 'audience' => __( 'Best for testing visual search on a small catalogue.', 'vsw-visual-search-for-woocommerce' ) ),
     279                                'free' => array( 'name' => __( 'Free', 'vsw-visual-search-for-woocommerce' ), 'products' => 200, 'searches' => 200, 'audience' => __( 'Best for testing visual search on a small catalogue.', 'vsw-visual-search-for-woocommerce' ) ),
    280280                                'starter' => array( 'name' => __( 'Starter', 'vsw-visual-search-for-woocommerce' ), 'products' => 1000, 'searches' => 2000, 'audience' => __( 'Best for growing stores with regular shopper activity.', 'vsw-visual-search-for-woocommerce' ) ),
    281281                                'business' => array( 'name' => __( 'Business', 'vsw-visual-search-for-woocommerce' ), 'products' => 10000, 'searches' => 20000, 'audience' => __( 'Best for large catalogues and high search volume.', 'vsw-visual-search-for-woocommerce' ) ),
  • vsw-visual-search-for-woocommerce/trunk/src/Frontend/Assets.php

    r3673485 r3804443  
    55        public function register(): void { add_action( 'wp_enqueue_scripts', array( $this, 'assets' ) ); }
    66        public function assets(): void {
    7                 wp_register_style( 'vswvisef-search', VSWVISEF_URL . 'assets/css/search.css', array(), VSWVISEF_VERSION );
     7                wp_register_style( 'vswvisef-search-base', VSWVISEF_URL . 'assets/css/search.css', array(), VSWVISEF_VERSION );
     8                wp_register_style( 'vswvisef-search', VSWVISEF_URL . 'assets/css/theme-results.css', array( 'vswvisef-search-base' ), (string) filemtime( VSWVISEF_PATH . 'assets/css/theme-results.css' ) );
    89                wp_register_script( 'vswvisef-search', VSWVISEF_URL . 'assets/js/search.js', array(), VSWVISEF_VERSION, true );
    910                wp_localize_script( 'vswvisef-search', 'vswvisefSearch', array(
  • vsw-visual-search-for-woocommerce/trunk/src/freemius-bootstrap.php

    r3800314 r3804443  
    1919                        'has_paid_plans' => true,
    2020                        'is_org_compliant' => true,
    21                         'menu' => array( 'slug' => 'vswvisef-settings', 'support' => false, 'parent' => array( 'slug' => 'woocommerce' ) ),
     21                        'menu' => array( 'slug' => 'vswvisef-settings', 'support' => false, 'contact' => false, 'pricing' => false, 'parent' => array( 'slug' => 'woocommerce' ) ),
    2222                ) );
    2323        }
  • vsw-visual-search-for-woocommerce/trunk/vsw-visual-search-for-woocommerce.php

    r3804341 r3804443  
    33 * Plugin Name: VSW – Search Products by Image for WooCommerce
    44 * Description: Let shoppers upload an image and discover visually similar WooCommerce products.
    5  * Version: 2.0.7
     5 * Version: 2.0.8
    66 * Requires at least: 6.6
    77 * Requires PHP: 8.1
    … …  
    1818defined( 'ABSPATH' ) || exit;
    1919
    20 define( 'VSWVISEF_VERSION', '2.0.7' );
     20define( 'VSWVISEF_VERSION', '2.0.8' );
    2121define( 'VSWVISEF_FILE', __FILE__ );
    2222define( 'VSWVISEF_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.