Here's my first (quite simple) solution.
I hope ZC masters here will contribute to it with comments, corrections and more. If you find something wrong, please tell me.
I created a new page: /includes/templates/template_default/templates/tpl_add_product_by_model_default.php:
<?php
$model_from_remote_configurator = $_GET['modelcode'];
$products_query = "select products_id, products_model from products where products_model = \"$model_from_remote_configurator\"";
$products = $db->Execute($products_query);
if ($products->RecordCount() <= 1) {
$myurl = "/index.php?action=buy_now&products_id=".$products->fields['products_id'];
} else {
$myurl = "/index.php?main_page=advanced_search_result&keyword=".$model_from_remote_configurator;
}
zen_redirect($myurl);
?>
It has to be called as follows (usually from some remote configurators....like memory, batteries, passing their code for selected item):
http://MY_SHOP_URL/index.php?main_page=add_product_by_model&modelcode=MODEL
Where MY_SHOP_URL is your shop's URL and MODEL is an alphanumeric model number (it's compared with products_model field in your ZC database).
If your database contains ONE product with products_model equal to MODEL, it's automatically added to your cart.
If your database contains MORE THAN ONE product with products_model equal to MODEL, you'll be redirected to advanced search page showing all these products.
If your database doesn't contain any products with products_model equal to MODEL, "no product found" is reported.