Home › Forums › Basel support forum › integration of Yith recently viewed products plugin
integration of Yith recently viewed products plugin
- This topic has 7 replies, 2 voices, and was last updated 7 years ago by Artem Temos.
-
AuthorPosts
-
November 13, 2017 at 10:44 am #23965
raqyParticipantHi,
I’d like to integrate this plugin which seems to suit perfectly my client needs. However, as you have changed default WooCommerce hooks the row of ‘recently viewed products’ does not show up as it should after ‘related products’ but right after the tabs, inheriting their background color. In short – a mess.
I’ve tried to change the hooks placement in my child theme function.php but although it did put ‘recently viewed’ after ‘related products’, it pushed both into the wrong hook.can you pls help fixing my function:
if( ! function_exists( 'basel_woocommerce_hooks' ) ) { function basel_woocommerce_hooks() { global $basel_prefix; remove_action( 'woocommerce_after_single_product_summary', array( $this, 'print_shortcode' ), 30 ); add_action( 'basel_woocommerce_after_sidebar', array( $this, 'print_shortcode' ), 30 ); } }
(they didn’t give their section a name, just
array( $this, 'print_shortcode' )
. I guess this is a bit problematic.)
cheersNovember 13, 2017 at 12:41 pm #23985
Artem TemosKeymasterHello,
We are glad to know that you considered using Basel for your web-site. I hope you will be happy with it.
You can’t use this
array( $this, 'print_shortcode' )
in the child theme since it can work only in its plugin PHP class. So in this case, you may need to change the code of the plugin and change this hook there and not on our child theme.Kind Regards
XtemosNovember 13, 2017 at 1:16 pm #24003
raqyParticipantI’ve tried to avoid that in order to avoid upgrade issues, but for now I’ll change the plugin itself.
I’ll try to contact Yith suggesting a rewrite of their code, so it would be possible to integrate smoothly with your theme or any other theme that changes the hooks.
As some of Yith plugins are already integrated in your theme, it would be nice if you and Yith would consider collaborating on this plugin as well, as it seems to be a much needed addition.
CheersNovember 13, 2017 at 1:36 pm #24012
Artem TemosKeymasterOK, we will consider checking our theme with this plugin also.
November 16, 2017 at 1:34 pm #24426
raqyParticipantFYI. I’ve managed to fully integrate this Yith plugin making some minor changes in one of the plugin files, also incorporating the recently viewed products in the Basel slider used to display the adjunct related and crossell products.
November 16, 2017 at 2:18 pm #24429
Artem TemosKeymasterWe are glad that you have solved this. But if you did your changes in the plugin files, we are not able to include this fix in our theme updates.
Regards
November 16, 2017 at 2:59 pm #24433
raqyParticipantI’ve asked Yith to help me include this on a theme-child so if they would provide me with a script, it would be possible. There was a problem with the
$this
mentioned above that prevented me from writing a function in the theme.November 16, 2017 at 3:30 pm #24442
Artem TemosKeymasterOK, contact us about with the result.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register