-
Posts
33 -
Joined
-
Last visited
About mkbond777
- Birthday 03/14/1992
Profile Information
-
Location
Bangalore
-
Activity
Other
Recent Profile Visitors
1,424,884 profile views
mkbond777's Achievements
Newbie (1/14)
2
Reputation
-
Hi Denis, From here, it will be really tough for me to find out why this script is not working for you? But you can try a couple of things to fix the issue yourself. 1. Try to find out which folder has images which are not present in your db and hence are not being used anymore in your website. 2. If you figure out that folder, then write a echo command in the function checkExistsDb($pdo, $id_image) after $row=$r->fetch(); to figure out whether this function itself is called or not for that folder. Regards Manish
-
Referral code instead of referring using email id.
mkbond777 replied to sarfaraz.r1406's topic in Core developers
Hi, Even I need this feature for my store. Thanks Manish Kumar -
[SOLVED] Abandoned Cart emails in free module Customer Follow-up
mkbond777 replied to Pedro Lima's topic in General topics
Hi, Did uploading all the files via a single folder worked for you? For me it is still not working. My Steps: 1. Copied all the files in a folder say "followup_external" 2. Zipped it and tried adding it through back-end but it didn't work. 3. Then I manually copied "followup_external" folder into modules folder but then it is not showing in back-end and hence not able to change settings. Thanks Manish -
Hi, The only issue I see with this approach is - If the old customer somehow know about the voucher code then even they can use it. Thanks Manish Kumar
-
Hi, But if the Old customer somehow got to know the voucher code then even they can use it. Thanks Manish Kumar
-
Hi, Just check which version of referralprogram module you are using? If it is 1.6.7 then downgrade it to 1.6.2 Thanks Manish Kumar
-
With the help of shopimport.nl code I have written code to delete images for the directory structure img/p/1/2/3 as well. <?php // root path of the shop $shop_root='/home/xyz/public_html/'; // limit number of image files to check, set to 10 for testing $limit=10; include $shop_root . '/config/settings.inc.php'; $pdo = new PDO( 'mysql:host='._DB_SERVER_.';dbname='._DB_NAME_, _DB_USER_, _DB_PASSWD_ ); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $r=$pdo->query('select count(1) cnt from ps_image')->fetch(); echo 'count images database: '.$r['cnt'] . "<Br />"; // reset some counters $cnt_files=0; $cnt_checked=0; $cnt_not_found=0; $cnt_found=0; for($ii=1; ($ii<=9) && ($cnt_files != $limit); $ii++) { $path=$shop_root.'img/p/'.$ii; delImage($path); for($jj=0; ($jj<=9) && ($cnt_files != $limit); $jj++) { $path=$shop_root.'img/p/'.$ii.'/'.$jj; delImage($path); for($kk=0; ($kk<=9) && ($cnt_files != $limit); $kk++) { $path=$shop_root.'img/p/'.$ii.'/'.$jj.'/'.$kk; delImage($path); for($ll=0; ($ll<=9) && ($cnt_files != $limit); $ll++) { $path=$shop_root.'img/p/'.$ii.'/'.$jj.'/'.$kk.'/'.$ll; delImage($path); } } } } echo 'files: '.$cnt_files.' checked: '.$cnt_checked.' not_found: '.$cnt_not_found.' found: '.$cnt_found; function delImage($imageDir) { global $limit, $pdo, $cnt_files, $cnt_checked, $cnt_not_found, $cnt_found; if ($handle = @opendir($imageDir)) { //@ is wriiten to avoid warning message and is handled in else condition echo $imageDir."<BR />"; while ($cnt_files != $limit && false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { $cnt_files++; $pi = explode('-',$entry); if($pi[0]>0 && !empty($pi[1])) { $cnt_checked++; if(!checkExistsDb($pdo,$pi[0])) { $cnt_not_found++; echo 'rm '.$imageDir.'/'.$entry."<BR />"; unlink($imageDir.'/'.$entry); } else { $cnt_found++; } } } } closedir($handle); } else { echo $imageDir." doesn't exist".'<BR />'; } } function checkExistsDb($pdo, $id_image) { $r=$pdo->query($q='select \'ok\' ok, (select id_image from ps_image where id_image = '.(int)$id_image.') id_image'); $row=$r->fetch(); if($row['ok']!='ok') die( 'Problem with query, please correct'); return $row['id_image']?true:false; }
-
Google analytics' site search parameters
mkbond777 replied to Out of Karma's topic in Configuring and using PrestaShop
Even I am facing the same issue. Could someone please answer to this thread? -
Changing product name dynamically
mkbond777 replied to mkbond777's topic in Addons, modules and themes developers
Thanks Pascal, I will definitely try this and let you know the results. -
Changing product name dynamically
mkbond777 replied to mkbond777's topic in Addons, modules and themes developers
Hi Pascal, Thanks for your suggestions and yes I want reflect these name changes temporarily on that page only. If possible, could you please let me know in which all file I need to make these changes? Thanks again -
Hi, Is there a way to change product name (a little bit) whenever a customer selects an attribute of that product? Example: Product name : Salt Attributes: 200gm, 500gm, 1kg Attribute selected Product Name displayed 200gm Salt, pouch 500gm Salt, Jar 1kg Salt, Bootle please help if this is possible in Prestashop Thanks
-
@moalmeyer, I got your solution. But as I mentioned in my last post, the favoriteproduct module is only visible when customer logs in. So this can be taken as alternative for wishlist module which appears always. If you have any idea of how to display favorite module irrespective of customer logs in or not then please let me know.
-
Hi, Thanks for the reply. But can you please explain what exactly you mean by removing blockwishlist module and replacing it by favouriteproducts module. As I know favourite module appears only when a customer logs in his/her account but wishlist module appears always.So if you are saying that I should disable the wishlist module and start using favourite module, then the latter won't serve the wishlist module purpose. Thanks
-
Hi, Even I am facing same issue that customers can create more than one Wishlist, but when they add a product to a Wishlist it's always added to the first Wishlist i.e. they can't select which Wishlist to add the product to? So what is importance of having multiple Wishlist? Can someone from Prestashop Team please provide some input on this? Thanks