Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Different Database Connection On Addon ? Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 332 posts

Posted 01 August 2018 - 01:37 PM #1

i need to use different database for my addon how can i use on my addon ? any idea



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18194 posts

Posted 02 August 2018 - 06:12 AM #2

Multiple DB connections are supported by CS-Cart. Please check functions in the following file

 

app/Tygh/Database/Connection.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 332 posts

Posted 17 August 2018 - 12:39 PM #3

can u make me a sample , i see changedb func but i dont know how can i use that



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18194 posts

Posted 17 August 2018 - 01:31 PM #4

Download store-import addon and check example there.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.