Changeset 3107683
- Timestamp:
- 06/25/2024 08:28:27 PM (22 months ago)
- Location:
- doko-box-builder/trunk
- Files:
-
- 1 added
- 5 edited
-
README.txt (modified) (4 diffs)
-
changelog.txt (modified) (1 diff)
-
core/class-hs-doko-utils.php (modified) (1 diff)
-
hs-doko.php (modified) (3 diffs)
-
templates/doko-content-product.php (added)
-
templates/single-product/doko-products.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doko-box-builder/trunk/README.txt
r3089872 r3107683 6 6 Requires PHP : 7.4 7 7 Tested up to: 6.5 8 Stable tag: 1.3 8 Stable tag: 1.3.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Requires Plugins : woocommerce11 Requires Plugins: woocommerce 12 12 13 13 Increase sales by allowing your WooCommerce customers to create personalized bundles their way, ensuring accurate pricing. … … 71 71 72 72 == Changelog == 73 <h4> 1.3 - 22 May 2024 <h4> 73 <h4> 1.3.1 - 26 June 2024 </h4> 74 <ul> 75 <li> Add Requires Plugins header for plugin </li> 76 <li> Add compatibility with WooCommerce 9.0 </li> 77 <li> Fix issue with add to cart button not appearing. </li> 78 </ul> 79 <h4> 1.3 - 22 May 2024 </h4> 74 80 <ul> 75 81 <li> Add a option to customize easily the last step screens. </li> … … 79 85 <li> Prevent variations to be separated on shop loop. </li> 80 86 </ul> 81 <h4> 1.2 - 8 March 2024 < h4>87 <h4> 1.2 - 8 March 2024 </h4> 82 88 <ul> 83 89 <li> Add ability to manage product stock </li> … … 85 91 </ul> 86 92 87 <h4> 1.1.2 - 11 November 2023 < h4>93 <h4> 1.1.2 - 11 November 2023 </h4> 88 94 <ul> 89 95 <li> Remove out of stock, in backorder products from bundle screens </li> -
doko-box-builder/trunk/changelog.txt
r3001399 r3107683 1 1 *** Changelog *** 2 2024-06-26 - version 1.3.1 3 * Add Requires Plugins header for plugin 4 * Add support for WooCommerce 9.0 5 * Fix issue with add to cart button not appearing. 6 * Fix issue with empty box content 7 8 2024-05-22 - version 1.3 9 * Add a option to customize easily the last step screens. 10 * Disable the plugin on page where the bundle is not present 11 * Add support for all WooCommerce themes ( classic, blocks, Elementor and more) 12 * Add compatibility with WooCommerce 8.6 13 * Prevent variations to be separated on shop loop. 14 15 2024-03-08 - version 1.2 16 * Add ability to manage product stock 17 * Add compatibility with WooCommerce 8.4 2 18 3 19 2023-11-24 - version 1.1.2 -
doko-box-builder/trunk/core/class-hs-doko-utils.php
r3089872 r3107683 265 265 return $products; 266 266 } 267 268 269 if ( ! function_exists( 'doko_template_loop_add_to_cart' ) ) { 270 271 /** 272 * Get the add to cart template for the loop. 273 * 274 * @param array $args Arguments. 275 */ 276 function doko_template_loop_add_to_cart( $args = array() ) { 277 global $product; 278 279 if ( $product ) { 280 $defaults = array( 281 'quantity' => 1, 282 'class' => implode( 283 ' ', 284 array_filter( 285 array( 286 'button', 287 wc_wp_theme_get_element_class_name( 'button' ), // escaped in the template. 288 'product_type_' . $product->get_type(), 289 $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', 290 $product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock() ? 'ajax_add_to_cart' : '', 291 ) 292 ) 293 ), 294 'attributes' => array( 295 'data-product_id' => $product->get_id(), 296 'data-product_sku' => $product->get_sku(), 297 'aria-label' => $product->add_to_cart_description(), 298 'aria-describedby' => $product->add_to_cart_aria_describedby(), 299 'rel' => 'nofollow', 300 ), 301 ); 302 303 $args = apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product ); 304 305 if ( ! empty( $args['attributes']['aria-describedby'] ) ) { 306 $args['attributes']['aria-describedby'] = wp_strip_all_tags( $args['attributes']['aria-describedby'] ); 307 } 308 309 if ( isset( $args['attributes']['aria-label'] ) ) { 310 $args['attributes']['aria-label'] = wp_strip_all_tags( $args['attributes']['aria-label'] ); 311 } 312 313 wc_get_template( 'loop/add-to-cart.php', $args ); 314 } 315 } 316 } -
doko-box-builder/trunk/hs-doko.php
r3089872 r3107683 8 8 * 9 9 * @wordpress-plugin 10 * Plugin Name: DokoBuilder : DIY Product Bundlefor WooCommerce11 * Plugin URI: https://ultiwp.com 10 * Plugin Name: DokoBuilder : The Ultimate dynamic bundle builder for WooCommerce 11 * Plugin URI: https://ultiwp.com/plugins/doko 12 12 * Description: Increase sales by letting your customers create custom bundles. 13 * Version: 1.3 13 * Version: 1.3.1 14 14 * Author: UltiWP 15 15 * Author URI: https://ultiwp.com … … 20 20 * Requires at least: 6.0 21 21 * Requires PHP: 7.4 22 * WC requires at least: 8.0.0 22 * Requires Plugins: woocommerce 23 * WC requires at least: 9.0.0 23 24 */ 24 25 … … 33 34 * Rename this for your plugin and update it as you release new versions. 34 35 */ 35 define( 'DOKO_VERSION', '1.3 ' );36 define( 'DOKO_VERSION', '1.3.1' ); 36 37 37 38 add_action( 'before_woocommerce_init', function() { -
doko-box-builder/trunk/templates/single-product/doko-products.php
r3047333 r3107683 69 69 $GLOBALS['post'] = get_post($variation); 70 70 setup_postdata($GLOBALS['post']); 71 wc_get_template_part(' content', 'product');71 wc_get_template_part('doko-content', 'product'); 72 72 wp_reset_postdata(); 73 73 } 74 74 } else { 75 wc_get_template_part(' content', 'product');75 wc_get_template_part('doko-content', 'product'); 76 76 } 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.