Jump to content

Carrier always create a new record


Recommended Posts

I just installed 1.5.4.1. When I update a carrier, the carrier ID always increases. I did not create a new one. Looking at the database (ps_carrier), I noticed the record with the previous ID was flagged as deleted. Is this an expected behaviour.

 

I have a weight range of several hundred increaments, is there an easy way of 'importing' into Prestashop rather than going thru the browser ?

  • Like 2
Link to comment
Share on other sites

Andy, I just updated a carrier in PS 1.5.4.1 and it did increment the carrier ID. PS does not provide a method to import weight range. You may take a look in your database, table ps_range_wieght. Looks like it may be possible to do manually as long as you add the ID carrier.

Link to comment
Share on other sites

It does not make sense to assign a new carrier ID on update.

 

I have built a utility to do mass shipping cost addition, but having a moving carrier id requires the tool to get the carrier id dynamically from the database. Carrire ID should not change once created.

Link to comment
Share on other sites

Following the same idea, then shouldn't other entities, e.g. product, do the same thing ? Assign a new product ID on update? Shouldn't shipping info be kept with the past orders.

 

As far as I can see, carrier is the only one that does this (assign a new ID)

Link to comment
Share on other sites

  • 2 months later...

Using PS 1.5.4.1

Canada Post Rates Calculator Version 1.1

 

It seems that whatever I do, I always get "No carriers available for the address"

 

After a uninstall ad new install of the CP module, I noticed that the carrier IDs are not the same on the 

Shipping separator_breadcrumb.png Carriers vs the 2 other pages Shipping separator_breadcrumb.png Price Ranges  and Shipping separator_breadcrumb.png Weight Ranges

Could it be the reason why no carrier is found?

 

HELP!

Link to comment
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...