Jump to content

Jurist

Members
  • Posts

    151
  • Joined

  • Last visited

Everything posted by Jurist

  1. Hello, I have a problem that I will probably need a module to solve. There is: product A - TV - worth €1000 and product B - TV wall mount - worth € 150 Is it possible to add product B as an option to product A (working like a combination), so if customer adds TV and sets wall mount to include he will have 2 products in his shopping cart? It would need to connect to another product - wall mount - available separately in the store. Cheers
  2. Okay, we have just received another order without a status, changing ciphering didn't help. I am slowly getting out of ideas what is causing the problem. I would highly appreciate any tip of at least how could I debug this? I think it's a cookie issue, how do I track cookies in prestashop?
  3. There's another thing I tried, I changed ciphering algorithm from mcrypt to default (Blowfish). Surprisingly, this option was hidden in back office (no idea why). I had to manually change db row PS_CIPHER_ALGORITHM to 0. For now, there've been 20 orders and no issue, will write if that helped or not (and will continue to find the solution if possible) so hopefully this threat will help someone. Cheers
  4. I understand that making aliases work is difficult / nobody is able to show me working configuration. Would adding redirection with query in url to .htaccess be a viable solution? For example for: Redirect 301 /search?controller=search&orderby=position&orderway=desc&search_query=my+query&submit_search= http://www.domain.com/pagename.html Thanks for help in advance.
  5. Just tried another thing: - changed store domain from non-www to www, somebody just ordered again and problem happened, there's an order without a status.
  6. Hello, I have been developing multiple stores with PS 1.6 selling to multiple countries. I have no problems with the stores but with one selling to Germany. Server information on attachment. This is a single order with the problem (2 errors Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart). The problem is: The customer after adding a product to shopping cart, registering and paying is redirected to empty cart page. There's no order confirmation and order is created in back office but without status. I have found a lot of topics describing similar issue, but people were reporting problems with being redirected to an empty cart after adding a product. Looks like adding a product works well, however the problem with failed orders created is really severe. What is also strange is that it happens to only 10% of customers. Others are able to create orders without any issues, we have also been unable to replicate the problem ourselves. Obviously 100% customers must be able to pay. We have been trying to find what in common have those people unable to pay, hard to see anything, there are some tracks that it may happen because of firefox browser. We use 5 step checkout and payment is PayPal Plus module, purchased from Prestashop marketplace (the issue may come from the module, however developer tested 20 orders with development store version and he says that he didn't find any problems). When we were testing the store ourselves with sandbox and live accounts orders went through successfully without any problems. The things I have done so far: - cleaning DB (ps_connections, ps_connections_page, ps_connections_source) (link) - changing ps_cart auto_increment (link) - geotargeting is turned off, setting localization from browser turned off - there are no any javascript errors, - eBay module is not installed (link) - shop is not in multistore module, stock_available table has proper quantities and there are no obsolete redundant rows, - Core/Business/Stock/Core_Business_Stock_StockManager.php at line 126 issue was fixed (link), - can't see any errros in apache error_log, - I have made override for PaymentModule.php (link) - I have made override that changed cookie name (link) The problem persists. We are losing sales. The problem is present on the PS forums, however none of the solutions helped me. After paying customer is redirected back to our website like he's never been on it before, cart is empty, because he's not recognised as a customer who just paid order isn't confirmed, he doesn't receive any emails, order is created in back office of the store, however without statuses. I would greatly appreciate any suggestions what else can be done in order to fix the problem. Thanks
  7. Thank you for your reply. I have reindexed search. The problem is, I tested it even with clean PS 1.6.1.24, with simpliest of configurations and it still doesn't work. Is this how the aliases should be configured? A phrase that customer types into search and the page that he should be redirected to after pressing search right? Are you able to make aliases work with your store? Is this how search compatible with aliases should be configured? Kind regards
  8. Hello, Is there a tutorial how to set up search alias in PS 1.6? There's a keyword and page field, so I thought you need to insert what needs to be typed to be redirected to specified page, however it doesnt work like that. It seems to not work at all. No matter what I type into keywords and what page I link, there's no results. I've even tested fresh PS1.6 installation and same thing happens, there are no results. Anybody can explain how to set up search aliases? Kind regards
  9. Well, maybe that would help me to get to the right track. I could always in JS hide the prices that shouldn't be displayed. You know how to do that?
  10. Hello, Anybody has a clue how could I change the way the prices are displayed: whether net or gross? I know that you can assign this to a customer group, so there definitely must be some function in php which changes that. Is there a way to change that function through front office (JS with ajax)? If someone helps me find the solution I will post a module / functionality here. Thanks
  11. Hello, Is it possible to change the way the prices are displayed? In fact, it would need to change every number on the website. For example: 10000, should be 10.000. I know that in theory I could develop a module that would just edit the price string and add a dot between the numbers, 3 places from the decimal dot, however it would be tedious as I would need to make sure every single number is taken into consideration. Is there some system solution to that? If not to every number, maybe just for prices? Thanks
  12. You are absolutely correct. I've managed to solve it yesterday exactly the way you mentioned. I moved the methods to the class (which should have them anyway, controller should just use them) and I instanced the main module class. and everything works like a charm. Thank you so much.
  13. Hello, I need to use some of the functionality my front controller currently does. Beginning of my controller is: is there any way I could use it's functionality with cronjob? I was trying to add code after class ending, with however it says "the module name is invalid". I could just copy the functions and strip it out of it's object functionality, however is there a proper way the front controller could be instanced? I would greatly appreciate any help. Kind regards
  14. In case anybody were interested and having similar issue, AuthController.php processSubmitAccount() function needs an override. after line 244: if($is_company) { $customer->addGroups(array(4)); } else { $customer->addGroups(array((int)Configuration::get('PS_CUSTOMER_GROUP'))); } Group 4 is my "Trade" group ID.
  15. Hello, As in the title, is it possible to assign customer to a different than a default customer group when he registers? I know it could be easily done via cron script that would go through entire database and just change ID of the customer group, but how to do that during checkout? If "company" field is filled during checkout he is assigned to "trade" group. Any idea how to do that? Thanks
  16. Hi, I have a problem with default gallery of PS 1.6. In our store there are products connected to each attribute, let's say: Attribute 1 - pic1, pic3, pic5; Attribute 2 - pic2, pic4, pic6. Setting pictures to attributes works only partially - in the gallery thumbnails only pictures connected to attribute, which is fine. However if you set attribute 2 for example and click on first picture, you can go next through the buttons in gallery and see pictures connected to attribute 1. Is there any way to change that? I would like only attributes 2 to be displayed in gallery at any time. Thanks
  17. Okay, I've just found it out. I had to add: public $content_only = true; public $display_header = false; public $display_footer = false; after that it works like a charm. thank you so much for your help.
  18. Thank you very much for your reply. I've actually tried that, however some elements are still displayed (logo, some footer elements), website looks broken, while when using ?content_only=1 it looks perfectly. There are also some errors, Notice: Undefined index: content_only in /home/username/psfolder/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 200 Notice: Trying to get property of non-object in /home/username/psfolder/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 200 Have you encountered similar problems before? Cheers
  19. Hello, Just like in a title, is there any way to display contents generated in a module's controller file like they are with ?content_only=1 parameter, but without using that parameter? For example, I have an iframe displaying survey, and I want to have a webpage: mydomain.com/survey but want it to look like it was accessed after typing: mydomain.com/survey?content_only=1 Is there any other way to achieve content only page version than by URL? Kind regards
  20. Hello, I am trying to figure out, how to make fancybox display only pictures which are connected to particular combination, for example: https://modernedusche.de/duschelement-800x1200-punkte-pure This product, has pictures of drain position set for combination named 'Position des Ablaufs', After clicking on particular position: mitte ecke or rand, pictures in thumbnails are changing to valid ones. However if you click on the picture on left-hand side it and then click on 'next' it shows every product picture, instead of just those bound to the combination. Is there any way to change this? Which file I should be editing? Any tips are welcome. If I work it out, I can write a module and publish it here. Kind regards
  21. Same as DevMiki I want to create a different ORDER STATUS and different SUBJECT for email sent after status is assigned.
  22. Hi, I want to connect email called "Thank you for your order" with "Delivered" status present in PS 1.6 back office. I wish subject was "Thank you for your order" but it is taken from the status name. Is it possible to change the email subject to be different than status name? How to do this? Regards
  23. Hello, I am looking for solution how to add possiblity for customer to add second address during create account process. Just like by default in guest checkout - you can tick "I want to add another address as invoice address", how to add this to the account creation process?
  24. Is there some documentation for prestashop honestly? Or do I have to check myself every single line of code to figure our what's the function that creates an account for example. Could somebody help me find validation for password? Basically, password field is blank, there's an error saying that customer account can't be created. I've tried to change the: public static function isPasswd($passwd, $size = Validate::PASSWORD_LENGTH) { return (Tools::strlen($passwd) >= $size && Tools::strlen($passwd) < 255); } $size to 0, but still can't create account when password is not inserted because:There is 1 error An error occurred while creating your account. How to allow password field to be empty? Or how to generate random password if customer doesn't insert anything there?
  25. Hello, How to check if the cart contains product in javascript? I want to do this, for example on page load, if cart is not empty, add some specific style, for example: if (cart_not_empty){ // } I know that there's variable $cart_qties but it's smarty. Also there's ajaxCart.nb_total_products, but it shows 0 unless you add another product to cart (if you have 1 product and refresh the cart ajaxCart.nb_total_products says 0, if you then add another product to the basket ajaxCart.nb_total_products equals correct number). Many thanks.
×
×
  • Create New...

Important Information

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