Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by giwrgos88

  1. Hello, I want to make the Faceted search available not only on categories but also available on new products and search page. Does anyone knows what I have to do? thanks
  2. ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍ ‍‍‍‍‍‍ ‍‍
  3. Hello, I'm new with webpack and i need some help to install some packages like boostrap 4 owl carousel etc, but also some basic questions like do i need to include the _dev folder on the production server? How i can add all the js (prestashop's js, template' js and modules'js) into one js? Any I'm trying to install the bootstrap for my template, here is package.js -> https://pastebin.com/LTJZYeGL here is my webpack config: https://pastebin.com/kdUQixSK last my theme.js : https://postimg.org/image/9t5ect5xf/ does anyone know what i'm doing wrong and has the time to explain me same basic staff? Thank you
  4. Yes i know but 7.1 is backward compatibility which means that is compatibly with 7 and according to changelog my prestashop version supports 7 https://www.prestashop.com/en/developers-versions/changelog/
  5. I tried to install for testing purposes an existing prestashop project on laravel's forge which is having ngix and mariadb. I've uploaded all my php files inside the public folder but when I'm trying to load the page I'm getting the following error message Fatal error: Uncaught Error: [] operator not supported for strings in /home/forge/testing.com/public/classes/db/DbQuery.php:96 Stack trace: #0 /home/forge/testing.com/public/Adapter/Adapter_EntityMapper.php(45): DbQueryCore->from('shop', 'a') #1 /home/forge/testing.com/public/classes/ObjectModel.php(233): Adapter_EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /home/forge/testing.com/public/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #3 /home/forge/testing.com/public/classes/shop/Shop.php(400): ShopCore->__construct('1') #4 /home/forge/testing.com/public/config/config.inc.php(114): ShopCore::initialize() #5 /home/forge/testing.com/public/index.php(27): require('/home/forge/tes...') #6 {main} thrown in /home/forge/testing.com/public/classes/db/DbQuery.php on line 96 Does anyone know how I can fix this issue? I'm using prestashop
  6. I found out today that is not the only template which I have the issue. Also on the txt which is attached is fine but on the html it shows variables instead of the value of the variable
  7. I cleaned the cache and also tried different browsers + incognito
  8. As a said the htaccess looks fine. I changed it from the backoffice but still redirects me to https
  9. Hello, I have downloaded a live project of prestashop on my local environment. The live version is using SSL and because i don't want to create self-signed SSL Certificate I want to disable the SSL on my local environment. So what I did I changed the value of PS_SSL_ENABLED from myphpadmin from 1 to 0 but the site keeps redirecting me to https instead of the http. I checked the site urls but they are fine same as my htaccess. Does anyone have any idea what it keeps redirecting me to https? I'm using mac with chrome
  10. Hello, I found out that prestashop is not deleting the images which are related to a product when you delete a the product from the backend. Because now I have more than 10GB of pictures I'm looking a fast and a safe way to remove pictures which are not anymore available on products. Does anyone have something to suggest?
  11. Hello sorry for taking me so long to reply. There is not any override class for PaymentModule.php. I have cash on delivery and paypal. The issue is only with the order accepted template, the order confirmation is fine which is the same email file.
  12. I wanted help to make the queries that the getProducts had but I've came with a solution thanks any way!!
  13. Hello I want to override the sql queries of the getProducts of the category class. There are two sql queries. 1st $sql = 'SELECT COUNT(cp.`id_product`) AS total FROM `'._DB_PREFIX_.'product` p '.Shop::addSqlAssociation('product', 'p').' LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON p.`id_product` = cp.`id_product` WHERE cp.`id_category` = '.(int)$this->id. ($front ? ' AND product_shop.`visibility` IN ("both", "catalog")' : ''). ($active ? ' AND product_shop.`active` = 1' : ''). ($id_supplier ? 'AND p.id_supplier = '.(int)$id_supplier : ''); and the 2nd $sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity'.(Combination::isFeatureActive() ? ', IFNULL(product_attribute_shop.id_product_attribute, 0) AS id_product_attribute, product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity' : '').', pl.`description`, pl.`description_short`, pl.`available_now`, pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image, il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default, DATEDIFF(product_shop.`date_add`, DATE_SUB("'.date('Y-m-d').' 00:00:00", INTERVAL '.(int)$nb_days_new_product.' DAY)) > 0 AS new, product_shop.price AS orderprice FROM `'._DB_PREFIX_.'category_product` cp LEFT JOIN `'._DB_PREFIX_.'product` p ON p.`id_product` = cp.`id_product` '.Shop::addSqlAssociation('product', 'p'). (Combination::isFeatureActive() ? ' LEFT JOIN `'._DB_PREFIX_.'product_attribute_shop` product_attribute_shop ON (p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop='.(int)$context->shop->id.')':'').' '.Product::sqlStock('p', 0).' LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (product_shop.`id_category_default` = cl.`id_category` AND cl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('cl').') LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl').') LEFT JOIN `'._DB_PREFIX_.'image_shop` image_shop ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop='.(int)$context->shop->id.') LEFT JOIN `'._DB_PREFIX_.'image_lang` il ON (image_shop.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)$id_lang.') LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON m.`id_manufacturer` = p.`id_manufacturer` WHERE product_shop.`id_shop` = '.(int)$context->shop->id.' AND cp.`id_category` = '.(int)$this->id .($active ? ' AND product_shop.`active` = 1' : '') .($front ? ' AND product_shop.`visibility` IN ("both", "catalog")' : '') .($id_supplier ? ' AND p.id_supplier = '.(int)$id_supplier : ''); I want to add on both the parameter if the product title not like 'Pre-Order' for any language, in order to select all the products which are not preorder. Can anyone help me? thanks
  14. yes it occurs with all the payments, do you believe the problem is coming from a module?
  15. Nop I didn't extend it, I haven't touch the emails, is the default way, how are coming from prestashop
  16. Hello, I have a small issue with the Order Accepted template. There are variables that instead of the value the email shows the variable name, where on the pdf that is attached with the email is fine. I have updated the emails to the latest version but still I'm having the same issue. Does anyone knows why? here is a sample image Thanks
  17. No I don't have any cron jobs, anw I told to the admin to change the prices manually
  18. I've checked this table my_tabe_product Here are some screen shots of the same product in in the different tables product table product shop and stock available Note this is only a sample of one product. For some reason I have more than 50 products with the same price of 3 euros and quality 0. I didn't have any errors on the error_log of the server and the user changed only the quantity of one product and some of the products affected by changing only with the quantity and price. He didn't updated or installed any modules
  19. Hello, today I have faced a new issue with my store, where I found out that on some of my products the prices has changed but also the quantity. I checked into my database and I found out that in the field price and uniti_qty the values are correct. I cleaned the cache but also upgraded my prestashop to the latest version but still I'm having the same issue. Does anyone has the same issue or knows how to fix this problem? Thank you
  20. yes but event the country is selected by default. if you try to skip it you are getting an error message. Not only this on the backoffice there is not any registered address so therefore the client didn't use any special character or spaces
  21. Hello, yesterday I had a strange issue with my eshop. A client created an account without adding an address during the registration form which the address fields are mentatory. I tried by my self to check if the shop changed the configuration settings that I did to make the address during an upgrade but the address was required. Is there any bug with the prestashop registration form? I'm using prestashop v1.6.1.1
  22. Hello I'm working on a module and trying to create an insert form, so I have extend my class with the AdminController class. I have created a function called renderForm. Now I want to add a custom tpl to this page or using the HelperForm to add dynamic fields. I want to create a simple gallery having 2 fields and one add button. The one filed will be the title of the image and the second input field will be use to add the link of the image. So the user will be able to add as many image he wants on the form before he clicks the save button. Can anyone tell me how i can do it? I dont want the javascript code because I know how i can do it Thank you
  23. I'm working on a module where it has a back office for the admin to post articles to his prestashop page. I want to give him the option of adding dynamically input fields. For example when the admin clicks on the button add, I want to show something a modal that will have 3 input fields. After the admin will fill the input fields with information he will press the ok button on the modal form. Then the modal will be disappeared but the data that he added on the form will be appears on a table in the helper form in order to be saved when he will click the save button. Can anyone help me to implement this or tell me how to add javascript to the helperform?
  • Create New...

Important Information

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