Plugin Directory

Changeset 2111975


Ignore:
Timestamp:
06/25/2019 09:03:20 AM (7 years ago)
Author:
logicfire
Message:

25/06/2019
Added:
Shortcode attribute 'class' to add classes to main wrapper of cross-sells.

Location:
woocommerce-cross-sell-products-display/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-cross-sell-products-display/trunk/readme.txt

    r2027122 r2111975  
    44Tags: woo commerce, wordpress, cross-sells products, woo commerce cross-sell products
    55Requires at least: 3.0
    6 Tested up to: 5.0.3
     6Tested up to: 5.2.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525
    2626== Changelog ==
     2725/06/2019
     28Added:
     29Shortcode attribute 'class' to add classes to main wrapper of cross-sells.
     30[wcsp_cross_sell orderby="rand” order=“ASC” product_num=“5” display_columns=“3” title=“Some title..” category=“Category ID” product_id="Product ID" class="class-1 class-2 class-3"]
     31
     32
    27338/02/2019
    2834Bug Fixes
  • woocommerce-cross-sell-products-display/trunk/woocommerce-cross-sell-products-display.php

    r2027099 r2111975  
    55    Description: Allow to display cross sell products on single product page. Allow to use shotrcode [wcsp_cross_sell] with various attributes on single product page or enable to display below the single product summary.
    66    Author: Logicfire
    7     Version: 1.4
     7    Version: 1.5
    88    */
    99
     
    4242            'title' => 'Cross Sells...',
    4343            'category' => '',
    44             'product_id' => ''
     44            'product_id' => '',
     45            'class' => ''
    4546        ), $atts );
    4647
     
    9899            <?php
    99100            ob_start();
    100             echo '<div class="cross-sells woocommerce"><h2>'.__($title, WPSC_CROSSSELL).'</h2>';
     101            echo '<div class="cross-sells woocommerce '.$class.'"><h2>'.__($title, WPSC_CROSSSELL).'</h2>';
    101102            woocommerce_product_loop_start();
    102103            while ( $products->have_posts() ) : $products->the_post();
Note: See TracChangeset for help on using the changeset viewer.