directly accessing shopsite database

General ShopSite user discussion

directly accessing shopsite database

Postby redskys » Tue Jan 22, 2008 1:52 am

Some time ago there was a discussion about the possibility of querying directly the shopsite database to select products meeting customer specifications. For example, querying product fields containing product dimensions, so a customer could choose a product size to meet a certain need.

Is this still impossible?


Does anyone know of a workaround?
redskys
 
Posts: 10
Joined: Fri Oct 05, 2007 8:53 am

Postby Jim » Tue Jan 22, 2008 7:18 am

Direct access to the ShopSite database is not supported. If you do so, it is at your own risk.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby mokele » Thu Jan 24, 2008 5:07 pm

Like Jim says, "Not Officall Supported," but yes you can access the Shopsite database directly if you're using Shopsite 8.x that is using the SQLite database. For PHP you best to use PHP 5 and you need to have PDO for SQLite compiled into PHP. I've wrote to searches for clients of at YourHost.com that access database directly and works fine.

Jim wrote:Direct access to the ShopSite database is not supported. If you do so, it is at your own risk.
Scott Norman
Web Developer/Programmer
YourHost.com
Ecommerce Web Site Hosting & Internet Solutions
mokele
 
Posts: 20
Joined: Thu Aug 10, 2006 12:30 pm
Location: Fountian Valley, CA

Possible Workaround...

Postby andmott » Mon Feb 04, 2008 11:48 am

ShopSite does provide a way to upload and download your product/page database information in standard XML format. While there is little or no documentation on ShopSite's internal database format, XML is an industry standard data format well documented. ShopSite does support database manipulation through XML, though perhaps not as powerful as an SQL interface.

If you have a knowledge of Perl, PHP, C, or some programming language, and the right server setup, you could create a program to interact with your database in XML format. ShopSite provides documentation and sample scripts to help you get started. Here are a few helpful resources:

Getting data in and out of your product/pages database:
http://www.shopsite.com/help/8.3/en-US/sc/pro/database.automated_XML_upload.html

Detailed List of Upload/Download Parameters:
http://www.shopsite.com/help/8.3/en-US/sc/pro/index.htm?page=/help/8.3/en-US/sc/pro/upload.fields.html
andmott
 
Posts: 1
Joined: Mon Feb 04, 2008 10:39 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 63 guests