Skip to content

Commit

Permalink
Allow retrieval of subdomain from a parameter (#186)
Browse files Browse the repository at this point in the history
* Allow retrieval of subdomain from a parameter

* StyleCI fixes
  • Loading branch information
leewillis77 authored and faustbrian committed Jun 20, 2018
1 parent 1836bfc commit d41ae55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public static function additionalConfigKeys()
*/
private function shopifyUrl($uri = null)
{
if (!empty($this->parameters['subdomain'])) {
return 'https://'.$this->parameters['subdomain'].'.myshopify.com'.$uri;
}
if ($this->getConfig('subdomain')) {
return "https://{$this->getConfig('subdomain')}.myshopify.com".$uri;
}
Expand Down

0 comments on commit d41ae55

Please sign in to comment.