Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Marius86

  1. Hello, I wanted the same thing but eventually figured it out. I put here the solution that works for PS in case other people may want to do the same. First make a back-up copy of the file "classes/pdf.php" To show prices open it and find: $pdf->ProdTab((self::$delivery ? true : '')); Replace that with this: $pdf->ProdTab(false); //show prices no mater what To show the summary at the end (total price, courier, VAT, etc) find /* Exit if delivery */ if (!self::$delivery) Replace that with this /* Exit if delivery */ if (!self::$delivery or 1) //do not exit if delivery No need to force compile or clear cache. It works instantly. Note: these changes are not preserved when upgrading to a newer Prestashop.
  2. Hi, I have the same issue. I installed a fresh copy of PS and I'm using the default theme. The user info block appears to be hooked in the "displayTop" but if I look at the code of the page (when I load the store in a browser) there is no "user info block" in the header area. I'll keep trying... Later edit: It seems the answer is here: https://www.prestashop.com/forums/topic/333340-solvedmove-usersblock-above-cart/ It needs some CSS tweaking but it works. Marius
  3. Hi, From what I can see from the demo page here http://zapalm.ru/PS143/en/music-ipods/1-ipod-nano.html it seems it works with at least two attributes. I use both this module (although with just one attribute) and the "orders editor" one form the same website. I have two sites running PS (just about to make a third one right now) and didn't had any issues with any of these two. At 20 euros per module makes them good value for money! Marius
  4. Hello guys, I just can't get over a issue with the watermark module. I'm using the default PS 1.4 watermark module as I understood that silentRun's module doesn't work in PS 1.4. I need to apply a different watermark on my pics as I need to make another store (on a different website but starting with the same products I currently have). My img/p folder is 24,146 Files, 3,217 Folders, 702 MB (a lot of pics). My website is on a VPS and I set: php max_execution_time 300 (although regenerate large pictures on product images finishes in about 2..3 min; I also checked the setting with phpinfo(); function and is ok) mysql wait_timeout 28800 (I can see the value of the settign in phpmyadmin if I click variables - for the possible ping issue) @ini_set('display_errors', 'on'); (after regeneration finishes I don't see any error in backoffice) define('_PS_DEBUG_SQL_', true); define('_PS_MODE_DEV_', true); Basically regeneration finishes without any errors (none of which I can see in BO or error log txt file) and the images are regenerated without the watermark being applied. I reinstalled the module; no change.. The module also worked a year or two ago when I had very few pictures. Any help appreciated! Would send PM with all access details. Marius
  5. I'm looking for the same thing. mani313 did you made it work? Anybody else? Marius
  6. Hi, I'm battling with slow page loads for a long time. On my server I have PS 1.4, a wordpress and a phpbb forum but I took the most expensive shared hosting my web host can provide (30 euros/month). I didn't go for VPS or dedicated because I don't know how to manage them and my host doesn't provide support. I am thinking of migrating to a different host provider and take a VPS or dedicated server but I will have to rely on them to manage it. Gt metrics: http://gtmetrix.com/reports/pescuitlafeeder.ro/Wia6ncLm (pdf version also attached) cutecat, I didn't quite understood what you did. Did you disable cache for better performance? It doesn't make sense to me, cache should be active for faster page load. My settings are: Force compile: NO Cache: YES CCC for CSS: YES CCC for JS: YES Minify HTML: NO Compress in-line JS in HTML: YES High risk HTML compression: NO Rijndael with mcrypt lib: YES Caching: NO (I'm thinking of trying memcached) The server is in the same country with the visitors (Romania) Can anybody advise me what to do? Thanks, Marius GTmetrix-report-pescuitlafeeder.ro-20131201T031537-Wia6ncLm-full.pdf
  7. Hello, I'm very close to finishing this module. I have just one last issue. Because I am updating the stock of the products I need to include two hooks in my codding: Hook::updateProductAttribute((int)$id_product_attribute); Hook::updateProduct($object); I wrote the first one - it is simple; but I don't know what do I need to pass in the $object variable. I looked in the AdminProducts.php file and the code prior to the hook is: $object = new $this->className($id); I don't understand that line. I can't find the className() to see what is does. Can anybody help? Thanks, Marus
  8. Hello, Axel managed to adapt his module to my PS1.4. Thus, he made it work perfectly with my onepagecheckout module which I already had. Very good job! Made a donation of $25 and I recommend him! Almost forgot, he also fixed a cart bug which was inherent in PS1.4 ! Marius
  9. Hi, Does it work with PS 1.4? Also, I have this one page checkout module http://www.canin.sk/prestashop/presta-modules/22-one-page-checkout.html Can your module work together with the above one? Thanks, Marius
  10. I've bumped into some problems ... 1) I was using sessions to save the processed bar-codes and display them in a table so the user can track down if something went wrong. I was using: //read history $history = $_SESSION['se_history']; //save history $_SESSION['se_history'] = $history; This worked perfectly in a .php file but it doesn't work in a prestahsop module. What can I do instead? 2) In the .php file I was using a code to set the focus on a input where the barcode goes: <head> ... <script> function setFocus() { document.getElementById("my_input").focus(); } </script> ... </head> <body onload="setFocus()"> I was inserting the code in the header and near the body tag but now I don't know how to "hook" this code in the proper location. Anybody any ideas? Thanks! For moderators: Can you please change the title of the thread to "Developing a module for fast&easy stock update using the EAN13 barcodes" Thanks
  11. I looked in other modules and I think I can make the button to stay on the same page by writing something like (copied form CMS module): <a href="'.$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&addBlockCMS"><img src="'._PS_ADMIN_IMG_.'add.gif" alt="" /> '.$this->l('Add a new CMS block').'</a> but I must say your trick sounds nice and simple. Can you write here a example or maybe upload the file/module where you used this trick? Later edit: I've done this tutorial http://www.bazingadesigns.com/en/blog/tutorials/how-to-write-a-prestashop-module-tutorial-making-of-kinky-slider-part-1 and surprisingly when I press the save button to save the module's configuration points to the same page (exactly what I need). For now I'm OK, I just need to learn a little and code. Thanks Terragg for your suggestions. PS. I will stick with php and whatever Prestashop is using. Don't know much about javascript and AJAX.
  12. At the beginning I think you are suggesting me to go with the first approach. I think there are too many things I don't know about. I think I have to use a tpl file, smarty and other things and tools before I can have a hook that will manage to call mailalerts. The you suggest #2 I would do this but I have one concern. If I try to make my .php file a module, then I go to backoffice -> modules -> my module -> configure and I type a serial code and hit enter, prestashop will go a step back to modules page and I would have to click configure again before I can enter the next serial code (not practical). Is it possible to make a button which will "save and stay on same page"? Thanks
  13. Hello, I wrote a custom .php file which I can use to easily update the stock in prestashop. This php file is simply a web page which has a input where I can enter the EAN13 code of any product. When I hit enter the quantity of the product is adjusted (increased/decreased). Whenever I receive a lot of say over 100 products, I just use a barcode scanner to scan the EAN13 codes and the stock is updated in a couple of minutes (instead of wasting half of hour in backoffice). The problem is that the module mailalerts does not generate the necessary e-mails to inform the customers that the product is once again back in stock. This is because mailalerts hooks in prestahsop using UpdateProduct hook and UpdateProductAttribute hook and my .php file is a separate program.. I'm not sure which is the best way to do it? Can I call/invoke mailalerts from my .php file? (my .php is not entirely isolated from prestahsop, it uses a little bit of prestashop code; see bellow) Should I transform my .php file into a prestashop module; then access it using backoffice and add the two hooks in my module so mailalerts will hook in it? Other way I should approach the issue? Any help is appreciated. PS. I'm not asking for code but for a sensible approach to the issue so I can focus in the right direction. Thanks! _____________________________ How my custom php file starts <?php define('_PS_ADMIN_DIR_', getcwd()); define('PS_ADMIN_DIR', _PS_ADMIN_DIR_); // Retro-compatibility include(PS_ADMIN_DIR.'/../config/config.inc.php'); include(PS_ADMIN_DIR.'/functions.php'); include(PS_ADMIN_DIR.'/init.php'); @ini_set('display_errors', 'off');
  14. In my country Romania, it is rarely when people pay upfront with credit cards. Since the customers are not interested din paying by card (a lot of them fear about having their card details stolen) I didn't bother to set up payment by card. So 100% of my customers pay by cash on delivery. For me COD is 100% essential...
  15. Hi killerthemes, Thanks for this nice theme. Do you think I can use it in prestashop 1.5 or should it need to be re-coded and tested for this? Marius
  16. Hi, Thanks for creating this module and distributing it for free. I tried using it with prestashop and wordpress 3.3.1 and as soon as I do the second hack, it is impossible to place orders. If I undo the second hack it is again possible to make orders on prestashop. More precisely, I add a product to cart; I click on the shoping cart; I have to enter details for log in; and after this I see the header appearing and nothing else; basically in the 5 step shopping process it stops after doing step2 “log in” and step 3 “address” does not show up. If I undo the second hack it works again. Do you have any idea why the second hack may do this to the web site? Thanks, Marius this is my shop: http://www.pescuitlafeeder.ro/magazin
  17. Hi to all, Prestashop created a free product filter which works well but still I have a problem with it. I can best describe the issue by a example: Say I have three iPhone 3 in store (one red, one blue and one black) and a two black iPhones 4. I store the three iPhones 3 as a product and use the product generation tool to generate the three products (by use of attributes and groups). I store the iPhone 4 as a single product and use "feature" to display to the user the black colour of it. Now.. when I do a filter search I have (wrong): Colour red (1) blue (1) black (1) Colour black (2) instead of (desired): Colour red (1) blue (1) black (3) The issue is that features and attributes are viewed separately. A solution would be to store all the products either by attributes either by features but this would be bad usage of Prestashop. Does anybody know an other possible solution? The paid filter modules works the same? It seems to be a very specific feature of a filter module and it may be hard to find out before purchasing it. All the best, Enigma86d
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More