Jump to content

New Custom Field to the product information and shipping restriction.


wilebaldo

Recommended Posts

Hello I have a little complicated question, the case is I try to add a new field I need for the products and with this field I try to make some restrictions for the carrier shipping options.

Prestashop for shipping information have multiple options like (Width, Height, Depth, Weight, additional cost), and in the carrier I have the option to make some restrictions with this options as, different Weight different shipping price. or Make some carrier working with a "maximum (Width, Height or Depth), until here is not problem.

Now in the product options more  specific on combinations I have the options to change the impact on Weight and this impact is working with the restrictions on the Carrier, sample:

 

I have 2 Carriers (FedEx & Freight) the firs one the maximum shipping weight is 150 lb and I make on the restrictions; now in the product combinations I have one product with 3 combinations the smaller weight is 100 lb on the first to combinations because is change in color only, but the third combinations is a change of the size and that have a impact on the weight and the new weight is 150 lb, all this is ready on prestashop and everything is working perfectly.

 

The case is I need a complete new restriction and information called "GRITH"  this new informations I need restriction similar to the weight if is more than 160 on GIRTH must to use different carrier same as the weight, I ready add this field to the correspond tables, for the shipping, and product, combinations etc. I modify several files TLP, CSS, JS and everything is looks working OK except for one little thing the restrictions over 160 on girth is working, but with the combinations if I make a impact on GIRTH changing and saved the information on the correspond table, but is not reflected on the carrier options.

 

I use the same tow carriers as before, I have the restrictions if the Product is over 160 on GIRTH don't use FedEx, and if is single item is working, but if is a combinations is not, same as before I have one product with 150 on GIRTH and the combinations is impact and the new GIRTH is 170, still showing the carrier restriction, if I make on reverse make a high GIRTH as principal 170, and the impact is on negative and the new GIRTH is 150 is not showing the FedEx option as carrier.

Some one know if is any other file to change for all this restrictions? I make a list with all the files I have to modify to this is working, and some screenshots.

 

- AdminCarrierWizardController.php

-AdminProductsController.php

-Carrier.php

-Combination.php

-combinations.tpl

-Product.php

-Product.js

-attributes.js

 

on the database I added the field on this tables:

-_product

-_product_attribute

-_product_attribute_shop

-_carrier

-_attribute_impact

Shipping information.jpg

Impact on Girth.jpg

Impact on Girth modifing.jpg

Carrier Restriction.jpg

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