Skip to content

Commit f79b8c4

Browse files
authored
Merge pull request #2 from Bobspadger/fix-orders-v2
DIRTY HACK TO MAKE ORDERS WORK ON v3
2 parents 924d791 + c71d4a6 commit f79b8c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bigcommerce/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def _run_method(self, method, url, data=None, query=None, headers=None):
5555

5656
# Support v3
5757
if self.api_path and 'v3' in self.api_path:
58-
url = 'catalog/{}'.format(url)
58+
if url is 'orders':
59+
self.api_path = self.api_path.replace('v3', 'v2')
60+
else:
61+
url = 'catalog/{}'.format(url)
5962

6063
# make full path if not given
6164
if url and url[:4] != "http":

0 commit comments

Comments
 (0)