[fixed] Changing Associates ID US
-> BizStore

#1: [fixed] Changing Associates ID US Author: Dizfunkshunal PostPosted: Wed Oct 05, 2011 5:27 pm
    ----
Hello, been awhile. Ok installed DF 9.3 and Amazon(Bizstore) 9.3 Everythnig works fine except I cant change Associates ID US. Changed the keys just fine no problem. just the Id wont change when i click update. No errors are showing either. Any Ideas?

#2: Re: Changing Associates ID US Author: PhoenixLocation: Netizen PostPosted: Wed Oct 05, 2011 5:51 pm
    ----
yep, sorry about that - replace line 20 of admin/index.inc
Code::
		$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocIDus', 'assocIDca', 'assocIDujk', 'assocIDde', 'assocIDfr', 'assocIDjp', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')

#3: Re: [fixed] Changing Associates ID US Author: Dizfunkshunal PostPosted: Wed Oct 05, 2011 6:17 pm
    ----
np When I replace that line 20 code with the above i get

Parse error: syntax error, unexpected ';', expecting ')' in /home/carlg/public_html/modules/BizStore/admin/index.inc on line 20


When I view Bizstore admin page.

I added the ; to the end

Edit: I use phpdesigner. its saying its a mixed array not sure what that means but hope it helps.

#4: Re: [fixed] Changing Associates ID US Author: Dizfunkshunal PostPosted: Wed Oct 05, 2011 6:24 pm
    ----
Got it it need another ")" before the ";" at the end. Thanks a lot!

#5: Re: [fixed] Changing Associates ID US Author: PhoenixLocation: Netizen PostPosted: Wed Oct 05, 2011 6:28 pm
    ----
The extra ) was already on line 21?

#6: Re: [fixed] Changing Associates ID US Author: Dizfunkshunal PostPosted: Wed Oct 05, 2011 10:43 pm
    ----
not that i seen I compared the new code you gave to the old code it was replacing old code had "));" at the end, new code only had ")"

#7: Re: [fixed] Changing Associates ID US Author: PhoenixLocation: Netizen PostPosted: Thu Oct 06, 2011 1:03 am
    ----
hmm, original line 20 is:
Code::
		$sections = array('bizstore' => array('googleads', 'googleadclient','locale',  'assocID', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')
replace with, as above:
Code::
		$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocIDus', 'assocIDca', 'assocIDujk', 'assocIDde', 'assocIDfr', 'assocIDjp', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')

line 21 was always:
Code::
		);
There are only 2 arrays, so only 2 sets of brackets - to use 2 brackets in line 21, you would need to omit the closing bracket in line 20?

Anyway, the main thing is that the problem is fixed Smile , at least until Amazon change their API again.
I won't be updating the download just yet because I have converted my cvs to DF10.

#8: Re: [fixed] Changing Associates ID US Author: Dizfunkshunal PostPosted: Thu Oct 06, 2011 7:27 am
    ----
Cool. I dont know i been out of the game awhile i'm really rusty. Thanks for the fix.



-> BizStore

All times are GMT + 9.5 Hours

Page 1 of 1