Jump to content

Ress

Members
  • Posts

    545
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Ress

  1. You'll find logo path in: your_prestashop/classes/pdf/HTMLTemplate.php, assignCommonHeaderData() function.
  2. Also check in the console, not to have any javascript error.
  3. 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
  4. Can you say the exact page where you want to post? My account page?
  5. 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).
  6. Data is saved in ps_module_carrier. ID Module -> payment module id ID Reference -> carrier id reference (from ps_carrier table)
  7. 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?
  8. 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.
  9. I used this module on a project: https://addons.prestashop.com/en/customer-administration/24352-full-features-groups-pro-with-compare-products.html#overview
  10. 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
  11. What payment modules do you have active?
  12. 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();
  13. 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.
  14. You can use this method to find out the total shopping cart: $with_taxes = true; $total = $cart_object->getOrderTotal($with_taxes, Cart::ONLY_PRODUCTS);
  15. 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.
  16. 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.
  17. 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
  18. Hi, This additional service/product you are referring to, do you want it in the order as an individual product (for stock, invoicing)?
  19. 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.
  20. In Advanced Parameters -> Performance, do you have selected Recompile templates if the files have been updated option?
  21. After you finish the setup, go to Traffic and SEO, and hit a save, to regenerate the htacces.
  22. 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.
  23. Do you have any browser extensions?
  24. 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.
×
×
  • Create New...