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

The quick view of the products does not work
(1 viewing) (1) Guest

TOPIC: The quick view of the products does not work

The quick view of the products does not work 7 years, 5 months ago #30038

This is a link to my shop. As you can see, when you click in the eye button of each product,

the quick view does not show. It returns an error related with admin-ajax.php
nueva.sumorestaurante.com/probandooo/

I understand this problem has something to do with Zenwares theme wich I have purchased and is not working as it should.

I have tested the issue in a completely new instalation and it happens just the same.
www.manuelramila.com/prueba/?post_type=product

Please this is an installation issue and I need to solve the problem today.

Thanks in advance

Re: The quick view of the products does not work 7 years, 5 months ago #30052

  • thuyltt
Dear sir,
Please fix this issue in file: wp-content\plugins\sw_woocommerce\includes\woocommerce-hook.php
$yith_compare = new YITH_Woocompare_Frontend();
add_shortcode( 'yith_compare_button', array( $yith_compare , 'compare_button_sc' ) );
$html .= do_shortcode( "[yith_compare_button]" );

CHANGE TO=>
$html .= '<div class="compare-button"><a href="javascript:void(0)" class="compare button" data-product_id="'. $product_id .'" rel="nofollow">'. esc_html__( 'Compare', 'furnicom' ) .'</a></div>';

Thanks.

Re: The quick view of the products does not work 7 years, 5 months ago #30074

Hello,
as you can see, this hasn't solved the problem.
My issue has nothing to do with the compare button. Is the QUICKVIEW button which does not work. The one with an eye shape thar appears when you hover a product.

Please I need to fix it. Is urgent.

Thanks

Re: The quick view of the products does not work 7 years, 5 months ago #30085

  • thuyltt
Dear sir,
Please send us code of file: wp-content\plugins\sw_woocommerce\includes\woocommerce-hook.php
To check this issue.

Thanks.

Re: The quick view of the products does not work 7 years, 5 months ago #30091

There you are.

Thanks

I was not able to attach de file so I'll copy de code, anyway you can access to the file if you want. I gave you FTP access.

<?php

add_action( 'woocommerce_after_add_to_cart_button', 'flytheme_single_addcart', 10 );

function flytheme_single_addcart(){
/* compare & wishlist */
global $product;
$html = '';
$html .= '<div class="single-product-addcart">';
if( is_plugin_active( 'yith-woocommerce-compare/init.php' ) ){
/*$yith_compare = new YITH_Woocompare_Frontend();
add_shortcode( 'yith_compare_button', array( $yith_compare , 'compare_button_sc' ) );
$html .= do_shortcode( "[yith_compare_button]" );*/

$html .= '<div class="compare-button"><a href="javascript:void(0)" class="compare button" data-product_id="'. $product_id .'" rel="nofollow">'. esc_html__( 'Compare', 'furnicom' ) .'</a></div>';
}
if( is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) ){
$html .= do_shortcode( "[yith_wcwl_add_to_wishlist]" );
}
$html .= '</div>';
echo $html;
}

function ya_cpwl_init(){
if( is_plugin_active( 'yith-woocommerce-compare/init.php' ) ){
update_option( 'yith_woocompare_compare_button_in_product_page', 'no' );
update_option( 'yith_woocompare_compare_button_in_products_list', 'no' );
}
if( is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) ){
update_option( 'yith_wcwl_button_position', 'shortcode' );
}
}
add_action('admin_init','ya_cpwl_init');
?>
Last Edit: 7 years, 5 months ago by Chiwaka. Reason: I was not able to attach de file

Re: The quick view of the products does not work 7 years, 5 months ago #30128

  • thuyltt
Dear sir,
I see you changed code and quickview works now: prntscr.com/dbwm7a
I don't understand you mean.
Please send us the link which has this error.

Thanks.
Time to create page: 0.23 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