Osclass Support Forums - Rackons.in
Osclass Plugin Support => Market Price with Discount => Topic started by: Demyka on February 26, 2019, 12:23:46 AM
-
Hello,
Please, how can I make the discount display in last listings of home page. It is displayed only in item page.
My theme is Bitfinder
Best regards
-
Hello ,
Please mention your theme and website name here, then we will check for that.
-
Hello ,
Please mention your theme and website name here, then we will check for that.
and you put below code on loop-single.php or loop-single-premium.php : <?php if(function_exists('osc_mrp_number')){ osc_mrp_number();} ?>
-
Theme: Bitfinder
Unfortunately, there are no loop-single.php or loop-single-premium.php files in this theme.
-
Please PM your Cpanel login details then we will check files and try to show on home page for Bitfinder theme.
-
https://ouadakar.net/ please check your website home page.
please check screenshot : https://prnt.sc/mq9vcd (https://prnt.sc/mq9vcd)
-
ok, please mark your question as solve.
-
Hello,
I'm having the same issue.
I've tried everything and still the function doesn't appear on the homepage, it works only for the item page.
My loop-single.php code is:
<?php if (osc_price_enabled_at_items() && osc_item_price() != "") : ?>
<div class="overlay overlay-top overlay-left-0 overlay-price">
<span class="bg-dark text-inverse p-sm d-b font-secondary loop-item-price">
<?php echo osc_format_price(osc_item_price()); ?>
</span>
<?php if(function_exists('osc_mrp_number')) { osc_mrp_number(); } ?>
</div>
<?php endif; ?>
I guess the issue is that the function doesn't fetch the item id on the homepage, that's why it probably returns empty.
Can you please guide me on how to fix it (testing on localhost)?
Thanks!