*

Hugo

  • ****
  • 182 posts
Sold items > disable the contact forum
« on: January 26, 2023, 10:58:21 AM »
Currently some people that have their items marked as sold still get messages of unaware visitors (eventhough it is marked!!!), is there a way to disable the contact on the item page?

*

MB Themes

Re: Sold items > disable the contact forum
« Reply #1 on: January 26, 2023, 04:37:16 PM »
@Hugo
"Sold" feature comes from theme so no integration cross-board, but you can try this (Delta theme):
Code: [Select]
    $item_extra = del_item_extra(osc_item_id());

Then:
Code: [Select]
<?php if($item_extra['i_sold'] > 0) { ?>
... item is sold ...
<?php } else { ?>
... not sold, button/text...
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Hugo

  • ****
  • 182 posts
Re: Sold items > disable the contact forum
« Reply #2 on: February 02, 2023, 09:34:08 PM »
Thank you. Is this in the plugin or theme located?

*

MB Themes

Re: Sold items > disable the contact forum
« Reply #3 on: February 03, 2023, 03:47:30 PM »
If you use hook, in plugin and more complicated.
Otherwise in theme probably item.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Hugo

  • ****
  • 182 posts
Re: Sold items > disable the contact forum
« Reply #4 on: February 03, 2023, 10:22:33 PM »
I am sorry but this didn't work (or i did it wrong); i pasted the code after the specific mentioned line (and removed the <?php part)

*

MB Themes

Re: Sold items > disable the contact forum
« Reply #5 on: February 04, 2023, 02:28:48 PM »
@Hugo
It must work, if item is sold, button is hidden.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots