Calling Cash Back in category page

Pending
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme August 13, 2019
Login to reply
Igor Sunz Support Agent
10 months ago

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/

tech zotezo
10 months ago

Hello,

Small request For recent category page modification.In home page for some products we have cashback options But for a particular domain which has cask options that needs to display on home page also.How to achieve that goal?

Is it possible ?

Thanks,

Dwaipayan

Igor Sunz Support Agent
10 months ago

This code can work only inside Content Egg templates. You can't use it for product loop because there is no $domain in loop.

Such advanced customization  falls outside the scope of our support, we can make it only as custom paid job. Price will be $50 for this type of task

I can only advice you something.

here is code to get domain

 <?php if (defined('\ContentEgg\PLUGIN_PATH')):?>

        <?php $itemsync = \ContentEgg\application\WooIntegrator::getSyncItem($post->ID);?>
        <?php if(!empty($itemsync)):?>
            <?php
                $syncitem = $itemsync;
                $domain = $syncitem['extra']['domain'];
            ?>
        <?php endif;?>
    <?php endif;?>
tech zotezo
10 months ago

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

Additional Info

Link on page with issue (Optional): dev3.zotezo.com