-
Ajuda Shop DT em MuSite
Como todos sabem o shop dt usa a tabela DT_SHOP_CREDITS,
e to com problema para adicionar golds da musite para o Shop,
DT_SHOP_CREDITS - credits
MEMB_INFO - gold
O que devo faze alguem pode me ajudar ;s
$TABLES_CONFIGS['WEBCASH'] = array("database" => DATABASE, //webSite || MuOnline
"table" => "webCash", //webCash || MEMB_INFO
"columnUsername" => "username", //username || memb___id
"columnAmount" => "amount", //amount || gold
"columnAmount2" => "amount2", //amount2 || gold2
"columnPoints" => "points"); //points
ai...'
-
$TABLES_CONFIGS['WEBCASH'] = array("DB QUE ESTÁ A TABELA DT_SHOP_CREDITS" => DATABASE, //webSite || MuOnline
"table" => "TABELA DT_SHOP_CREDITS", //webCash || MEMB_INFO
"columnUsername" => "VERIFICAÇÃO QUE A TABELA USA PARA VER AS CONTAS", //username || memb___id
"columnAmount" => "COLUNA DA MOEDA 1 QUE ESTÁ NA TABELA DT_SHOP_CREDITS", //amount || gold
"columnAmount2" => "COLUNA DA MOEDA 2 QUE ESTÁ NA TABELA DT_SHOP_CREDITS", //amount2 || gold2
"columnPoints" => "OUTRA MOEDA."); //points
Nunca mechi nesse shop, mas o problema que você está tendo, posso lhe ajudar.
Vou lhe mandar meu skype por MP, para eu poder lhe ajudar, se vc não conseguir ;)
-
Se não me engano a configuração é esta:
Código:
$TABLES_CONFIGS['WEBCASH'] = array("database" => "MuOnline", //webSite || MuOnline
"table" => "DT_SHOP_CREDITS", //webCash || MEMB_INFO
"columnUsername" => "account", //username || memb___id
"columnAmount" => "credits", //amount || gold
"columnAmount2" => "credits2", //amount2 || gold2
"columnPoints" => "points"); //points
Rode esta query também:
Código:
USE [MuOnline]
GO
ALTER TABLE DT_SHOP_CREDITS ADD credits2 int NOT NULL CONSTRAINT DF_SHOP_CREDITS_CREDITS2 DEFAULT(0)
GO
ALTER TABLE DT_SHOP_CREDITS ADD points int NOT NULL CONSTRAINT DF_SHOP_CREDITS_POINTS DEFAULT(0)
GO
[]'s