-
Posts
545 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Ress
-
Prestashop 1.7 avoid Out of stock products from being in a products list
Ress replied to ZiedDams's topic in Core developers
It's ok if he doesn't need a certain number of products, or if he doesn't use pagination. Because for example, if 20 products are brought in, and some of them are out of stock, he will be left with less.- 7 replies
-
- 1
-
- productsearchquery
- products
-
(and 1 more)
Tagged with:
-
Prestashop 1.7 avoid Out of stock products from being in a products list
Ress replied to ZiedDams's topic in Core developers
You could change the query in the getProducts method(class Category), where you can add stock check (this function is used to bring the products), or you could change the settings for product visibility, i.e. when a product is out of stock, you change its visibility to nowhere, and when it comes back in stock, you make it visible again (there are modules that do this, you can even find free ones).- 7 replies
-
- productsearchquery
- products
-
(and 1 more)
Tagged with:
-
Do you want to put custom texts, or use certain formulas, e.g. product name + certain feature or + certain attribute?
-
How to show installment price on product page PS 1,7
Ress replied to plutten22's topic in Configuring and using PrestaShop
Do you want to remove the decimals from the whole site, or just for that price? If you use the "displayPrice" function, it displays the price according to the prestashop price format. -
The page with the best selling products at the wrong url
Ress replied to Piotr3qx's topic in General topics
Check in the database, in the ps_meta table, that there are not 2 times, or something like that, and for one of the ids, that you have no data in ps_meta_lang. -
The best way to give a mod developer access to the back office
Ress replied to Adrian P. Vales's topic in General topics
Hi, You can create a new employer profile, and set only what permissions it needs. But it would be better to have a test version of your website, in which you don't have customer data. -
For each change in the status of the order, the date of the change is saved in the database. You can make a script to generate a csv with what you want.
-
Adjust product listing query to reduce loading time for many articles
Ress replied to SWG's topic in Core developers
What version of prestashop is it about? It is good to indicate this as well. -
Modul alegere produse pentru set (produs final)
Ress replied to BroderiiTraditionale's topic in Discuţii generale
Salut, Cum se numeste modulul pe care l-ai gasit?- 3 replies
-
- prestashop 1.7
- gratuit
-
(and 1 more)
Tagged with:
-
Do you have new products on the site? Try to increase the number of days for which the product is considered new, maybe that's why.
-
The check is done in the init method, from the Product controller. If you want to make certain changes, there should, normally, an inactive product you can only see it in preview mode, where you have the preview parameter in the url.
-
The best way to create a new order in my custom module
Ress replied to Stepel's topic in Core developers
You can see exactly what checks are normally done, in CartController, processChangeProductInCart method. You can follow the same steps. -
*SOLVED* Last two subcategories are smaller than the others
Ress replied to PapaBearTango's topic in General topics
-
You can use jQuery for this. Specifically, you can use the "change" event for the first dropdown to populate the other input. https://www.w3schools.com/jquery/event_change.asp Now it also depends on where you have the data for the values in the second input. Do you load it from the database? https://www.tutorialspoint.com/how-to-populate-select-list-with-jquery
-
Post a link where we can see the site, and you can indicate the name of the theme.
-
Most likely the overrides made by the module were not properly removed. You could go into the module, see what overrides it does on install, then check and delete what's left in /override/classes/controller/ProductListingFrontController.php.
-
how delete "2022 - Ecommerce software by PrestaShop"
Ress replied to newbie20's topic in General topics
You can modify/delete in: your_prestashop_root/themes/classic/templates/_partials/footer.tpl , copyright_link block. If you are upgrading prestashop, and don't want to lose this change, you will need to disable the "Upgrade default theme" option on the upgrade module configuration page. Or, another solution, you can make a child theme, so you won't have any problem. https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/parent-child-feature/ -
How run a hook asynchronously ?
Ress replied to Vazark's topic in Addons, modules and themes developers
Can't you do an ajax request after loading the page? -
The quick view feature returns an error in the browser.
Ress replied to vav_'s topic in Core developers
Enable debugging and see the error content. -
[SOLVED] Hide subcategories list in a category page
Ress replied to Alberto97's topic in General topics
Do you have PrestaShop 1.7? -
Payment selection after selecting carrier sometimes doesn't appear
Ress replied to rejkonica's topic in General topics
You should try to reproduce the problem, I think it would help a lot if you knew what products the customer had in the cart, the address filled in, and the payment method, so you can see exactly where the problem occurs. -
I prefer the option of using a module. You can install the module on other prestashops, or you can disable the function by just deactivating the module. But if it's something very specific to that shop, maybe it's more ok to do direct override.
-
It is not ok to put directly into the cache file. But why doesn't it work in custom css? Have you cleared the cache, both in prestashop and in the browser? Have you tried setting the rule with "!important"?