OpenPro Application Guide - OScommerce Shopping Cart Interface (SO)
[[:products:ecommerce|Back]]
=====OScommerce Shopping Cart Interface And Setup=====
OpenPro interfaces with OS commerce by sending production information from OpenPro inventory control to OS commerce. We also receive orders via XML SOAP interface back into OpenPro order processing just like an e-commerce order.
===OScommerce Shopping Cart Interface Loading===
items, product categories, inventory and product options.
From the Ecommerce screen, maintenance select OS Commerce Sync, this will read all the specific categories from OpenPro and load them into Oscommerce, it will then load all the items and pictures into Oscommerce as well.
{{products:ecommerce:oscommerce:image-001.png}}
Add to the openpro menu: ''oscommerce_sync''.
===OScommerce Shopping Cart Interface Loading Items===
{{products:ecommerce:oscommerce:image-002.png}}
When the sync is done you will get the results, this process can run whenever you add new products to the OpenPro database.
===OScommerce Shopping Cart Configuration Process===
In the OpenPro ''sqlinfo.php'' file, it has the communications information of the Oscommerce cart and database.
{{products:ecommerce:oscommerce:image-003.png}}
This information is required to be send product information from OpenPro over to Oscommerce cart database file.
===OScommerce Shopping Cart Interface - Configuration of Oscommerce Files===
{{products:ecommerce:oscommerce:image-004.png}}
Customer contract pricing will override any other system pricing, but the contract must be valid and with-in the date range.
===OScommerce Shopping Cart Oscommerce Configuration Process===
{{products:ecommerce:oscommerce:image-005.png}}
Oscommerce standard check out process runs this script ''checkout_process.php''
At the bottom of the screen you add the insert of OpenPro XML SOAP interface like above.
The code shown underneath, needs to be inserted into the standard os commerce program ''checkout_process.php''
// Openpro code to export OS Commerce data to OpenPro
///////////////////////////////////////////////////////////////////////////////
////////////////////
include("openpro_create_sales_order.php");
export_sales_order($insert_id);
///////////////////////////////////////////////////////////////////////////////
////////////////////
Below is the ''openpro_create_sales_order.php'' program to be loaded in the top level directory of the oscommerce shopping cart code.
{{products:ecommerce:oscommerce:image-006.png}}
Below is the openpro_create_sales_order.php program to be loaded in the top level directory of the oscommerce shopping cart code. This is where you must select all the field defaults for OpenPro.
{{products:ecommerce:oscommerce:image-007.png}}
require_once('includes/application_top.php');
//export_sales_order(2);
define("OPENPRO_LOG_FILENAME","openpro_create_sales_order.log");
define("OPENPRO_DB_SERVER","208.179.140.215");
define("OPENPRO_WEB_ROOT_PATH","/asp/demos/soccer_eventstest");
These fields need to be setup in above.
===OScommerce Shopping Cart Interface==
Inventory control items need to be flagged for e-commerce to be added on the OS
Commerce shopping cart, also the item categories need to be flagged for E-Commcere.
{{products:ecommerce:oscommerce:image-008.png}}
Log file for the os commerce needs to be configured with in the Openpro create sales order program, this will log any errors and process that is be done.
{{products:ecommerce:oscommerce:image-009.png}}
==OScommerce Shopping Cart==
{{products:ecommerce:oscommerce:image-010.png}}
Customers can be added to the shopping cart.\\
They will be added to Openpro during this process as a contact in the contact manager.
Inventory control price codes setup under maintenance.
{{products:ecommerce:oscommerce:image-011.png}}
This can be used for marketing to the customer.
{{products:ecommerce:oscommerce:image-012.png}}
{{products:ecommerce:oscommerce:image-013.png}}
{{products:ecommerce:oscommerce:image-014.png}}
{{products:ecommerce:oscommerce:image-015.png}}
{{products:ecommerce:oscommerce:image-016.png}}
[Last Review Date September 2017]
----
~~socialite~~