DragonflyCMS Projects > BizStore > [fixed] Changing Associates ID US > Community Forums > Phoenix Netology
Forum Index > eCommerce > BizStore

[fixed] Changing Associates ID US Reply to topic


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?

DizWebDesign

Please enter your server specs in your user profile! 😢


yep, sorry about that - replace line 20 of admin/index.inc
$sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocIDus', 'assocIDca', 'assocIDujk', 'assocIDde', 'assocIDfr', 'assocIDjp', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


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.

DizWebDesign

Please enter your server specs in your user profile! 😢


Got it it need another ")" before the ";" at the end. Thanks a lot!

DizWebDesign

Please enter your server specs in your user profile! 😢


The extra ) was already on line 21?

Donations & Audit for DragonflyCMS

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


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 ")"

DizWebDesign

Please enter your server specs in your user profile! 😢


hmm, original line 20 is: $sections = array('bizstore' => array('googleads', 'googleadclient','locale', 'assocID', 'accessID', 'secretID', 'showBuyCart', 'cookie', 'welcome', 'welcomeMSG', 'mainpage', 'mainpageIndex', 'mainpageNode', 'pcActive', 'pcID')
replace with, as above: $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: );
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.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Cool. I dont know i been out of the game awhile i'm really rusty. Thanks for the fix.

DizWebDesign

Please enter your server specs in your user profile! 😢

All times are Australia/Adelaide


Jump to: