*

buggyboy

  • ***
  • 34 posts
  • ---
Highlightning with Ultimate Payments
« on: August 28, 2023, 10:39:34 PM »
Hello.
I use the Ultimate Payment Plugin.
In order for the highlighted articles to be displayed, 2 files must be expanded. Has anyone done this themselves and could they provide me with the two files for this purpose?
Apparently the files search_list.php and search_gallery.php are not used in this theme. Or does the code then have to be used in 2 other files?
Many thanks for your help.



Code: [Select]
Setting highlighting  Need small modifictions of theme files. Need add two HTML "id" tag with PHP code in search files.                       
 
 Open these 2 files in your template:loop-single.php, loop-single-premium.php( or search_list.php and search_gallery.php)
 In default theme Bender and in some other themes, files named:loop-single.php, loop-single-premium.php
 In Modern theme and in some other themes, files named:search_list.php, search_gallery.php
 First "id" ( or "class") for premium items                    id="<?php if(function_exists('upayments_premium_get_class_color')){echo upayments_premium_get_class_color(osc_premium_id()); } ?>
 Second "id" ( or "class") for items                     id="<?php if(function_exists('upayments_get_class_color')){echo upayments_get_class_color(osc_item_id()); } ?>
 In Highlighted ads will be shown - id = "colorized", normal - id = "normal". Items with id = "colorized" will have a Highlighted color background                       
 Example, for the Bender theme:                         
 File loop-single.php - 2-line :                         
  <li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo 'premium';}?>" id="<?php if(function_exists('upayments_get_class_color')){echo upayments_get_class_color(osc_item_id());} ?>"> 
 File loop-single-premium.php :                       
  <li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo 'premium';}?>" id="<?php if(function_exists('upayments_premium_get_class_color')){echo upayments_premium_get_class_color(osc_premium_id());} ?>"> 
 Modified files for Modern and Bender(for examples) in /oc-content/plugins/ultimatePayments/examples.
spiel-zeit-shop.de
brettspiele-flohmarkt.de
lesumer-spieleladen.de

*

MB Themes

Re: Highlightning with Ultimate Payments
« Reply #1 on: August 29, 2023, 09:49:58 AM »
No idea why this plugin does not use standard hook but custom functions those must be placed to theme.
Does not make sense.
... Anyway instructions are pretty clear and author should be able to help you
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

buggyboy

  • ***
  • 34 posts
  • ---
Re: Highlightning with Ultimate Payments
« Reply #2 on: August 29, 2023, 06:05:39 PM »
Hi.
Thanks for your answer.
Can the Osclass Pay Payment Plugin do the highlighting without additional commands in files that do not exist in the theme?
Peter
spiel-zeit-shop.de
brettspiele-flohmarkt.de
lesumer-spieleladen.de

*

MB Themes

Re: Highlightning with Ultimate Payments
« Reply #3 on: August 29, 2023, 11:19:51 PM »
In files that does not exists in theme? Not sure if I am getting you.
However, most of themes now utilize highlight_class hook that handle it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

buggyboy

  • ***
  • 34 posts
  • ---
Re: Highlightning with Ultimate Payments
« Reply #4 on: August 29, 2023, 11:49:10 PM »
Hi.
I just bought the new payment system from you. Everything works fine with this. The prices are a bit difficult to set, but I managed to do it now. Thank you
spiel-zeit-shop.de
brettspiele-flohmarkt.de
lesumer-spieleladen.de

*

MB Themes

Re: Highlightning with Ultimate Payments
« Reply #5 on: August 30, 2023, 01:08:35 PM »
@buggyboy
They are difficult as it's required to be able to manage whatever combination :/
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots