Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Premitium

  1. I am using Presta 1.6 and the blocklayered module to filter products by price value. However, the filters show wrong prices and range. What do I mean: When the range is between 5,95 and 6,25 I get products that are 5.40, 5,50 and even 4.90. I have tried to set the filtering options with and without tax but nothing changes. The prices that are shown are nowhere close to the "no tax price" of the products. The shop's currency is BGN - Bulgarian Lev. Anyone tackled this problem?
  2. Thank you! The problem was that the decimals were disabled for the EUR currency and it was truncating everything after the decimal...
  3. Hi I have a store that works in an unsupported by PayPal currency - BGN which at the moment has an exchange rate - EUR - > BGN : 1.96 BGN However, when a purchase is made the PayPal module sends the ex. 16,50 BGN as 8.00 EUR which should be 8.44 EUR. Any idea what is going on and how can I fix this because the more it is purchased the more I loose money. Hope to get a response soon. Time is money
  4. This is a terrible solution! This means you still have some errors in the system. Keep the developer_mode to true, then search in your project for the modules name from the exception. I am sure you will find it. Then look and deal with it, otherwise you won't see the exceptions afterwards and this can break your site without you noticing. Some forms might not work, some JS and so on.
  5. Hi am having a strange behavior on presta -v The radio buttons in a carrier module change their color to blue and stop working when an additional products is added in quick order with the "+" button. I am attaching an image, too. Any idea what is going on. There are no JS errors in the console. Thank you!
  6. Hi, I have developed a new carrier module that lets customers choose between different types of delivery based on their cart value. Everything works but, when the customer adds one more item with the "+" button the whole page refreshes and the previously chosen carrier is not chosen anymore but the first one is. Any idea how to persist the customer's choice on page refresh? I have another store with the same module and everything works as expected. Any help would be much appreciated! Thank you!
  7. This is what I found as a solutions: 'buttons' => array( 'save-and-stay' => array( 'title' => $this->l('Save and Stay'), 'name' => 'submitAdd'.$this->table.'AndStay', 'type' => 'submit', 'class' => 'btn btn-default pull-right', 'icon' => 'process-icon-save', ), ),
  8. Hey I want to add a save and stay button to a helper form class. These are my fields so far and it loads great. However, I want to add an ajax save and stay button. How do I do that? public function renderForm() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->module->l('Wineo Header Img Configuration'), 'icon' => 'icon-envelope', ), 'input' => array( array( 'type' => 'file', 'label' => $this->module->l('Add images'), 'name' => 'enable_grades', 'id' => 'uploadwineoheaderimg', 'required' => false, 'desc' => $this->module->l('Choose images that will appear on the front page.'), ), array( 'type' => 'select', 'label' => $this->l('Languages:'), 'name' => 'category', 'required' => true, 'options' => array( 'query' => $options = array( array( 'id_option' => 1, // The value of the 'value' attribute of the <option> tag. 'name' => 'EN', // The value of the text content of the <option> tag. ), array( 'id_option' => 2, 'name' => 'BG', ), ), 'id' => 'id_option', 'name' => 'name', ), ), ), 'submit' => array('title' => $this->module->l('Save')), ), );
  9. I have a couple of modules at the front page and they are appearing in the way I install them. E.g. the first module that I install appears on top of the page, the second one is beneath it and so forth. The position in the admin is correct I think http://imgur.com/3K0Fc37 How can I manage their appearance? Thanks!
  10. If you follow the process it should work, I had the same issue. Check if the id's of the currencies are set as supposed. If I remember 1 for USD/EURO and 2 for unsupported currency. This should be done from the Presta admin panel.
  11. Yes, it called by an ajax function in the tpl. The request is successful but the variable is not set in the view. I am checking like this: {if isset($wineo_shipping_type)}
  12. Guys, I have created a *.tpl file and I assigned some variables to the smarty array e.g: public function hookExtraCarrier($params) { //deleted code... $this->context->smarty->assign(array( 'wineo_free_shipping_id' => Configuration::get('WINEO_FREE_CARRIER_ID'), 'this_path' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/', )); return $this->display(__FILE__, 'wineocarrier.tpl'); } I have another method that I want to add more variables to the array. I have tried things like: public function addCarrierNameList() { //deleted code... if (isset($carrierNameNorm)) { $this->context->smarty->assign(array( 'wineo_shipping_type' => $carrierNameNorm['name'] )); } // echo '<pre>', print_r($carrierNameNorm['name']),'</pre>'; // return $this->display(__FILE__, 'wineocarrier.tpl'); } } I cannot get the 'wineo_shipping_type' variable in the template file. What is the best way to approach this? Thanks!!!
  13. Hi to you all! I have created a new carrier that gives different options for delivery. e.g. "delivery with bike", etc... However, I want to add this information in a <section></section> tag in the Order details page, so that we know what the user chose as delivery method. I am planing to edit the file: /adminPage/themes/default/template/controllers/orders/helpers/view/view.tpl What I do not know is how to get the info from the carrier to the order? I can create a new table for my carrier and then join it based on the order id table. Is this possible? Bottom line my question is what is a good practice for suck a task? Thanks!
  14. The solution works with PayPal 3.10.2 and presta 1.6.5 with BGN currency.
  15. Thank you for the help I succeeded so far. However, one last thing that bugs me is where to hook the *.tpl file so that I can show a list of options in the carrier div. Which hook should I use?
  16. Hi, I cannot understand the usage of a "relay_point" when creating a Carrier module. Any idea what it is for?
  17. NemoPS, thank you for the reply. I am going to build a new carrier for the purpose. So when I create the carrier I will have to extend the cart object too and pass the info from the carrier to the cart in order to save the users choice, right? And should I do that in the carrier module?
  18. Hi, I want to add a new functionality to my store. Let people decide when they want to receive their stuff. A couple or radio buttons that will show options like: 1. Delivered tomorrow after 12:00 2. Delivered today in three hours. 3. Delivered in 48 hours. My questions are: 1. Should I create a carrier module? 2. Which object should I alter with the users choice so that I know when to ship it? Thanks!
  19. He had the name of the folder /mymodcarriermaster/ and the php file inside the folder is mymodcarrier.php I removed the master part from the folder and it is all there now.
  20. Hi to you all. I am trying to install this module locally: https://github.com/FabienSerny/mymodcarrier However when I add it both in the modules folder or the admin panel I get a success message that the module has been successfully downloaded but it doesn't appear in the list for installing. What have I tried: 1. The filters in the list are all file. 2. There is no $this->ps_versions_compliancy in the construct function. But it should be compatible for 1.6.x Presta. I have followed Fabiens' book and almost everything works so far. Any idea?
  21. Hi! I am trying to add a new language to my PrestaShop installation. However I don't get any of the 'front-office-translations' filled in the fields in the back office. I can see (text editor) that the new language.php (Romanian language) file has got all the necessary translations already. Is there a way to import them from the back office? Thanks!
  22. What I did is to check if the $file_uri exists with an if else statement and removed the error control operators. if (file_exists($file_uri)) { if (!filemtime($file_uri) || filesize($file_uri) === 0) { .... } Do you think this is a long therm solution?
  23. Hi! I just started debugging with xDebug and Atom and I have stumbled upon a disturbing issue. xDebug always breaks in Media.php here: if ([email protected]($file_uri) || @filesize($file_uri) === 0) { if (!defined('_PS_HOST_MODE_')) { return false; } elseif ([email protected]($file_uri_host_mode) || @filesize($file_uri_host_mode) === 0) { return false; } else { $media_uri = $media_uri_host_mode; } } Why is someone hiding the errors with "@" http://www.php.net/manual/en/language.operators.errorcontrol.php Do you know how to make xDebug pass by these errors? The whole debugging process becomes pain in the a**!
  • Create New...

Important Information

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