Jump to content

Alex Nitu

Members
  • Posts

    63
  • Joined

  • Last visited

Profile Information

  • First Name
    Alexandru
  • Last Name
    Nitu

Recent Profile Visitors

258 profile views

Alex Nitu's Achievements

  1. Hello everyone, I've come across an issue after installing a fresh copy of PS 1.7.5.0 and I don't know how to fix it. I've posted a screen shot, maybe someone can point me into the right direction. This pops up when I want to confirm an order in front-end. I need to mention that I haven't been doing any modifications, haven't applied any add-ons, it's a fresh install. Thank you in advance for your input.
  2. Hi, I don't quite understand what I'm suposed to do with that script and what to query inside mysql, can anyone help me?
  3. Hi, I'm trying to use this module but I'm having problems getting it to work. I don't know what's the extra code I need to copy inside my tpl files for this to work.
  4. Somewhere along the line of the modifications which the website has suffered it seems that I've lost the "availability" box, and I can't display status of stocks (in stock/out of stock). I tried working with product.tpl, but it seems that's not enough and I don't know what more can I do. The website URL is: http://truse-scule.ro I tried replacing it with standard code from un-altered version, thinking something got deleted, but it didn't work. I also noticed a "display: none" while inspecting the element and told it to display a different element. It got the job done-ish once I entered a text, but I don't know how to change that inside the website structure, and why don't I have the original green box block element? This is the code I have inside product.tpl, now: <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {*<span id="availability_label">{l s='Availability:'}</span>*} <span id="availability_value"{if $product->quantity <= 0 && !$allow_oosp} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> {hook h="displayProductDeliveryTime" product=$product} <p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p> {/if} <p id="availability_date"{if ($product->quantity > 0) || !$product->available_for_order || $PS_CATALOG_MODE || !isset($product->available_date) || $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p>
  5. Seems that the only way to fix this is to turn off every piece of cache that you are using: general, smarty, cache for CSS and cache for Java. I don't know exactly about the last two, but I turned them off anyway so I can be sure. Unfortunately, some people still had some of these issues, once cache was turned off, so it could be related to another glitch, but try that and see what happens.
  6. It was a good hint, but the problem is not making the fields required, because they already are. I only need to add the bloody asterix )
  7. From what I understand, if I simply add "'required' => true" to each field from the following code, it will show the asterix, but it doesn't happen. Code: public static $definition = array( 'table' => 'date_firme_persoana_juridica', 'primary' => 'id', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT), 'numefirma' => array('type' => self::TYPE_STRING), 'cui' => array('type' => self::TYPE_STRING), 'cif' => array('type' => self::TYPE_STRING), 'cont_bancar'=> array('type' => self::TYPE_STRING), 'banca' => array('type' => self::TYPE_STRING), 'judetsediusocial' => array('type' => self::TYPE_STRING), 'orassediusocial' => array('type' => self::TYPE_STRING), 'adresasediusocial' => array('type' => self::TYPE_STRING), ), ); After edit: public static $definition = array( 'table' => 'date_firme_persoana_juridica', 'primary' => 'id', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'required' => true), 'numefirma' => array('type' => self::TYPE_STRING, 'required' => true), 'cui' => array('type' => self::TYPE_STRING, 'required' => true), 'cif' => array('type' => self::TYPE_STRING, 'required' => true), 'cont_bancar'=> array('type' => self::TYPE_STRING, 'required' => true), 'banca' => array('type' => self::TYPE_STRING, 'required' => true), 'judetsediusocial' => array('type' => self::TYPE_STRING, 'required' => true), 'orassediusocial' => array('type' => self::TYPE_STRING, 'required' => true), 'adresasediusocial' => array('type' => self::TYPE_STRING, 'required' => true), ), );
  8. Hello tuk66. If you're refering to the customer.php from classes, it won't have any effect because I need to modify inside the module that provides me with those fields. The problem is that if I write that string inside it's file from classes folder, it won't display the asterix.
  9. Hi guys, I have a module for two types of customers to register. Just to be clear, the fields are a requirement, and Prestashop knows that, but it doesn't show the " * " symbol next to those fields and I want to display those symbols so that everybody knows that those fields are a requirement. Otherwise, they might ignore and they wouldn't be able to finish the registration without frustration. So the question is, how do I add the red asterix symbol which specifies that the fields are a requirement for registration?
  10. I was testing the search bar and all of the suddon I've got this error: Warning: touch() [function.touch]: Unable to create file /www/ftp.conexelectronic.ro/truse-scule.ro/cache/push/activity because No such file or directory in /www/ftp.conexelectronic.ro/truse-scule.ro/classes/Tools.php on line 3129 The search-bar seems to be working, and displays results, but what about this warning? Has anyone encoutered this before?
  11. I'm gonna follow this topic because I have the same issue. I thought that by adding a thumbnail picture and removing the category picutre, it will work. Instead, I have the "no image" text displayed.
  12. Hi guys! My website is almost completed and something hit me: I need a captcha method to prevent bots from attacking my "recover password" or my "contact form". Although the second aspect will not be as important, I had attacks, in the past, from bots spamming my "recover password" page. I noticed reCaptcha is the least annoying method of them all, although most users despise any type of Captcha. I don't know much about website security, and I started out this topic because I want to know if there is a more discreet way of preventing those type of attacks, without using reCaptcha. If not, then I will go ahead and figure out a way to implement it. Please share your thoughts.
  13. What type of errors are you getting? Can you be more specific? Is it only about IMG URL, or something else?
  14. That was going to be my recommendation, to try and see what happens when you change description inside cms_lang table. For me it didn't work because of the cache problem and I don't know if it's a bug or simply a suggestion to stop using cache in any operation. I hope that the PS team will take a look at these issues for next updates. I'm using 1.6.0.11 and I'm thinking about update, but I don't know if it's worth it for now. I know what cache is, but not sure about those 2 inside PS BO. If anyone can point me to a thorough documentation about the 2 types of cache, smarty and the one in the bottom of the page, I'd be very thankful because I still don't know what's the difference between them and what are they supouse to help me/users with.
×
×
  • Create New...