Jump to content

bobthebob01

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

bobthebob01's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I am trying to remove the validation on the company name showing in the "address" block during check out. ( I guess that validation applies every where the customer company name is asked). I've found this post: https://www.prestashop.com/forums/topic/335815-solved-how-to-remove-integer-validation-for-customer-addresses-in-first-name-and-last-name/ I tried to adapt to the company name field in the following 2 files: /classes/Address.php and /classes/Customer.php I tried 'isMessage', 'isString' and 'isAnything' but no success. Although it's always good to have validation in place, I actually not see why such validation is done on a company name. Maybe symbols can not be registered in a company name, but I would be surprised to hear you can not have numbers in a company name. Does anybody know how to stop that validation? Thank you in advance.
  2. Hi, Here is the situation. I created a employee profile which can only add and edit product. But i want to stop that profile of being able to enable/disable product on the "edit product page". I managed to do it on the product list page. The way i see it, is that i want to hide the html block displaying the "enable/disable" button. Adding a simple "display: none" will suffice, and have the button set to "disable" by default. I easily managed to make the button "disable" but default. But i'm having problem with the {if} statement for profile ID. I found on this forum (https://www.prestashop.com/forums/topic/234685-employee-permissions/?p=1559941) {if ((int)Context::getContext()->employee->id_profile) == 3} {else} {/if} which translate for me into: {if ((int)Context::getContext()->employee->id_profile) == 3} my html block with "display: none" to the div wrpping the button {else} my html block displaying the button {/if} It actually works fine in terms of displaying or not the html block accordingly. But it creates a problem with all other product tabs (Prices, SEO, Associations, Shipping, Combinations etc.). When i click on any of them, the page reload but stay on the first tab "Information". It never loads the other tabs. And i'm pretty sure it's not something else because as soon as i remove my custom {if} statement, everything works fine. Does anybody has an idea why it seems to interfer with the tab? Thank you in advance.
  3. yes i made sure about the "," and ";" and "" for multiple values. I even tried different combination than yours. I added the column of "URL rewrite" to even eliminate the warning after the import. I must say that some of the issue i previously had was my fault as i did not match/assigned some columns. When too fast and i've been working too long on this. So i finally get an import file that had no errors or warning after hitting the "import button". I even rebuilt the search index as suggested even though it should have nothing to do with it. Yet only my first product has categories selected. All other product have nothing saved. If i edit one and just click the save button, i get the message that it needs to have a category selected. Very strange.
  4. Hi parsifal, thank you very much for your reply with explanation and for even worked on my file. I've tried and your file does not work. it creates errors such as: Property Manufacturer->name length (84) must be between 0 and 64 or Property Product->reference length (254) must be between 0 and 32. it looks like it's jumping a column or something. But with the info and suggestion you gave me, i will try other alternative for my file structure and hopefully find a solution. I hate when the machine beats me. I need to find the solution. Failing at something that should be as simple and straightforward will hunt me for a long time !! lol Thanks again
  5. Hi, FYI: i'm using the latest PS version: 1.6.0.9 I've been trying to import products via a csv file but i'm running into a problem that i can not figure out. I based it on the sample csv from the PS admin panel. First, i realised that if i add the categories of my product as text/word, PS creates a new category for each one. So i replaced the categories by the ID of the categories i want a product to be assigned to. And it seems to work as i see all my products in the PS admin panel. But my only problem is that only the first product of the csv file get assigned to the correct categories. All others are actually missing the categories data. So when i look on the front store, i do not see them since they are not assigned in PS. I attached the sample i'm using for my test as a reference. Any help would be greatly appreciated as i've been searching around the net for an answer but could not find any. I would really like to avoid importing all my product manually. It would be such as waste of time. Especially when there is an import feature. I just hope, i'm missing something stupid and that some one had that problem already. Cheers TEST-IMPORT-Products.txt
  6. well i must say that this post was by far more explicit and useful in terms of importing categories in a csv file than the official documentation. I'm not sure if i was doing something wrong or a setting that i miss. But when i tried to import categories using the sample of "CSV Import" page of the admin panel it would never work. It does not mention anything about not using id 1 and 2 in your csv file as these 2 IDs are already use for the root and home category. Also, in the sample file, the column called "Parent Category" is showing the word "Home". Which makes you understand to write the name of the parent category since it is the example given. And every time i was following this example, none of my parent category would be set-up properly. All my categories were showing as sub-category of "Home". But after looking at the sample given on this thread showing to use the ID of the parent category in the "Parent Category" column, i changed all my "Parent Category" values to match the ID and not the name. And taaa daaa ! it worked right away! All my parent categories and sub categories were properly set-up in PS. Again, maybe i missed an option some where. But for me, the sample file and documentation page (http://doc.prestashop.com/x/uAA6AQ) would need to be revised. In any case, thank you very much PSdilemma for your very simple and clear explanation. Cheers
×
×
  • Create New...