Jump to content

Add script to class/Cart.php


brandonc503

Recommended Posts

near line 1222 in classes/Cart.php i need to insert sql querys and have no idea how with smarty.

 

1st $cart->id_carrier query for ps_carrier.name

2nd $cart->id_address_delivery query for ps_address.address1 ps_address.address2 ps_address.postcode ps_address.city

3rd get cart/product dimentions

 

i will use this info to calculate $shipping_cost.

 

could i write the php in seperate file then include it some how..? that way i can do php script i know without smarty then just use it to = $shipping_cost

Edited by brandonc503 (see edit history)
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...