Hi there
I’m using variation on your beautiful theme But it looks like it dosn’t work on quick view
I just get the solution from the plugin support but there is something needs to be done from your side too
———–Here is the conversation——————-
SARA– June 24, 2016 at 20:54
Hello and thank you for making wordpress less complicated
My issue is with the variation plugin which isn’t working at the quick view page as the attached picture
The quick view page is very important for us.
Thank you
GIUSEPPE MADAUDO – 5 hours ago
Hi,
you need to add the compatibility with this quick view integrated in your theme. For doing this, the first step is to pass using json to the ajax response the product attributes in this way
$product_id = $_REQUEST['prodid'];
$attributes = false;
if( defined( 'YITH_WCCL_PREMIUM' ) && YITH_WCCL_PREMIUM && class_exists( 'YITH_WCCL_Frontend' ) ) {
$attributes = YITH_WCCL_Frontend()->create_attributes_json( $product_id, true );
}
....
wp_send_json( array(
... normal response
'product_attr' => $attributes;
));
Then add this on js script that handle quick view on “success” instance
` if( typeof $.yith_wccl != ‘undefined’ && response.product_attr ) {
// color e label premium
$.yith_wccl( data.prod_attr );
}
`
Unfortunaly this require modification to the theme core and I’m not able to do this. So my suggestion is to contact your theme’s developers and ask them to add this compatibility. They can use the code that I’ve added to this response for this.
Regards,
Giuseppe
———–End of the conversation——————-
FTP and Login details in in the attachment
Thank you again