Hi,
I want to call the same display (calling cash back) in Category Pages.I have called this in wp-content/themes/rehub/inc/parts/woogridcompact.php
<?php
//echo lcfirst($logo3);
if($domain == 'decathlon.in'){
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=15365 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
// echo do_shortcode('[cashback-advertiser advertiser=15365 module="Admitad" display="cashback" /]');
}
elseif($domain == 'myntra.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=15481 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
// echo do_shortcode('[cashback-advertiser advertiser=15481 module="Admitad" display="cashback" /]');
}
elseif($domain == 'paytmmall.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto
<?php
$r = do_shortcode('[cashback-advertiser advertiser=18679 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
}
elseif($domain == 'purplle.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=21675 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
//echo do_shortcode('[cashback-advertiser advertiser=21675 module="Admitad" display="cashback" /]');
}
elseif($domain == 'iherb.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=17044 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
//echo do_shortcode('[cashback-advertiser advertiser=17044 module="Admitad" display="cashback" /]');
}
elseif($domain == 'tatacliq.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=15542 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
//echo do_shortcode('[cashback-advertiser advertiser=15542 module="Admitad" display="cashback" /]');
}
elseif($domain == 'firstcry.com')
{
?>
<i class="fas fa-hand-holding-usd" style="color: #ef4136;margin: 3px;"></i>
Earn Cashback Upto <?php
$r = do_shortcode('[cashback-advertiser advertiser=14719 module="Admitad" display="cashback" /]');
echo end(explode('-',$r));
//echo do_shortcode('[cashback-advertiser advertiser=14719 module="Admitad" display="cashback" /]');
}
else
{
}
?>
But I think Logic is not clear.How to show cash back properly?
Thanks,
Dwaipayan
You can add cashback notice per each post or inside Affiliate store (Posts - edit - Affiliate Store). So, you must assign all posts with the same domain to Affiliate store
https://wpsoul.com/how-to-make-cashback-site-on-wordpress-and-rehub-theme/#deal-archive-layout
http://rehubdocs.wpsoul.com/docs/rehub-theme/affiliate-settings/how-to-add-brand-archive-page/