Hi, experts Corvid, we have products with two price,
All prodicts was dublicated for distributor price. After that we Hide Pages wich have distributor price, but when customers use Search Bar they see distributor price and customer price. Now we can hide products with distributor price?
if you are talking about the Wix Site Search app then you would be best suited going through Wix Support as it is not fully integrated with Corvid.
https://support.wix.com/en/article/contacting-wix-customer-care-for-support
If you used code which is available to search for products, you would still not be able to control exactly what is shown in the results page.
https://support.wix.com/en/article/about-wix-site-search
https://www.wix.com/corvid/reference/wix-search.html
To enable Search API functionality for your site, you must add the Wix Site Search application to your site. After installing the app you can delete the Search Bar, but make sure to leave the Search Results page on your site.
Note that you cannot use the Search API to control the Wix Search Bar or Search Results page.
Build and perform a search and display the results in a repeater
This example demonstrates how to set up a search for store products and display the results in a repeater. Each button in the repeater links to the product page for the selected product.
import wixSearch from 'wix-search';
// ...
// Before search runs, set the repeater data as empty
$w('#repeater').data = [];
$w("#searchInput").onKeyPress((keyPress) => {
if (keyPress.key === "Enter") {
const phrase = $w("#searchInput").value;
wixSearch.search(phrase)
.documentType("Stores/Products")
.find()
.then((results) => {
if (results.documents.length > 0) {
$w('#repeater').data = results.documents;
} else {
console.log("No matching results");
}
})
.catch((error) => {
console.log(error);
});
}
});
$w("#repeater").onItemReady(($item, itemData) => {
$item("#title").text = itemData.title;
$item("#description").text = itemData.description;
$item("#image").src = itemData.image;
$item("#button").link = itemData.url;
});
Did you manage to get a fix for this? Iām needing to do the same thing.
i will second that, need exactly the same thing.
cant deal with the wix support bot, keeps pointing to irrelevant info
Any fix for this?
Any update on this? Major flaw if it cannot be fixed. Thanks!