Support Forums - Classified Ads Script Osclass

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: Carlos Carcamo on August 06, 2017, 09:13:09 PM

Title: WhatsApp Contact Option
Post by: Carlos Carcamo on August 06, 2017, 09:13:09 PM
Hey guys I have a question

Now we can contact the people using the WhatsApp api,

My question is:

1. How can I tell the script just to show a <button> or <a> when the item has a phone number and also (in my case) hide the <button> or <a> when the number starts with 2, I need this 2 conditions on item.php using PHP but I can figure out, im trying to use the "show email" code but is not working

Thank you for your time

Title: Re: WhatsApp Contact Option
Post by: MB Themes on August 07, 2017, 09:38:04 AM
@Carlos Carcamo
Check PHP on stackoverflow:
https://stackoverflow.com/questions/2790899/how-to-check-if-a-string-starts-with-a-specified-string