Jump to content

acpkor

Members
  • Posts

    71
  • Joined

  • Last visited

Profile Information

  • Location
    spain
  • Activity
    Freelancer

Recent Profile Visitors

2,678,276 profile views

acpkor's Achievements

Apprentice

Apprentice (3/14)

  • Reacting Well Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

2

Reputation

  1. Thanks a lot I have followed the steps indicated and it works correctly And it was just what I was looking for...
  2. Hello, I need to remove the checkout steps “Address” and “Carrier”. That is, remove these 2 steps from the purchase process. I don't need the addresses of the clients. So that only by having the "user information" registered, it can be purchased. There are different contributions on the Internet, but it is not clear how it can be done for version 1.7 could someone guide me please? Which files should I modify? Thank you!
  3. good morning, With the information provided by "ventura", letters can be entered in the UPC field. You have to make the changes indicated in the /classes/Validate.php file public static function isUpc($upc) { return !$upc || preg_match('/^[a-zA-Z0-9]{0,12}$/', $upc); } and /src/PrestaShopBundle/Form/Admin/Product/ProductOptions.php ->add('upc', FormType\TextType::class, [ 'required' => false, 'label' => $this->translator->trans('UPC barcode', [], 'Admin.Catalog.Feature'), 'constraints' => [ new Assert\Regex('/^[a-zA-Z0-9]{0,12}$/'), ], 'empty_data' => '', ]) a greeting
  4. RESOLVED left over in /classes/Validate.php one {0,12}$ { return !$upc || preg_match('/^[a-zA-Z0-9]{0,12}${0,12}$/', $upc); } Now it works fine. Thank you very much!
  5. and besides, now it doesn't work with just numbers... Have I changed something wrong...?
  6. I have made the change and it doesn't work either. It still won't let me put lyrics. Do I have to modify something in classes/Product.php ?
  7. in classes/Product.php what should i edit?
  8. Thank you, But I can't. I have modified as you say. The file that I modify is: /classes/Validate.php But it still doesn't let me put lyrics
  9. Thank you, I have modified this: public static function isUpc($upc) { return !$upc || preg_match('/^[0-9]{0,12}$/', $upc); } For this public static function isUpc($upc) { return true; // return !$upc || preg_match('/^[0-9]{0,12}$/', $upc); } But it's not working It still won't let me put lyrics. should i do it another way?
  10. Hello, I want to enter letters and numbers in the UPC field in the product file. From "phpadmin" inside the table "pr_prodcuts" I can. But from the back office it won't let me.. What file should I modify to let me enter letters from the back office? Thank you!
  11. Hi `prestachamps`, perfect. Thank you I have added ord.`id_shop` and it works correctly. shows the products of the 2 stores How can I make the query show me all the products regardless of the status of the order?
  12. Hello, I am applying this SQL query SELECT ord.id_order,`reference`,`ddw_order_date`,`product_name`,`product_quantity`,`date_add` FROM `ps_orders` as ord INNER JOIN `ps_order_detail` as od ON ord.id_order = od.id_order WHERE `valid` = 1 AND `date_add` BETWEEN '2022-04-24' AND '2022-05-30' I don't know why, but it only takes the orders from store 1. I don't know why it doesn't get all the orders, those from store 1 and those from store 2. Does anyone know why this happens? Thank you,
  13. Hola, estoy aplicando esta consulta SQL SELECT ord.id_order,`reference`,`ddw_order_date`,`product_name`,`product_quantity`,`date_add` FROM `ps_orders` as ord INNER JOIN `ps_order_detail` as od ON ord.id_order = od.id_order WHERE `valid` = 1 AND `date_add` BETWEEN '2022-04-24' AND '2022-05-30' no se porque, pero solo me saca los pedidos de la tienda 1. no se porque no me saca todos los pedidos, los de la tienda 1 y los de la tienda 2. ¿a alguien se le ocurre porque sucede esto? Gracias,
  14. Thank you very much for example. I have created the mail templates and modified the file I have applied it and it works fine. Thanks! if I wanted to do the same with the email that the employee receives which file/class should I modify?
×
×
  • Create New...