Jump to content

Angar

Members
  • Posts

    42
  • Joined

  • Last visited

Contact Methods

Recent Profile Visitors

3,181,326 profile views

Angar's Achievements

Rookie

Rookie (2/14)

  • Reacting Well Rare
  • Conversation Starter Rare
  • First Post Rare
  • Collaborator Rare
  • Dedicated Rare

Recent Badges

2

Reputation

  1. You're right, I mean combinations. Is there any solution to change the order of combinations in the back office? I tried editing /classes/Product.php but it doesn't change anything. I want to change this in backoffice. One of my customers exports products to eBay and he said that he needs to have "color" on the first position, because without this he can't export products to eBay.
  2. Hello, In backoffice in product edition in the "combination" tab here: https://prnt.sc/tRzXV-kYL6Ad attributes are sorted by ID: https://prnt.sc/uQ526mPzymRk I want to sort these attributes by position, it is possible to change this?
  3. I enabled the debug mode, but I don't see here anything helpful: https://prnt.sc/8Bs4Irgc2kng I also checked the module positions, tried to reinstall the PrestaShop Edition Basic module, but it also doesn't work.
  4. Hello, I installed PrestaShop 8.1.2 and the "Home" and "Settings" tabs are empty: https://prnt.sc/HbWEK5u2tfum https://prnt.sc/ex2TkoUhQA3T Has anyone encountered a similar problem and knows how to fix it?
  5. I use WAMP 3.3.6 + PHP 8.1.26 + PrestaShop 8.1.2 and I have ICU warning.
  6. PrestaShop 1.7.8 Create file: /override/classes/Validate.php add in this file the code: <?php use Egulias\EmailValidator\EmailValidator; use Egulias\EmailValidator\Validation\MultipleValidationWithAnd; use Egulias\EmailValidator\Validation\RFCValidation; use PrestaShop\PrestaShop\Core\ConstraintValidator\Constraints\CustomerName; use PrestaShop\PrestaShop\Core\ConstraintValidator\Factory\CustomerNameValidatorFactory; use PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\NumericIsoCode; use PrestaShop\PrestaShop\Core\Email\SwiftMailerValidation; use PrestaShop\PrestaShop\Core\String\CharacterCleaner; use Symfony\Component\Validator\Validation; class Validate extends ValidateCore { public static function isCustomerName($name) { $validatorBuilder = Validation::createValidatorBuilder(); $validatorBuilder->setConstraintValidatorFactory( new CustomerNameValidatorFactory(new CharacterCleaner()) ); $validator = $validatorBuilder->getValidator(); $violations = $validator->validate($name, [ new CustomerName(), ]); // Custom validation: check if name contains more than 4 capital letters $capitalLettersCount = preg_match_all('/[A-Z]/', $name); $normalLettersCount = preg_match_all('/[a-z]/', $name); if ($capitalLettersCount > 1 && $normalLettersCount > 1) { if ($capitalLettersCount > 4) { return 0; // More than 4 capital letters, validation fails } } return (count($violations) !== 0) ? 0 : 1; } } If the name contains mixed letters (uppercase and lowercase letters) and more than 4 uppercase letters, registration is not possible. This should block fake accounts for example gHnfJCZoaIQ, ANKFDgUmTHJ etc., but allow the creation of regular accounts.
  7. PrestaShop 1.7.8 Create file: /override/classes/Validate.php add in this file the code: <?php use Egulias\EmailValidator\EmailValidator; use Egulias\EmailValidator\Validation\MultipleValidationWithAnd; use Egulias\EmailValidator\Validation\RFCValidation; use PrestaShop\PrestaShop\Core\ConstraintValidator\Constraints\CustomerName; use PrestaShop\PrestaShop\Core\ConstraintValidator\Factory\CustomerNameValidatorFactory; use PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\NumericIsoCode; use PrestaShop\PrestaShop\Core\Email\SwiftMailerValidation; use PrestaShop\PrestaShop\Core\String\CharacterCleaner; use Symfony\Component\Validator\Validation; class Validate extends ValidateCore { public static function isCustomerName($name) { $validatorBuilder = Validation::createValidatorBuilder(); $validatorBuilder->setConstraintValidatorFactory( new CustomerNameValidatorFactory(new CharacterCleaner()) ); $validator = $validatorBuilder->getValidator(); $violations = $validator->validate($name, [ new CustomerName(), ]); // Custom validation: check if name contains more than 4 capital letters $capitalLettersCount = preg_match_all('/[A-Z]/', $name); $normalLettersCount = preg_match_all('/[a-z]/', $name); if ($capitalLettersCount > 1 && $normalLettersCount > 1) { if ($capitalLettersCount > 4) { return 0; // More than 4 capital letters, validation fails } } return (count($violations) !== 0) ? 0 : 1; } } If the name contains mixed letters (uppercase and lowercase letters) and more than 4 uppercase letters, registration is not possible. This should block fake accounts for example gHnfJCZoaIQ, ANKFDgUmTHJ etc., but allow the creation of regular accounts.
  8. Próbuję utworzyć paczkę z szablonem, ale podczas instalacji na serwerze otrzymuję błąd "Ten szablon nie jest prawidłowy dla PrestaShop 1.7". Gdy instaluję szablon na localhoście wszystko jest ok. Czy ktoś ma podobny problem? Jak przygotować poprawnie paczkę z szablonem? Obecnie robię to tak: 1.Robię kopię szablonu classic i zmieniam nazwę na np. classic2 2.Edytuję plik themes/classic2/config/theme.yml i zmieniam w nim nazwę na name: classic2 3.Wybieram w panelu admina szablon classic2, a następnie eksportuję szablon. W folderze themes zostaje utworzony plik classic2.zip 4.Próbuję zainstalować na serwerze szablon classic2.zip i otrzymuję błąd "Ten szablon nie jest prawidłowy dla PrestaShop 1.7".
  9. Szablon przeszedł już walidacje i nie chce mi się w nim za bardzo grzebać więc dorzuciłem link do mojej strony do dokumentacji w pdf, którą można dodać do szablonu może to zaakceptują.
  10. Dzięki za odpowiedź. Dodanie linku do mojej strony byłby najlepszym rozwiązaniem, ale tutaj: https://addons.prestashop.com/pl/content/37-contributor-guide-technical-validation pisze: Don't insert external links into your module code or module documentation. Dodatkowych plików nie mogę dołączyć do szablonu, linku do mojej strony też. Nie rozumiem po co tak to utrudniają.
  11. Hello, I trying sell my themes on addons.prestashop.com In product sheet I can add only my theme installation file (Zips section) but how can I add also .psd files to my theme?
  12. Witam, Dodałem swój szablon do addons prestashop. Szablon został już zatwierdzony pod względem technicznym i czekam jeszcze na zatwierdzenie marketingu. Z tego co obecnie widzę na karcie produkty da się dodać jedynie .zip z plikiem instalacyjnym szablonu. I tutaj mam pytanie. Czy da się jakoś dodać całą paczkę z szablonem (plik instalacyjny szablonu + materiały graficzne + psd + dokumentację w html)?
  13. Sprawdź w themes\default-bootstrap\css\modules\blocktopmenu\css\superfish-modified.css
  14. Spróbuj dodać nowy hook do szablonu potem dodaj go do modułu filtrów i przeinstaluj go. Tutaj masz info jak dodać nowy hook: http://blog.better-web.pl/dodawanie-hook-a-w-nowy-sposob-prestashop-1-5/
×
×
  • Create New...