zellenak Posted April 2, 2016 Share Posted April 2, 2016 Hello, I have got about 1000 products in Prestashop and I have only one CARRIER (Own delivery). But now I want to add second CARRIER to my shop. Can you tell me any easy way, how I can add this second CARRIER to all products in my shop? Thank you. Link to comment Share on other sites More sharing options...
endriu107 Posted April 2, 2016 Share Posted April 2, 2016 (edited) Hi, in your shop panel go to Shipping > Carriers > Add new carrier. If you use module like ship to pay make sure it have right configuration. Edited April 3, 2016 by endriu107 (see edit history) Link to comment Share on other sites More sharing options...
zellenak Posted April 8, 2016 Author Share Posted April 8, 2016 Hi, in your shop panel go to Shipping > Carriers > Add new carrier. If you use module like ship to pay make sure it have right configuration. It is ok, but I dont know, how I can apply new carrier to all of products. When I create new carrier, this carrier isn´t applied for all products, that I have on the web. Thank you for reply. Link to comment Share on other sites More sharing options...
endriu107 Posted April 8, 2016 Share Posted April 8, 2016 In standard new carrier is apply to all product. Link to comment Share on other sites More sharing options...
endriu107 Posted April 8, 2016 Share Posted April 8, 2016 But, if your products are assigned only selected carriers when the new carrier will not add to such products automatically. Link to comment Share on other sites More sharing options...
zellenak Posted April 8, 2016 Author Share Posted April 8, 2016 But, if your products are assigned only selected carriers when the new carrier will not add to such products automatically. Yes, my products are assigned only selected carriers. Please, exist any method, how I can add new carrier for all products at one time? Link to comment Share on other sites More sharing options...
endriu107 Posted April 8, 2016 Share Posted April 8, 2016 There is no easy way to do this, you can do it in database. At first select all id product and update table ps_product_carrier with value all id product, id carrier and id shop. Link to comment Share on other sites More sharing options...
01generator Posted July 6, 2018 Share Posted July 6, 2018 (edited) $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'product`'; $results = Db::getInstance()->executeS($sql); foreach ($results as $key => $result) { $insert = array( 'id_product' => (int) $result['id_product'], 'id_carrier_reference' => (int) 33, 'id_shop' => (int) 1, ); Db::getInstance()->insert('product_carrier', $insert); } Where 33 is the id of the carrier. Careful if you have multishop. This code you can enter it in a module at the first lines of getContent() method and click on configure button of the module. Careful to run it only one time!!! Careful how to use this code!!! You have been warned and yes I know it is old post but I run into it from google so another one might end up here Edited July 6, 2018 by 01generator (see edit history) Link to comment Share on other sites More sharing options...
MaakMijnWitgoed Posted June 6, 2019 Share Posted June 6, 2019 (edited) I used a free module for this (just minutes ago and I did found it on this forum also 😉 ) : http://store.nemops.com/free-modules/43-carrier-assigner-free-module.html#.XPmmVogzZjH (I'm not related to the developer in any way, just happy with his coding!) Edited June 6, 2019 by MaakMijnWitgoed (see edit history) Link to comment Share on other sites More sharing options...
Niels_Verhoeven Posted June 19, 2019 Share Posted June 19, 2019 (edited) When I try to add a new carrier, the field Transit Time is missing. in code, it seems to be set to display: none. Changing that, doesn't help, because I get an error at that moment. Edited June 19, 2019 by Niels_Verhoeven (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now