Recently Viewed Products
You need to login to post comments.
5 years ago
Hi I am using this viewed Products extension and it was working fine untill I upgraded my version to 1.2.8 now it throws me error "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 621, 633) AND customer_group_id = '1' AND ((date_start = '0000-00' at line 3 in /home/amer/public_html/live_128/core/database/apdomysql.php on line 54" and takes me to static_pages/index.php And if I turn off this extension it work fine I get this error when the site is loaded for first time and I click on any product
I tried edit your controller at line 145 with private function getProductsfromIDs($products) {
if (!$products) {
return array();
}
foreach ($products as $k => $v){
if($v == ""){
unset($products[$k]);
}
}
But still it is not working and throwing me error
Can you guys please help me?
5 years ago
Hi I am using this viewed Products extension and it was working fine untill I upgraded my version to 1.2.8 now it throws me error "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 621, 633) AND customer_group_id = '1' AND ((date_start = '0000-00' at line 3 in /home/amer/public_html/live_128/core/database/apdomysql.php on line 54" and takes me to static_pages/index.php And if I turn off this extension it work fine I get this error when the site is loaded for first time and I click on any product
- 1
Single Installation License
$15.00
Single installation, is for use by single site or one copy of application using this extension
Extension is provided with 120 day support from author with free upgrades within this time frame
maxter
From | United States |
Member since | May 16, 2014 |
Avg. Response Time | 3 days, 23 hours, 31 minutes |
Viewed 31490 times
Posted 6 comments
Details
Extension ID: | viewed_products |
Extension Latest Version: | 1.0.1 |
AbanteCart Version: | 1.2+, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.2.11, 1.2.12, 1.2.13, 1.2.14 |
Created: | Dec 29, 2014 |
Last updated: | Nov 24, 2020 |
foreach ($product_ids as $index => $result) { //skip current product if ($result == $this->request->get['product_id'] || empty($result) || !is_numeric($result)) { unset($product_ids[$index]); } }
I will upload updated package shortly. Thank you for detailed explanation!