New Landing How can we help? Atelier Reviews plugin (Yotpo) format

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Atelier
  • #210247
    tonn
    Member
    Post count: 85

    Hi,

    I’m looking to use the yotpo plugin for woocommerce product reviews, but it appears that Atelier is showing the review number and rating under the short description and not near the title/price.

    I’ve tried another woocommerce theme and Twenty-ten and these both show the review stars in the correct area. Images attached.

    Many thanks,

    Attachments:
    You must be logged in to view attached files.
    #210323
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Do you want to display review star just below of title? Please provide me specific page url with issue.
    Thanks
    Mohammad

    #210373
    tonn
    Member
    Post count: 85

    Hi Mohammad,

    Yes, ideally I’ll like it displayed next to the price as standard.

    I’m afraid I don’t have an online page as this is a local development.

    #210783
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You would need to modify the WooCommerce template file. This is located /atelier/woocommerce/content-single-product.php.

    You would need to move line 121to line 151 above the the product title which is on line 113.

    Thanks,
    David.

    #211088
    tonn
    Member
    Post count: 85

    Hi David,

    Many thanks for the reply. Unfortunately moving that snippet of code only had an effect on where the woocommerce ratings show. When removing the code, the woo reviews rightfully disappear, but the yotpo reviews line shows up in the same area.

    I’m thinking a required woocommerce hook may be missing from this theme as the yotpo reviews appear in the correct areas (as shown in the screenshots) with other themes?

    Many thanks

    #211629
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You would need to contact the plugin developer to check how the ratings are hooked into the theme with an action.

    I am assuming they are using this do_action( 'woocommerce_after_shop_loop_item_title' ); but we also have that included and there are no referencing where we remove the action.

    Thanks,
    David.

    #217944
    tonn
    Member
    Post count: 85

    Thanks for the reply David. I’ve looked further into this and it appears they’re hooking into woocommerce_single_product_summary

    A snippet of code from their plugin shows:

    function wc_yotpo_front_end_init() {
    	$settings = get_option('yotpo_settings',wc_yotpo_get_degault_settings());
    	add_action('woocommerce_thankyou', 'wc_yotpo_conversion_track');		
    	if(is_product()) {
    		
    		$widget_location = $settings['widget_location'];	
    		if($settings['disable_native_review_system']) {
    			add_filter( 'comments_open', 'wc_yotpo_remove_native_review_system', null, 2);	
    		}						
    		if($widget_location == 'footer') {		
    			add_action('woocommerce_after_single_product', 'wc_yotpo_show_widget', 10);
    		}
    		elseif($widget_location == 'tab') {
    			add_action('woocommerce_product_tabs', 'wc_yotpo_show_widget_in_tab');		
    		}
    		<strong>if($settings['bottom_line_enabled_product']) {	
    			add_action('woocommerce_single_product_summary', 'wc_yotpo_show_buttomline',7);	
    			wp_enqueue_style('yotpoSideBootomLineStylesheet', plugins_url('assets/css/bottom-line.css', __FILE__));
    		}	</strong>		
    	}
    	elseif ($settings['bottom_line_enabled_category']) {
    		add_action('woocommerce_after_shop_loop_item_title', 'wc_yotpo_show_buttomline',7);
    		wp_enqueue_style('yotpoSideBootomLineStylesheet', plugins_url('assets/css/bottom-line.css', __FILE__));
    	}							
    }

    I’m wondering if the recent issue of product hooks as seen in this thread is causing the priority argument of position 7 to be ignored and thus placed after the description?

    Many thanks,

    #218108
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Yes, it seems to be the same situation.
    For me the solution will be to place a new hook under the price directly in content-single-product.php

    Then it will be possible to hook the wc_yotpo_show_buttomline function to this new hook.

    Try to add this code to the functions.php in your child theme

    remove_action('woocommerce_single_product_summary', 'wc_yotpo_show_buttomline',7);		
    add_action('custom_hook_single_product_summary', 'wc_yotpo_show_buttomline',7);

    And inside the content-single-product.php add this line below the price
    do_action('custom_hook_single_product_summary');

    You can try to place it right above the current do_action of the product summary.

    Give it a try.

    -Rui

    #218217
    tonn
    Member
    Post count: 85

    Thanks for the reply Rui.

    Unfortunately remove_action won’t be able to remove the existing woocommerce hook but the custom hook shows up fine. I’ll wait for the updated fix as my site is currently only on a local development.

    Many thanks for the help

    #218383
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad I could help.
    -Rui

    #224659
    tonn
    Member
    Post count: 85

    Hi Rui,

    Just to give an update on this issue. It looks like todays update was not v1.80 and doesn’t include the aforementioned fix.

    http://www.swiftideas.com/forums/topic/latest-swift-framework-update/#post-222892
    http://www.swiftideas.com/forums/topic/latest-swift-framework-update/#post-222912

    Any timescale on when this will be fixed?

    Many thanks.

    #224664
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Just read the entire topic and it seems to be a specific change because of the plugin you are using in your site.

    Not sure if the theme can be updated with this change, if not you have to apply the change in the child theme to avoid update issues.

    Let’s wait for the reply of the development team.

    -Rui

    #224719
    tonn
    Member
    Post count: 85

    Thanks Rui. Unfortunately this is a theme issue as the ability to remove/reorder a WordPress hook should be possible.

    #224767
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @tonn

    For v1.8 we will hopefully be reverting to using the standard title/price hooks for compatibility, so long as we can achieve the display that matches how we currently have the design.

    – Ed

    #224906
    tonn
    Member
    Post count: 85

    Thanks for the reply Ed. Do you have a rough ETA for the 1.8 release?

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.