Plugin Directory

Changeset 3231787


Ignore:
Timestamp:
01/30/2025 07:55:09 AM (13 months ago)
Author:
spreadr
Message:

Minor fixes

Location:
spreadr-for-woocomerce
Files:
9 added
3 edited

Legend:

Unmodified
Added
Removed
  • spreadr-for-woocomerce/trunk/includes/spreadr-frontend-functions.php

    r3055811 r3231787  
    196196            $strButtonText = get_option('spreadr_button_text');
    197197
    198             $link = sprintf('<a tag="' . $strSpreadrTag . '" spreadr_region="' . $strSpreadrRegion . '" spreadr_product_title="' . $strProductTitle . '" rel="nofollow" href="javascript:void(0);"
    199             onclick ="SpreadrButtonClick(' . $strExternalLink . ',this);" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s" >%s</a>',
    200             //esc_url( $product->add_to_cart_url() ),
    201             esc_attr(isset($quantity) ? $quantity : 1) , esc_attr($product->get_id()) , esc_attr($product->get_sku()) , esc_attr(isset($class) ? $class : 'button product_type_external') , esc_html($strButtonText));
     198            $link = '<a data-tag="' . $strSpreadrTag . '" spreadr_region="' . $strSpreadrRegion . '" spreadr_product_title="' . $strProductTitle . '" rel="nofollow" href="javascript:void(0);"
     199                        onclick ="SpreadrButtonClick(\'' . $strExternalLink . '\', this);"
     200                        data-quantity="' . esc_attr(isset($quantity) ? $quantity : 1) . '"
     201                        data-product_id="' . esc_attr($product->get_id()) . '"
     202                        data-product_sku="' . esc_attr($product->get_sku()) . '"
     203                        class="' . esc_attr(isset($class) ? $class : 'button product_type_external') . '">' .
     204                        esc_html($strButtonText) . '</a>';
     205
    202206        }
    203207    }
     
    568572            $strButtonText = get_option('spreadr_button_text');
    569573
    570             $link = sprintf('<a tag="' . $strSpreadrTag . '" spreadr_region="' . $strSpreadrRegion . '" spreadr_product_title="' . $strProductTitle . '" rel="nofollow" href="javascript:void(0);"
    571             onclick ="SpreadrButtonClick(' . $strExternalLink . ',this);" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s" >%s</a>',
    572             //esc_url( $product->add_to_cart_url() ),
    573             esc_attr(isset($quantity) ? $quantity : 1) , esc_attr($product->get_id()) , esc_attr($product->get_sku()) , esc_attr(isset($class) ? $class : 'button product_type_external') , esc_html($strButtonText));
     574            $link = '<a data-tag="' . $strSpreadrTag . '" spreadr_region="' . $strSpreadrRegion . '" spreadr_product_title="' . $strProductTitle . '" rel="nofollow" href="javascript:void(0);"
     575                        onclick ="SpreadrButtonClick(\'' . $strExternalLink . '\', this);"
     576                        data-quantity="' . esc_attr(isset($quantity) ? $quantity : 1) . '"
     577                        data-product_id="' . esc_attr($product->get_id()) . '"
     578                        data-product_sku="' . esc_attr($product->get_sku()) . '"
     579                        class="' . esc_attr(isset($class) ? $class : 'button product_type_external') . '">' .
     580                        esc_html($strButtonText) . '</a>';
    574581        }
    575582    }
  • spreadr-for-woocomerce/trunk/readme.txt

    r3217706 r3231787  
    8686
    8787== Changelog ==
     88= 1.0.7 - January 30, 2025 =
     89* Minor Fixes.
    8890
    8991= 1.0.6 - January 6, 2025 =
  • spreadr-for-woocomerce/trunk/spreadr.php

    r3217706 r3231787  
    55 * Plugin URI: https://spreadr.co/woocommerce
    66 * Description: Use Spreadr Plugin to import products from Amazon to your WooCommerce store. Earn commissions via Amazon Affiliate Program or run your dropshipping business.
    7  * Version: 1.0.6
     7 * Version: 1.0.7
    88 * Author: spreadr
    99 * Author URI: https://spreadr.co
Note: See TracChangeset for help on using the changeset viewer.