Posts by contempoinc

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says
1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Thanks for the code, actually figured it out but yours is correct as well.

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Thanks for the code, actually figured it out but yours is correct as well.

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Ah, thanks for the link sir! So I need to add a user agent this is the current code I’m using what exactly do I need to modify? Any help is appreciated!

// Validate item purchase code
        $result = array();

        if( !empty($posted['purchasecode']) && !empty($posted['username']) ) {
            [name and ID removed]
            $purchase_code = urlencode($posted['purchasecode']);
            $result_from_json = file_get_contents('http://marketplace.envato.com/api/edge/'.$username.'/'.$api_key.'/verify-purchase:'.$purchase_code.'.json');
            $result = json_decode($result_from_json, true);
        }

        if( $result['verify-purchase']['item_name'] && !empty($posted['username']) ) {

            if( strcmp( $result['verify-purchase']['buyer'] , $posted['username'] ) !== 0 )
                $errors->add('required-purchasecode', __('That username is not valid for this item purchase code. Please make sure you entered the correct username.', 'woothemes') );

        } elseif ( !empty($posted['purchasecode']) ) {

            if ( !empty($posted['username']) ) $errors->add('required-purchasecode', __('That is not a valid item purchase code.', 'woothemes') );

        }
1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Anyone else having buyers report having issues with their purchase codes not being validated through the Envato API just recently? I’ve had several buyers over the past few days report this, has something changed?

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Checkout my portfolio I just released an automotive WP theme.

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

This has been a requirement and best practice for some time now. Using the TGM Plugin Activation library makes it cake for users to install and activate the required plugins.

http://tgmpluginactivation.com/

Use it in all my themes never had a buyer have an issue with it, pretty sure its the standard for all authors.
1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Got my day spa & salon theme in the queue today.

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Design aesthetics has a lot to do with the price as well, a mediocre theme with a billion options wont guarantee you a higher price from what I understand.

1610 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Congrats guys!

by
by
by
by
by
by