Jump to content

Hook custom shipment API


Recommended Posts

Hi Guys,

 

I need to hook a custom shipment API to prestashop cart. The rate calculator should automatically read the weight & dimensions of the product and add the shipment price before proceeding to checkout (Paypal).

 

I am new with Prestashop & Wordpress. I have a good development background in drupal and joomla.

Any idea how to start? Which files should I be working on? How can I read the product related variables (dimensions, etc.).

 

Thanks in advance.

Link to comment
Share on other sites

the "correct" way to do this would be to create a module that extends the CarrierModule class.  The module would be responsible for displaying a Carrier option during checkout, with the correct pricing.  Your best bet would be to review prestashops fedex and ups modules and discover how they accomplish this.

 

Then you can copy various aspects of those modules and alter them accordingly

Link to comment
Share on other sites

Hello @bellini13,

 

Thank you for the suggestion :)

How much time do you estimate it should take considering I have never created a module in Prestashop/WordPress?

 

Regards,

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...