View Single Post
  #3  
Old 05-05-2017, 02:14 PM
 
Bryce Bryce is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 7
 

Default Re: Create a new table in XC database?

I would advise against creating a table within the MySQL database used for XCart, as I have noticed that the tables I'd created on my own have been deleted during the last two minor updates of XCart modules (and basic updates of the XCart platform itself).

Instead, I recommend creating a new database just for your new table, and have the database user have read/write permissions, just like it would have for the XCart database.

For queries that involve both databases, just add the database name prior to the table name, such as...

SELECT * FROM `xcart_database`.`xcart_table`, `custom_database`.`custom_table` WHERE `xcart_database`.`xcart_table`.`unique_id` = `custom_database`.`custom_table`.`xcart_unique_id`
__________________
Bryce
X-Cart Business v5.3.2.8
81 Modules: 2Checkout.com, Amazon Pay, Amazon S3 Images, AuctionInc ShippingCalc, Authorize.Net SIM, Barclaycard ePDQ e-Commersce, Bestsellers, Bulk Editing, Canada Post, CloudSearch & CloudFilters, Concierge, Contact us, Coupons, Crisp White skin, Custom Order Statuses, E-goods, Fast Lane Checkout, Featured Products, FedEx, File attachments, Flyout Categories Menu, Free Shiping and Shipping freights, Froala WYSIWYG editor integration, Geolocation, Go Social, Google Analytics, iDEAL Payments, Ingenico Payment Services (Ogone), JSON API, MailChimp Integration with E-commerce support, Market price, Moneris (eSELECTplus-
Hosted Pay Page), Multicurrency, Newsletter subscriptions, Not Finished Orders, Order messages (Beta), PayPal, PayPal Here, Previous and Next Product, Product Advisor, Product Filter, Product reviews, Product Tags, QR Code generator, QuantumGateway, Related Products, REST API, Sage Pay (Form), Sale, Sales Tax, Segment Integration, ShipStation, Simple CMS, Site Map, Skrill, Social Login, Special Offers (base), Stripe, Theme tweaker, Translation: British English, Translation: Chinese, Translation: Dutch, Translation: French, Translation: German, Translation: Russian, U.S.P.S., UPC/ISBN and Mfn#/Vendor# fields, Update Inventory, UPS, User permissions, Wholesale, Wordpress Integration, X-Cart Mobile Admin, X-Payments connector, XML sitemap
Reply With Quote