Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Quick View problem
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Quick View problem

Re: Quick View problem 7 years, 3 months ago #31300

What was the fix code? I am having the same issue.

Re: Quick View problem 7 years, 3 months ago #31301

It's related to content-quickview-product.php located in themes/"ThemeNameFolder"/woocommerce/content-quickview-product.php

Below is the complete file

<?php
/**
* The template for displaying product content in the single-product.php template
*
* Override this template by copying it to yourtheme/woocommerce/content-single-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
?>
<div id="quickview-container-<?php the_ID(); ?>">
<div class="quickview-container woocommerce">
<?php
global $product;
/**
* woocommerce_before_single_product hook
*
* @hooked woocommerce_show_messages - 10
*/
do_action( 'woocommerce_before_single_product' );
?>
<div itemscope itemtype="schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class("product single-product"); ?>>
<div class="product_detail">
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="slider_img_productd">






<?php global $post, $woocommerce, $product;
$flytheme_direction = flytheme_options()->getCpanelValue( 'direction' );
$sidebar_product = flytheme_options()->getCpanelValue( 'sidebar_product' );
$attachments = $product->get_gallery_attachment_ids();

?>
<div id="product_img_<?php echo esc_attr( $post->ID ); ?>" class="product-images loading" data-rtl="<?php echo ( is_rtl() || $flytheme_direction == 'rtl' )? 'true' : 'false';?>" data-vertical="<?php echo ( $sidebar_product == 'full' ) ? 'true' : 'false'; ?>">
<div class="product-images-container clearfix <?php echo ( $sidebar_product == 'full' ) ? 'thumbnail-left' : 'thumbnail-bottom'; ?>">
<?php if( count( $attachments ) > 0 ){ ?>
<?php
if( $sidebar_product == 'full' ){
do_action('woocommerce_product_thumbnails');
}
?>
<!-- Image Slider -->
<div class="slider product-responsive">
<?php foreach ( $attachments as $key => $attachment ) { ?>
<div class="item-img-slider">
<div class="images">
<?php if ($product->is_on_sale()) : ?>

<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.esc_html__( 'Sale!', 'clickboom' ).'</span>', $post, $product); ?>




<?php endif; ?>
<a href="<?php the_permalink(); ?> " ><?php echo wp_get_attachment_image( $attachment, 'shop_single' ); ?></a>
</div>
</div>
<?php } ?>
</div>
<!-- Thumbnail Slider -->
<?php
if( $sidebar_product != 'full' ){
do_action('woocommerce_product_thumbnails');
}
?>
<?php }else{ ?>
<?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large', true); ?>
<div class="single-img-product">
<div class="images">
<?php if ($product->is_on_sale()) : ?>

<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.esc_html__( 'Sale!', 'clickboom' ).'</span>', $post, $product); ?>

<?php endif; ?>
<a title="<?php the_title(); ?>" href="<?php echo esc_url( $image_url[0] ); ?>" rel="prettyPhoto[product-gallery]" class="zoom"><?php the_post_thumbnail('shop_single'); ?></a>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="content_product_detail">
<!-- woocommerce_template_single_title - 5 -->
<!-- woocommerce_template_single_rating - 10 -->
<!-- woocommerce_template_single_price - 20 -->
<!-- woocommerce_template_single_excerpt - 30 -->
<!-- woocommerce_template_single_add_to_cart 40 -->
<?php
/**
* woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_title - 5
* @hooked woocommerce_template_single_price - 10
* @hooked woocommerce_template_single_excerpt - 20
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
*/
do_action( 'woocommerce_single_product_summary' );
?>
</div>
</div>
</div><!-- .summary -->
</div>

<?php do_action( 'woocommerce_after_single_product' ); ?>
<div class="clearfix"></div>
</div>
</div>
<?php
global $woocommerce;
$assets_path = str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/';
$frontend_script_path = $assets_path . 'js/frontend/';
$wc_ajax_url = WC_AJAX::get_endpoint( "%%endpoint%%" );
$admin_url = admin_url('admin-ajax.php');
wc_get_template( 'single-product/add-to-cart/variation.php' );
?>

<script type='text/javascript'>
/* <![CDATA[ */
<?php

$woocommerce_params = apply_filters( 'woocommerce_params', array(
'ajax' => array(
'url' => $admin_url
)
) );

$_wpUtilSettings = apply_filters( '_wpUtilSettings', array(
'ajax_url' => $woocommerce->ajax_url(),
'wc_ajax_url' => $wc_ajax_url
) );


$wc_add_to_cart_variation_params = apply_filters( 'wc_add_to_cart_variation_params', array(
'i18n_no_matching_variations_text' => esc_attr__( 'Sorry, no products matched your selection. Please choose a different combination.', 'clickboom' ),


) );

?>
var _wpUtilSettings = <?php echo json_encode($_wpUtilSettings); ?>;
var woocommerce_params = <?php echo json_encode($woocommerce_params); ?>;
var wc_add_to_cart_variation_params = <?php echo json_encode($wc_add_to_cart_variation_params); ?>;

/* ]]> */
<?php
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$assets_path = str_replace( array( 'http:', 'https:' ), '', $woocommerce->plugin_url() ) . '/assets/';
$frontend_script_path = $assets_path . 'js/frontend/';
?>

jQuery(document).ready(function($) {
$.getScript("<?php echo $assets_path . 'js/prettyPhoto/jquery.prettyPhoto.min.js'; ?>");
$.getScript("<?php echo $assets_path . 'js/prettyPhoto/jquery.prettyPhoto.init.min.js'; ?>");
$.getScript("<?php echo $frontend_script_path . 'add-to-cart' . $suffix . '.js'; ?>");
$.getScript("<?php echo $frontend_script_path . 'single-product' . $suffix . '.js'; ?>");
$.getScript("<?php echo $frontend_script_path . 'woocommerce' . $suffix . '.js'; ?>");
$.getScript("<?php echo $frontend_script_path . 'add-to-cart-variation' . $suffix . '.js'; ?>");
});
</script>

<script type='text/javascript' src='<?php echo esc_url ( home_url('/') )?>wp-includes/js/wp-embed.min.js'></script>
<script type='text/javascript' src='<?php echo esc_url ( home_url('/') )?>wp-includes/js/underscore.min.js'></script>
<script type='text/javascript' src='<?php echo esc_url ( home_url('/') )?>wp-includes/js/wp-util.min.js'></script>

Re: Quick View problem 7 years, 3 months ago #31302

Thanks mate, its strange because it works for some of my products and not others

Re: Quick View problem 7 years, 3 months ago #31355

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
You're wellcome. Please feel free to contact us if you need any further assistance.
  • Page:
  • 1
  • 2
Time to create page: 0.26 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Banner

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes