Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
jsarnowski/cartflows-pro / checkout / templates / your-product / normal-product-markup.php
Size: Mime:
<?php
/**
 * Your product template for normal products.
 *
 * @package cartflows
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( $current_product && $current_product->is_in_stock() ) {

	$highlight_data = $this->get_product_highlight_data( $data );
	$product_id     = $current_product->get_id();
	$checked        = ( isset( self::$cart_items[ $data['cart_item_key'] ] ) ) ? 'checked' : '';
	$price_data     = $this->your_product_price( $current_product, $data, 0 );
	$price_sel_data = $price_data['sel_data'];
	$rc_product_obj = $current_product;
	$rc_product_id  = $product_id;
	$rc_sel_data    = wp_json_encode( $price_sel_data );
	?>
	<div class="wcf-qty-row wcf-qty-row-<?php echo $product_id; ?> <?php echo $highlight_data['parent_class']; ?>" data-options="<?php echo htmlspecialchars( $rc_sel_data, ENT_COMPAT, 'utf-8' ); ?>">

		<?php

			$selected_skin = self::$product_option_data['selected_skin'];

			$template_file = CARTFLOWS_PRO_CHECKOUT_DIR . 'templates/your-product/' . $selected_skin . '-normal-product-row-markup.php';

		if ( file_exists( $template_file ) ) {
			include $template_file;
		}
		?>
	</div> 
	<?php
}