Changeset 2111975
- Timestamp:
- 06/25/2019 09:03:20 AM (7 years ago)
- Location:
- woocommerce-cross-sell-products-display/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
woocommerce-cross-sell-products-display.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-cross-sell-products-display/trunk/readme.txt
r2027122 r2111975 4 4 Tags: woo commerce, wordpress, cross-sells products, woo commerce cross-sell products 5 5 Requires at least: 3.0 6 Tested up to: 5. 0.36 Tested up to: 5.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 26 26 == Changelog == 27 25/06/2019 28 Added: 29 Shortcode 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 27 33 8/02/2019 28 34 Bug Fixes -
woocommerce-cross-sell-products-display/trunk/woocommerce-cross-sell-products-display.php
r2027099 r2111975 5 5 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. 6 6 Author: Logicfire 7 Version: 1. 47 Version: 1.5 8 8 */ 9 9 … … 42 42 'title' => 'Cross Sells...', 43 43 'category' => '', 44 'product_id' => '' 44 'product_id' => '', 45 'class' => '' 45 46 ), $atts ); 46 47 … … 98 99 <?php 99 100 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>'; 101 102 woocommerce_product_loop_start(); 102 103 while ( $products->have_posts() ) : $products->the_post();
Note: See TracChangeset
for help on using the changeset viewer.