Posts by SkatDesign

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

I get it now. Thank you very much guys I really appreciate it.

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

Hey vuzzu,

I have a file “page-top.php”. And here I put all my titles but I want to hide some if statements if some plugins are not present (eg. WooCommerce).

For example here’s a working example:



if ( is_single() ) : 

title here

elseif ( is_page() ):

title here

elseif ( is_shop() )

title here

endif;

Now, the above example works but if Woo is not present it will throw an error at is_shop function.

So I need to insert the function only if Woo is installed.

Hope it makes more sense now.

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

Still would not work:


<?php if ( class_exists( 'WooCommerce' ) ) { ?>

elseif ( is_shop ) :

<?php } ?>

The elseif must have an endif. If I insert it there it will stop my loop and it’s not supposed to stop there.

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

Hey,

Thanks but the problem is that I want to pull Woo stuff inside the statement. So I’m looking for a way that doesn’t trigger an error if Woo is not present.

I can easily add:


elseif ( is_shop() )

But that will bring up a “function does not exist’ error is Woo is not installed.

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

Hey guys,

I was wondering how can I achieve something like this:

I have an if else statement for my theme’s page titles:



if ( is_page() ) :

    ... do something ... 

elseif ( is_single() ) :

    .. do something else ...

endif;

Now, what I want is to add another elseif statement but only if another statement exists. Does it make sense?

Example:



if ( is_page() ) :

    ... do something ... 

elseif ( is_single() ) :

    .. do something else ...

if class_exsits( WooCommerce )  :

    elseif ( is_shop ) :

endif;

endif;

I know I cannot do something like the above example because I need to close the statement with an endif and that is not the end of the statment :)

Hope it make sense.

Do you have any ideas how can I achieve this?

Cheers!

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

Just put yourself a bit in “his shoes”: maybe he really needs a website, he bought a theme and he really-really need his website up and running. But he doesn’t know much about WordPress/HTML/etc…..programming is a foreign language for him and he really-really need help :) My husband is an example of such a client :D LOL

I take these situations as challenges. This is a real challenge for you and your support. If you can transform this into a 5 stars rating afterwards, then, trust me, you can do ANYTHING.

Instead of becoming nervous or frustrated, just try to put yourself in his shoes.

Well what do you know, I got an answer :)

“Pleased to say that the issues were caused by a third party plugin, upon further review.”

I agree with you but I didn’t even had time to answer the support questions.

Also, did you read the msg with the lawsuit threat? :)

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

It seems it kinda settled down after I’ve responded him. Though the 1 star remained and the fix to his problem was deleting a page and creating a new one.

I too don’t care much about ratings but only if a buyer has a legit reason. Not reading the docs. is not a legit reason.

It’s just funny that people rush into things before ever thinking about it. Funny and sad in the same time :)

I still think that, sometimes, the only way to go is a refund :)

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

So refund request because client doesn’t know how to use theme will be reviewed? Decision: poor client, he’s too young and not experienced, besides that he’s crazy enough to act the way he does, we’ll give him refund, this time. Sounds funny? :)

You’re right, but sometimes a refund can save yourself from a lot of headaches :)

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

That would be most abused feature ever. You can always refund by Paypal if you want.

Why’s that? The refund requests could be reviewed too. Anyway this is not something that is going to happen though :)

158 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

I’m politely responding to his requests. If Envato would implement a possibility to issue a refund it would be one of the best features ever.

I’m still laughing when I read the message with the lawsuit :)

by
by
by
by
by
by