Jump to content

Recommended Posts

Hello all,

 

I signed up a new shipping carrier to my store but I have over 1000 items in store, what do I do to have the new carrier showing up with the old one without editing each product to unselect all/select all under shipping?

Thanks

Share this post


Link to post
Share on other sites

My problem was when I entered the items we selected the only carrier that we had at the time, so the new carrier is not selected for those items.

Stupid error we made, should have not selected so new carriers are available for the products :(

Share this post


Link to post
Share on other sites
  • 2 years later...

Hello,

i have the same problem...

it's possibile delete all carrier or add in all production another carrier?

use prestashop 1.6.1.3

 

see the attachment.

 

Thanks and sorry for my bad english

post-891144-0-60061500-1449249916_thumb.jpg

Share this post


Link to post
Share on other sites
  • 1 month later...

You can run a query like
 

 
            $data = array(
                'id_product' => (int)$id_product,
                'id_carrier_reference' => (int)$id_carrier,
                'id_shop' => (int)$id_shop
            );
         Db::getInstance()->insert('product_carrier', $data, false, true, Db::INSERT_IGNORE);
 
 
I didn't test it, but anyway make sure you replace variables. Backup the table before
  • Like 1

Share this post


Link to post
Share on other sites

@bala.k: Then the short answer is: you can't.

Super - Why dont you guys do something bout that - if I have 5000 Products of which 2000 are available in Country X where I have tied up with a carrier of that country - What do I do?? Opening all 2000 products and adding the carrier - Does not seem logical solution and its very time consuming. Adding to that I am not a programmer..Appreciate if some one develops a patch or something. Thanks

Share this post


Link to post
Share on other sites

Super - Why dont you guys do something bout that - if I have 5000 Products of which 2000 are available in Country X where I have tied up with a carrier of that country - What do I do?? Opening all 2000 products and adding the carrier - Does not seem logical solution and its very time consuming. Adding to that I am not a programmer..Appreciate if some one develops a patch or something. Thanks

You? Who? I am not in the prestashop team, otherwise I would.

If you are happy to pay for a premium addon, it's another story, since "we guys" are contributors.

 

@Tuffnet: I will hopefully come up with a tutorial one of these days

Edited by Nemo1 (see edit history)

Share this post


Link to post
Share on other sites

Hi

 

i solve my own problem with dumbing ps_product_carrier.sql and .csv

then removed dublicates from colum1 and then chanced that colum2 where are carrier id to new.

then save it 2.csv

open ps_product_carrier.sql with notepad++ added that 2.csv with copypaste + little edit.

then added it back to mysql.

Hopely some day there will be easyer to add bulk carrier

Share this post


Link to post
Share on other sites

Hi

 

i solve my own problem with dumbing ps_product_carrier.sql and .csv

then removed dublicates from colum1 and then chanced that colum2 where are carrier id to new.

then save it 2.csv

open ps_product_carrier.sql with notepad++ added that 2.csv with copypaste + little edit.

then added it back to mysql.

 

Hopely some day there will be easyer to add bulk carrier

mmm, Thanks Will try this out.

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 3 months later...
  • 3 months later...

Thanks a lot, it's a time saver.

If someone is looking for a simple solution to remove any existing carrier from products (in order to make all carrier available for shipping selection), you just have to empty the product_carrier sql table.

YOURDBPREFIX_product_carrier

  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 2 months later...

Hello nemops,

 

Sadly no, the configuration is broken, I can't select any category  as you can see on this picture :

 

post-603134-0-18977700-1481311250_thumb.jpg

 

I also tried to add a carrier to a product with the product number and I got this error message :

 

[PrestaShop] Fatal error in module AdminController:
Class name must be a valid object or a string

 

Can you take a look to make it 1.5 compatible ?

Share this post


Link to post
Share on other sites
  • 4 months later...
  • 3 months later...
  • 2 months later...
  • 3 months later...

Hi Nemo, 

Working perfect. Can I enquire if it's possible that when I assign a carrier for a specific product using your module, it will not be available for other products? I am facing this issue, and I am unsure how to overcome it at all. No features or configuration to achieve this.

Share this post


Link to post
Share on other sites
  • 5 months later...

very usefull module, should be great to add a new field like: ADD/REMOVE so you can choose what kind of operation you need to do in a partocular product or category, it will be super easy to remove carriers too :)

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Thank you NemoPS.

Sadly I am on PS 1.5.4.1 and I can't upgrade because of tons of core modifications he he.

I suppose you can't adapt the module for version under 1.5.5 ?

Share this post


Link to post
Share on other sites
  • 2 months later...

Well not as it is, you'd have to edit the method and loop through an array instead of using a single value (it's enough to set the multiple attribute for the select box, then edit the postProcess method

Share this post


Link to post
Share on other sites
On 10/20/2018 at 4:31 PM, NemoPS said:

Well not as it is, you'd have to edit the method and loop through an array instead of using a single value (it's enough to set the multiple attribute for the select box, then edit the postProcess method

Thank you Nemo, unfortunately my php programming capacities are not enough to implement your suggestion.

 

Share this post


Link to post
Share on other sites
  • 3 months later...
8 hours ago, NemoPS said:

The site is available again :)

I have one question though. Is there (or will be) a version of this module which allows to add carriers by manufacturer or supplier? 

Share this post


Link to post
Share on other sites
  • 9 months later...
  • 1 month later...

I changed the association of products and carriers directly in db, but the changes I made do not appear in the store. The information in the table is correct. How do I get prestashop to update the data I entered directly in db? It seems that this is a recurring problem.

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...
  • 3 weeks later...
On 3/24/2020 at 5:36 PM, dolec said:

I dont see all carriers despite they are active some help?

Have you added specific configurations in carrier like weight, amount, etc.? If yes then check those products which suitable your configuration to particular carriers.

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 3 weeks later...
  • 1 year later...

My advice is to remove all product level associated shipping.  PS does not have central admin to view or control.  

Do not use product level carriers.  Blame PrestaShop for not having a central admin, same with product level module associations, no central control panel.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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