Connecting CS-Cart and Multi-Vendor
What the add-on does
The Veera Connector add-on for CS-Cart and Multi-Vendor 4.17.1–4.21 sends the catalog, pages and blog to the cloud and replaces the built-in search: a window with suggestions as you type, the results page, links to categories and brands. The same add-on feeds the Veera AI Chat assistant, so no separate add-on is needed for it. Nothing heavy stays on the store’s server: search runs in the cloud.
Requirements
- CS-Cart or Multi-Vendor 4.17.1 or later, up to 4.21; CS-Cart Ultimate with several stores is covered in CS-Cart Ultimate.
- Console cron on the server (or a scheduler that can call a URL, see step 4 below).
- The Cart-Power add-ons cp_live_search and cp_cloud_search must be off: Veera Connector conflicts with them. The Cart-Power cp_elastic search can stay, see Troubleshooting.
This page describes the build you download from the veera.space dashboard, version 2.25. It needs no other add-ons.
Installation
-
Download the add-on in your Veera dashboard: open Connection, the Download the module block is right under your keys. Install it in Add-ons → Downloaded add-ons: open the gear menu, choose Manual installation and upload the archive and click Upload & install. The veera.space build installs on its own: it does not need Cart-Power: Add-ons Manager.
-
Get your keys. When you create a store, the dashboard issues both keys and shows them on the Connection screen. The secret key (
sk_…) is shown once, so copy it right away. If you didn’t save it, open Store → Keys, click Create key and choose For the module or API (secret). The storefront public key (pk_…) is on the same screen and copies with one click. -
Open the add-on settings (Add-ons → Downloaded add-ons → Veera Connector): the Settings tab, General section. Cloud API address comes filled in with
https://api.search.veera.space, the only address that accepts keys issued on veera.space: leave it as is. Paste the keys into Store secret key and Storefront public key, and save. On CS-Cart Ultimate with several stores, read CS-Cart Ultimate first. -
On the same tab, copy the php command under Cron command: everything at once and add it to the server crontab every 5 minutes. It looks like this, with your store path and cron password:
*/5 * * * * php /path/to/store/admin.php --dispatch=veera_connector.cron.all --cron_pass=…This one job does all the regular work: it starts and carries the first catalog upload, sends the change queue and deferred pages, runs the weekly reconciliation and once a day sends the catalog schema (features and filters) and the pages with the blog. The cron password (Password for CRON) is generated on installation. While it is set, the settings also show a
curlvariant of the command for hosting where the scheduler can only call a URL. Acurlcall sends much less per run than the php command, so use it only when the server has no console cron. Since version 2.22 the settings show thecurlline with the address already in quotes: paste it into crontab as is. In 2.21, put the address in quotes yourself: without them the shell cuts the address at&, and cron gets “Access denied”. -
Open Website → Veera Connector → Synchronization status and click Check connection. Each check shows OK, Attention or Error with a What to do hint: the cloud address, the keys, the data format of test products, languages and currencies, the change queue and the cron job.
-
There is nothing else to start: the cron job begins the first catalog upload by itself, as described in The first catalog upload.
As soon as the first batches arrive, the checklist on Overview ticks off Catalog received, and the What is connected block shows the add-on with its version, marked online. The last checklist step, The widget is on the site, is completed by the first shopper query. The add-on has no separate widget switch: the search window appears on the storefront once Storefront public key is saved and Only send the catalog (do not change the storefront) is unticked, which it is by default.
The first catalog upload
You don’t need to start the first upload. Until the add-on has made its decision, the cron job asks the cloud whether it already holds products of this store. If the cloud is empty and the add-on has never sent or reconciled the catalog, the add-on starts the first full upload, and the same run starts sending it in batches. Every next run continues from where the previous one stopped, so a large catalog takes hours.
- On a new store, the cloud is asked on the first cron run after the keys are saved, so the upload starts within 5 minutes of adding the cron line. Saving the keys before that shows only the usual confirmation, and the Connection block on the General tab reads Cloud connected: 0 products in the index…: the decision is left to the cron job. Until cron has run once, Synchronize now sends languages and currencies but leaves product changes to cron and tells you so. This is expected.
- If cron is already running when you save the keys, the upload starts right away with the notice The keys work and the catalog in the cloud is empty: the first full upload has started. The batches go with the next cron run.
- If the cloud does not accept the keys, nothing is uploaded. The Connection block shows No connection to the cloud: …, and once cron is running, saving the settings shows The first catalog upload starts as soon as the cloud accepts the keys: … with the reason. Correct the cloud API address or the secret key and save again: the add-on asks the cloud right away. Without a new save, the cron job asks again about once an hour.
- Progress is shown on Website → Veera Connector → Synchronization status. In the Synchronization block, Now reads First catalog upload, and Progress shows how many products have been processed out of the total. The Connection block on the General tab shows the same as Full synchronization: … of … products passed…. When the upload is done, Now returns to Idle — only the change queue, Products in the cloud shows the size of the catalog, and the Catalog reconciliation block lists the upload as the last run.
The add-on makes this decision only once. If it has already sent or reconciled the catalog (a store updated from an earlier version of the add-on, for example), or the cloud already held products of this store, it never starts an upload by itself again: neither on the next save of the keys nor from cron, even if you later switch to the keys of a new, empty Veera store. In that case, send the catalog with Rebuild index on the Synchronization status screen, or from the server console with the command under Use this script to fully sync a catalog in the add-on settings. The console command also continues an upload that is already running.
The buttons during a full upload
Since version 2.21 the buttons don’t start a running full upload over. While the first upload, the weekly reconciliation, an index rebuild or a manual run is in progress:
- the Synchronization status screen shows Start over in place of Rebuild index, and Rebuild index clicked from a page opened earlier only reports A full synchronization is already running: … of … passed. It was not started over…;
- Try it manually under Use this script to fully sync a catalog leaves alone an upload that the queue cron job is carrying and opens the Synchronization status screen with a message on how far it has got (in 2.21 the button opened an empty Done page, and the message appeared on the next admin page). A manual run that was interrupted, for example by closing the tab, continues from where it stopped;
- batches of a full upload go one at a time, so two full uploads never run at once. A click at the moment a batch is going out answers A batch of the full synchronization is being sent right now. Try again in a minute.
To send the catalog again from the first product, click Start over on the Synchronization status screen and confirm. What has already passed is sent again, and a large catalog takes hours.
The Connection screen
Store → Connection shows the add-on card for CS-Cart or Multi-Vendor: the add-on version, the store address, when the catalog was received, how many products are in the cloud and how many are waiting in the queue. Under Technical details you will find the last full sync snapshot, the index status and a link to the add-on settings in the store admin panel.
Since version 2.23 the add-on tells the dashboard what it puts on the storefront: the Veera search window and the assistant window, separately. This is how the dashboard knows whether the assistant window is on the storefront, also when cp_elastic runs the search. A change of the add-on settings reaches the dashboard with the next cron run, with no catalog upload.
Below it, the Pages and articles section shows how many texts the cloud has received from the store, by type (pages, articles, news, questions and answers), and when they were last updated. Search includes enabled entries that have a URL in the language of the query.
The screen is available to the owner and the administrator.
How the catalog is updated
The add-on tracks changes to products, categories, features and prices and sends them in batches with the cron job. Synchronize now on the Synchronization status screen sends languages and currencies and then the change queue right away, for up to 25 seconds; the cron job takes the rest. After installation the add-on runs the first upload by itself, so a full sync (Rebuild index) is only needed after a change of languages or a large import. Products hidden or disabled in CS-Cart disappear from search on their own. Once a week the add-on also reconciles the whole catalog with the cloud: products the store no longer has are removed after a grace period, 72 hours by default. The Catalog reconciliation block and its Removal rules are described in Catalog reconciliation.
The dashboard is the source of truth
Synonyms, stop words, search phrases, field weights, typo tolerance and window settings live in the dashboard. On the first connection, the add-on sends its dictionaries and settings to the cloud once. After that, edit them in the dashboard. If you set something up in the CS-Cart admin panel, click Load from CS-Cart… on the Connection screen and choose under What to take from the CS-Cart admin panel: dictionaries, search settings, storefronts with languages and currencies. Your selection overwrites what is in the dashboard.
How the window looks in the store (a dropdown or a panel under the field, grid or list, category panel, voice input) is set in the add-on settings, in the Appearance section. To manage it from the dashboard instead, turn on Window look from the Veera cabinet there. The add-on then regularly reads the storefront settings from Store → Widget (window mode; blocks for categories, brands, price, features, autocomplete, “Did you mean”, links to categories and brands; grid or list; products in the results; the character count to start searching and the delay; voice input; accent and button colors) and applies them over the settings on that tab. This way a site with the widget and a store with the add-on share one source of appearance settings.
The search window and results page
- The window opens as you type in the search field: groups by category, brand and price refinements, “Did you mean”, autocomplete, links to categories and brands. Enter takes the shopper to the store’s results page.
- The results page (
products.search) also searches through the cloud: the same order as in the window, result rules, shopper sorting and pagination. The store’s feature filters work as usual. - Pages and articles in the window: the Pages block. The store’s text pages and blog posts are searched by title and text and shown in the window even when no products match (“payment”, “shipping”, “warranty”). They go to the cloud whenever a page changes and once a day with the all-in-one cron job; the block is turned off with Pages and articles in the window in the Catalog entities section of the add-on settings. Power Blog articles are indexed the same way as the standard blog.
- Category pages via the cloud: an add-on setting, off by default. When it is on, the cloud sets the product order on a category page (with subcategories, if the store shows them): popularity, shopper behavior, “any query” boosts and result rules with the “category page” match. You can pin products first, exclude them or show a banner. Categories in such a rule are picked from a list. The store’s feature filters and shopper sorting stay native; with a filter applied, the page is built by the CS-Cart core as usual.
- Additional product code fields: an add-on setting since version 2.6, in the Search settings section. List, comma-separated, the product table columns that hold other codes, such as your ERP item code or barcodes. The cloud finds a product by such a code the same way as by its SKU: in full, by part and by pieces (“XY-00123456”, “00123456”, “xy 00123456”). Shoppers don’t see these codes. One column can hold several codes separated by commas. Once you save, products with codes are queued for sending automatically; no full sync is needed. Since version 2.22 you can also list product features here by ID with
#, for example#23: this is how GTIN, MPN and EAN that CS-Cart keeps as product features reach the cloud. Text, number and select features fit. - If the cloud is unavailable, the results page and category pages are built by the standard CS-Cart search, so shoppers are never left without results.
The assistant
Turn on Veera AI Chat in the assistant dashboard. It takes the catalog, pages and articles from the cloud, where the add-on already sends them, and the add-on places the chat window on the storefront itself. For the assistant’s actions, the add-on acts on behalf of the store: it adds products to the cart, shows a signed-in shopper their orders and checks an order status by number and email. Actions work from add-on version 2.5; which of them are on for your store is shown on the Actions screen. Knowledge and behavior setup is covered in the assistant docs.
Multi-Vendor
Each Multi-Vendor storefront is a separate storefront in the dashboard with its own public key, which goes into Storefront public key in the add-on settings for that storefront; vendor products are indexed with the vendor’s status taken into account. The cloud API address, the secret key and the cron password are shared by all storefronts, and the first catalog upload works the same way as on a single-store CS-Cart. The window and the results page have a vendor refinement. Since version 2.22 the vendor logo reaches the cloud too: the search window shows it on the vendor card, and since version 2.23 it links to the vendor page.
CS-Cart Ultimate
On CS-Cart Ultimate with several stores, enter Cloud API address and Store secret key once for the whole installation: switch the admin panel to All stores, unlock each field with the icon next to it (tooltip “Click to enter a new field value to update in all stores when saving item”) and save. Storefront public key goes into the settings of each store, so every store is a storefront with its own public key in the dashboard. With this setup the cron command from the settings serves all stores, and the first catalog upload starts by itself as described above.
Separate cloud keys for each store are not supported in the current version of the add-on. The cron command runs for the whole installation, so the catalog of a store with its own secret key is not uploaded automatically, and its Synchronization status screen gives no warning and shows 0 products in the cloud. If each of your stores needs its own Veera store, email support@veera.space before connecting.
Updating the add-on
Starting with version 2.22, the add-on gets its new versions from Veera, the same cloud it sends your catalog to. Go to Add-ons → Upgrades (the Upgrade Center): when a new version is out, Veera Connector appears in the list. Click Install, in the Warning window click I agree and continue, and wait for the upgrade to finish. The Upgrade Center replaces the files, runs the add-on’s update script and keeps its settings, keys and queue. To check for a new version right away, open the gear menu and choose Refresh available upgrades. While it installs, the Upgrade Center closes the storefront and leaves it closed: when the upgrade is done, open the storefront again.
The add-on asks the cloud for updates with the storefront’s public key, the same one the search window uses. Besides the key, it sends only the add-on name, its version and your CS-Cart version: the secret key never goes with these requests.
From version 2.21. Version 2.21 cannot ask the cloud for updates yet, so the move to 2.22 takes one manual step. Email support@veera.space for the upgrade package veera_connector.zip, then in Add-ons → Upgrades click Upload upgrade package, choose the file and click Install next to Veera Connector 2.22. From then on, new versions appear in the Upgrade Center by themselves.
Do not upload a full add-on archive over an installed add-on in Add-ons → Downloaded add-ons: CS-Cart either uninstalls the add-on first, which deletes its settings, keys and queue, or replaces the files without running the update script.
What’s new in version 2.25
- Age-restricted products. Products with an age limit (the CS-Cart “Age verification” add-on) are sent to the cloud with this flag and the age limit. The flag is taken from the product itself, from any of its categories and from the categories above them, as on the storefront.
- If the “Age verification” add-on is on at the time of the upgrade, the Veera add-on sends such products once again. If your catalog has tens of thousands of them, the queue takes longer than usual and price and stock changes wait for it, so upgrade at a quiet time. If you turn on “Age verification” later, the flag arrives with the weekly reconciliation; to send it right away, click Rebuild index on the Synchronization status screen.
- Comments in the add-on code are edited. This does not change how the add-on works.
What’s new in version 2.24
- The window in your dashboard colors. Text and icons on the accent color and on buttons are white or dark by the brightness of the color itself. Before, on a saturated red the view switch icons, filter check marks and counters were dark and hard to read.
- Filter checkboxes on UniTheme2 are square: the theme stretched them to 22×18.
- The search window on a computer. The filter column blocks are no longer clipped at the edge, and the results can no longer be scrolled sideways with a trackpad: before, the left edge of titles and cards was cut off.
- Often searched shows your list from the dashboard in full, not the first five queries.
- A popular category without a picture shows a category icon instead of an empty gray frame.
What’s new in version 2.23
- What is on the storefront. The add-on tells the dashboard whether the Veera search window and the assistant window are on the storefront, separately. When cp_elastic runs the search and Veera runs the assistant window, the dashboard sees exactly that. A change of the settings reaches the dashboard with the next cron run.
- The vendor page. A Multi-Vendor vendor in the search window links to the vendor page.
- The search window on a computer. When there is nothing to show on the left (the shopper has no history and Often searched is empty), the popular categories and products take the whole window instead of a narrow column. The same when nothing is found for a query.
The vendor page links of products already in the cloud appear after the next weekly reconciliation. To get them right away, click Rebuild index on the Synchronization status screen.
What’s new in version 2.22
- The brand image reaches the cloud when Brand feature is selected in the add-on settings. The search window shows it on the brand card when Refine by brand in the search window is off (it is on by default and shows brands as a refinement).
- The Multi-Vendor vendor logo reaches the cloud: the search window shows it on the vendor card.
- Additional product code fields accept product features:
#23is the feature ID. This is how GTIN, MPN and EAN, which CS-Cart keeps as product features, are found like the SKU, in full and by part. - Variations of one model. A cloud that shows the variations of one model as one card gets the features the variations differ by, and GTIN and MPN as separate fields (by the column or feature name: MPN; GTIN, EAN, UPC, barcode).
- A store fully on https sends the addresses of products, categories, brands, pages and images over https even when the cron job runs the sync from the console. Before, the search window on an https storefront got http addresses.
- Updates in the Upgrade Center. The add-on gets its new versions from the Veera cloud: see Updating the add-on.
- Check connection on Multi-Vendor and Ultimate checks the storefront public keys: of the storefront selected in the switcher, or of all storefronts. If some storefronts have no key, the check shows Attention and names them. Before, with the keys set on the storefronts, the check said the storefront public key was not set, although the search window worked.
- CS-Cart Ultimate with several stores: products, categories, brands, pages and images of a store reach the cloud with the address of its storefront. Before, the products of the second store had the address of the first one, and the search window on the second storefront led to the first storefront.
- The
curlcron line in the settings shows the address in quotes: pasted into crontab as is, it works. - Try it manually opens the Synchronization status screen: the progress and completion messages show at once.
- Uninstalling the add-on also removes the full upload lock in the
vardirectory.
The brand images, vendor logos, https addresses and Ultimate store addresses of products already in the cloud are updated at the next weekly reconciliation. To update them right away, click Rebuild index on the Synchronization status screen. The brand and vendor cards in the window change a few minutes after the reconciliation or the rebuild: the cloud rebuilds them separately.
Version 2.21:
- Rebuild index no longer starts a running full upload over from the first product: while the first upload, the weekly reconciliation, a rebuild or a manual run is in progress, the Synchronization status screen shows how far it has got, and Start over takes the place of this button: use it to restart the upload from the first product. See The buttons during a full upload.
- Try it manually no longer restarts a full upload that the queue cron job is carrying, and continues an interrupted manual run from where it stopped. Each batch waits for the one being sent, so two full uploads never run at once.
- The veera.space build: no dependency on Cart-Power: Add-ons Manager, the cloud address
https://api.search.veera.spaceby default, no connection to the Cart-Power update server, and the “Powered by” link in the window leads to veera.space. - The add-on’s English texts use American spelling.
Version 2.20, included in this build:
- The search window shows prices the way the store catalog does with the “Wholesale prices” add-on: the main price with the label from that add-on’s settings and the table of customer group prices, each customer seeing their own.
- Power Labels labels go to the cloud as the “Label” feature: in the dashboard you can add it to the window filters and to result rules. Only labels the storefront currently shows to all customers are sent.
- The assistant knows the customer groups of a signed-in shopper: it shows the price of their group, picks products for a budget at that price and shows products open only to their groups. Guests don’t see such products.
- Pages and blog posts open only to some customer groups go to the cloud with their groups, and the window and the assistant show them only to those groups.
- On the UniTheme2 theme, a result rule banner in the window looks the same as on the Responsive theme.
Troubleshooting
- The catalog doesn’t reach the cloud, Products in the cloud stays at 0: open Website → Veera Connector → Synchronization status and check Queue cron job last run. never means the cron line is missing or fails, and the first upload is waiting for it. If cron runs, check the cloud’s answer in the Connection block on the General tab and the keys on the Keys screen. On CS-Cart Ultimate, make sure the cloud API address and the secret key are set under All stores (see CS-Cart Ultimate).
- “The module has been silent for more than a day” on Overview: cron is not running or the key was revoked. Click Check connection on Website → Veera Connector → Synchronization status: it shows when the queue cron job last ran and whether the cloud accepts the secret key. Then check the key on the Keys screen. The owner and the administrator also get an email about it.
- A product is not found: check that it is active, in an active category and visible to the right customer group. Then open Search → Test search: the Product in the cloud catalog block looks the product up by ID or SKU and shows whether it reached the cloud, and the query check shows how the cloud parses the words.
- Prices in the wrong currency: currencies and rates are sent from the store during sync, so after changing rates, click Synchronize now on the Synchronization status screen. The currency is not edited in the dashboard: the Storefront currency field on the Storefronts screen appears only for a store with several currencies.
- A new language is not searchable: enable it in Store settings and click Rebuild index on the Synchronization status screen, since products enter the language index only with a full sync. The number of languages depends on your plan.
- The store runs the Cart-Power cp_elastic search: with cp_elastic on, search, results and category pages stay with cp_elastic, and Veera Connector only sends the catalog to the cloud. To show the Veera assistant on such a store, turn on Assistant window while cp_elastic runs the search in the add-on settings (since version 2.19).
- After installation the add-on stays disabled with a conflict warning: cp_live_search or cp_cloud_search is on. Veera Connector replaces them and cannot run alongside them. Enable Veera Connector in the add-on list: CS-Cart then turns the conflicting add-ons off itself.
- The window responds slowly: check response compression on the server. The window response (
veera_connector.search) is JSON, around 200 KB on a large catalog, and in nginx and some hosting control panels the defaultgzip_typeslist does not includeapplication/json, so the response goes out uncompressed. With compression the same data weighs around 16 KB, and on a typical connection the request gets faster by roughly a third of a second. The second setting is Search delay (ms) in the add-on: the pause after the last typed letter, 250 ms by default since version 2.6.