1. Product Reviews Script


Plugins -> targetbay-product-and-site-reviews-> includes -> class-tbwc-targetbay-tracking.php


//Place the below script in line no 748


$script_data .= "var dtaPrTitle = document.getElementsByClassName('products__content--title')[0];

                if (dtaPrTitle !== null && dtaPrTitle !== undefined) {

                dtaPrTitle.insertAdjacentHTML('afterend', '<div class=\"product_name\"></div>');

                }";

 $script_data .= "var dtaPr = document.getElementsByClassName('site-footer')[0];

                if (dtaPr !== null && dtaPr !== undefined) {

                dtaPr.insertAdjacentHTML('beforebegin', '<div class=\"col-full footer-row\"><div id=\"targetbay_reviews\"></div></div>');

                }";            


Note: Classname or Id needs to be changed as per the requirement.



2. Bulk Reviews


//Edit below script in line 323


add_action( 'woocommerce_shop_loop_item_title', array( $this, 'wc_targetbay_action_loop_product' ), 10, 2 );


Option 1: woocommerce_after_shop_loop_item_title

Option 2: woocommerce_after_shop_loop_item


Note: Replace webhook name option 1 or 2 instead of woocommerce_shop_loop_item_title



3. Landing Page Script


I) Need to create a Reviews page


Go to Wp-admin -> Login -> Pages -> Add New -> Add Title : Reviews  -> Click plus icon -> Choose code (<>) -> Place the placeholder -> Publish 


 Placeholder: <div id="targetbay_reviews_landing"></div>




II) Click View Link -> Copy the URL 




III)  Login your Targetbay Account -> Go to Settings -> Reviews -> Product Review Widget tab         -> Reviews: Separate page URL -> Paste the URL here -> Save