Author Topic: Home page discount display  (Read 5750 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Demyka

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • ouadakar
Home page discount display
« 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



Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 195
  • Rackons.com provide live Osclass Support online
    • View Profile
    • Osclass Market - Osclass Themes and Plugins by Rackons.com
Re: Home page discount display
« Reply #1 on: February 26, 2019, 12:24:45 AM »
Hello ,

Please mention your theme and website name here, then we will check for that.
To get fast support, we need following details: Detail description, website URL to reproduce problem, Screenshots ( If possible )

Osclass Support Forums - Rackons.in

Re: Home page discount display
« Reply #1 on: February 26, 2019, 12:24:45 AM »

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 195
  • Rackons.com provide live Osclass Support online
    • View Profile
    • Osclass Market - Osclass Themes and Plugins by Rackons.com
Re: Home page discount display
« Reply #2 on: February 26, 2019, 12:28:30 AM »
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 :
Code: [Select]
<?php if(function_exists('osc_mrp_number')){ osc_mrp_number();} ?>
To get fast support, we need following details: Detail description, website URL to reproduce problem, Screenshots ( If possible )

Demyka

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • ouadakar
Re: Home page discount display
« Reply #3 on: February 26, 2019, 03:52:15 AM »
Theme: Bitfinder

Unfortunately, there are no loop-single.php or loop-single-premium.php files in this theme.
« Last Edit: March 03, 2019, 04:52:42 AM by Demyka »

Marked as best answer by admin on February 25, 2019, 07:19:14 PM

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 195
  • Rackons.com provide live Osclass Support online
    • View Profile
    • Osclass Market - Osclass Themes and Plugins by Rackons.com
Re: Home page discount display
« Reply #4 on: February 26, 2019, 03:54:09 AM »
Please PM your Cpanel login details then we will check files and try to show on home page for Bitfinder theme.
To get fast support, we need following details: Detail description, website URL to reproduce problem, Screenshots ( If possible )

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 195
  • Rackons.com provide live Osclass Support online
    • View Profile
    • Osclass Market - Osclass Themes and Plugins by Rackons.com
Re: Home page discount display
« Reply #5 on: February 26, 2019, 05:26:35 AM »
https://ouadakar.net/ please check your website home page.

please check screenshot : https://prnt.sc/mq9vcd
To get fast support, we need following details: Detail description, website URL to reproduce problem, Screenshots ( If possible )

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 195
  • Rackons.com provide live Osclass Support online
    • View Profile
    • Osclass Market - Osclass Themes and Plugins by Rackons.com
Re: Home page discount display
« Reply #6 on: February 26, 2019, 05:48:40 AM »
ok, please mark your question as solve.
To get fast support, we need following details: Detail description, website URL to reproduce problem, Screenshots ( If possible )

Tango

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Home page discount display
« Reply #7 on: November 30, 2021, 11:45:46 AM »
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:
Code: [Select]
<?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!
« Last Edit: December 02, 2021, 05:35:07 AM by Tango »

Osclass Support Forums - Rackons.in

Re: Home page discount display
« Reply #7 on: November 30, 2021, 11:45:46 AM »