-
Posts
545 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Ress
-
You'll find logo path in: your_prestashop/classes/pdf/HTMLTemplate.php, assignCommonHeaderData() function.
-
Also check in the console, not to have any javascript error.
-
I understood something else. For something similar, you could use a module like this (if you can't do it with the theme modules) https://addons.prestashop.com/en/additional-information-product-tab/45796-product-slider-pro-categories-related-products.html
-
Can you say the exact page where you want to post? My account page?
-
You mean to do this for products? The breadcrumb is formed automatically, and to be complete, you need to change the default category to the category with the highest level depth (not the root).
-
Data is saved in ps_module_carrier. ID Module -> payment module id ID Reference -> carrier id reference (from ps_carrier table)
- 1 reply
-
- 1
-
Well, that's how it works, if you add a product to the cart, it is not removed from stock, it is only removed when the order is placed. If you say it doesn't happen all the time, it's clearly another problem, which only causes it sometimes. What version of prestashop do you have?
-
Looking for subcategory filters module
Ress replied to Aircod's topic in Looking for a module or a theme
With the default module, this is not possible. If you want more advanced features for filtering (and what you are looking for), you can use the Advanced Search module. -
I used this module on a project: https://addons.prestashop.com/en/customer-administration/24352-full-features-groups-pro-with-compare-products.html#overview
-
Modulul permite clientilor interesati de cumpararea produselor prin intermediul platformei SEAP, sa completeze un formular, pentru a fi contactati ulterior de catre administrator. Administratorii pot vedea toate request-urile centralizate, si le pot marca ca si finalizate. Vizualizare modul: https://prestamaniacs.com/prestashop-modules/100-request-product-publication-in-sicap.html Demo modul: https://shop.prestamaniacs-demos.com/en/women/2-9-brown-bear-printed-sweater.html Vizualizare modul: https://prestamaniacs.com/prestashop-modules/100-request-product-publication-in-sicap.html
-
What payment modules do you have active?
-
I'm attaching a sample, which of course you have to adapt. Javascript if (typeof (prestashop) != 'undefined') { $(document).ready(function() { prestashop.on('updateCart', function() { $.ajax({ url: 'your_front_controller_url', type: 'POST', dataType: 'json', success: function (data) { // in the "data" variable you will have the data of the product that you will add in your code } }); }); }); } PHP //this is how you bring the data of the last product added to the cart. you make an array of what you need, and send them back to the front $productDetails = $this->context->cart->getLastProduct();
-
It's not quite right what you're doing, you return that tpl, but that hook is an action hook, it doesn't return anything to the front end, so it will never run that js for you. https://devdocs.prestashop.com/1.7/themes/reference/javascript-events/ You have the "updateCart" event, which is triggered after you add a product to the cart. You can bind to it, do an ajax, there you can find out the last product added to the cart (you have a function in the cart class). After you have found the product, you prepare all your data (brand, category, etc), and send an array of them back, after which you can run that code.
-
To check exactly, go into the install() function of the module, and see exactly what and where it saves to the database. The module saves some data in the Configuration table.
-
How Import API on Prestashop
Ress replied to Alex Red's topic in Addons, modules and themes developers
Hi, Basically you should make regular requests to that API, and update the prices of the products on your site. It would be best for you to do this in the form of a module. You need a front-end controller, for which you will set a cron job, which will call that controller at the time interval for which you want the price update to take place. -
You can't really use native code unless you use combinations. With a module like this, you can add different fields and you can use formulas for the final price. https://addons.prestashop.com/en/sizes-units/19389-dynamic-product-fields.html With such a module, you can add products, which if checked, will be added to the cart along with the main product. https://addons.prestashop.com/en/cross-selling-product-bundles/23426-multi-accessories-pro.html
-
Hi, This additional service/product you are referring to, do you want it in the order as an individual product (for stock, invoicing)?
-
To avoid this problem, I think you should create all possible combinations between all those attributes, and the ones that are not now, I think you can put them stock 0, so they can't be added to the cart.
-
In Advanced Parameters -> Performance, do you have selected Recompile templates if the files have been updated option?
-
Subdomain point to img folder gets error 403 - Prestashop 1. 7.8.5
Ress replied to Mathew Nwaneri's topic in Bug reports
After you finish the setup, go to Traffic and SEO, and hit a save, to regenerate the htacces. -
Se poate activa prin modificarea fisierului prestashop/config/defines.inc.php, define('_PS_MODE_DEV_', false); in define('_PS_MODE_DEV_', true); Ai putea incerca sa stergi cache-ul manual.
-
Do you have any browser extensions?
-
[SOLVED] Slow Performance When Customer Have a Lot of Orders
Ress replied to duredo's topic in General topics
Hi, Addresses are loaded in the FrontController class, getTemplateVarCustomer() method, more precisely $addresses = $this->context->customer->getSimpleAddresses(); You can go to the getSimpleAddresses() function, which you find in the Customer class, and put a limit of results on sql.