add_to_cartid=

The Woocommerce Products Slider add to cartid shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[add_to_cartid=]'); 
  1. // variable usage 
  2. $result = do_shortcode('[add_to_cartid=]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/templates/wcps-cart.php  
  1. Copyright: 2015 ParaTheme 
  2. */ 
  3.  
  4. if ( ! defined('ABSPATH')) exit; // if direct access  
  5.  
  6. $html_cart = apply_filters( 'wcps_filter_cart', do_shortcode('[add_to_cart id="'.get_the_ID().'"]') ); 
  7.  
  8. $html.= '<div class="wcps-items-cart '.$wcps_cart_style.'">'.$html_cart.'</div>';