*

kriskoyk

  • *****
  • 389 posts
Prohibition of selling dogs to people without a BREEDING license
« on: September 09, 2026, 09:32:05 PM »
When the user posts an ad and selects "YES" in the "DOG BREEDING LICENSE HOLDER" condition, then and only then should the transaction type display the "SELL" option. How is this done?

*

MB Themes

Re: Prohibition of selling dogs to people without a BREEDING license
« Reply #1 on: September 10, 2026, 11:17:53 AM »
That sounds like very specific requirement for dogs selling. Easiest way will be custom code.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 389 posts
Re: Prohibition of selling dogs to people without a BREEDING license
« Reply #2 on: Yesterday at 02:00:35 PM »
Can the product brand and model in the plugin (Products Attributes Plugin) be hidden based on a contition selection—such as "used"—by wrapping them in a function like this?
Code: [Select]
<?php if(!osc_is_web_user_logged_in())  { ?>
----------
<?php ?>

*

kriskoyk

  • *****
  • 389 posts
Re: Prohibition of selling dogs to people without a BREEDING license
« Reply #3 on: Yesterday at 07:03:56 PM »
I am wrapping `Item.edit.php` from `products_attributes` with this code, but it doesn't hide the brand and model when the condition is 'Used'.
Code: [Select]
<?php  if ($item_condition 'Used') { ?>
------
<?php ?>