Hello David
I am adding Offline merchant products On product view Creating Inquiry Form , For that products
For that how I can remove validation for url if buy url is empty
Hi,
The required fields check is at line 449 of includes/admin.php:
if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return;
...so to remove the check for buy_url, REPLACE with:
if (!$importRecord["name"] || !$importRecord["price"]) return;
Alternatively, to remove the check for buy_url but only for Slow Import, REPLACE with:
global $progress; if (isset($progress)) { if (!$importRecord["name"] || !$importRecord["price"]) return; } else { if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return; }
Cheers, David. -- PriceTapestry.com
Thanks David.
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi,
The required fields check is at line 449 of includes/admin.php:
if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return;
...so to remove the check for buy_url, REPLACE with:
if (!$importRecord["name"] || !$importRecord["price"]) return;
Alternatively, to remove the check for buy_url but only for Slow Import, REPLACE with:
global $progress;
if (isset($progress))
{
if (!$importRecord["name"] || !$importRecord["price"]) return;
}
else
{
if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return;
}
Cheers,
David.
--
PriceTapestry.com