Jump to content

add new price of shooping cart


Recommended Posts

hi friends i am new prestashop developer

 

in shooping cart summary page , i need to display the new price below the Total price in mycustom modules how can solve this problem,

which controller override in my custom modules

i can put the image bellow

 

how can solve the problem

post-505872-0-86047600-1367556917_thumb.jpg

Link to comment
Share on other sites

now i don't understand what you exactly expect.

You said that you want to add new field into shopping cart page. In this case you should edit template file of shopping cart. It is located in your theme directory:

 

themes / Your_Theme / shopping-cart.tpl

as i said this is template file of shopping cart section, you can add there own code which will appear in cart page.

if you want to add new filed, just add the code in right place (exactly there where you want to display new field)

 

Moreover, prestashop is based on MVC model, which mean that PHP script isn't located in template files, but in controlles / models. Cart controller is located here: controllers / front / cartcontroller.php

 

if you want to add own php script to the cart, edit controller and pass all variables via smarty to the shopping-cart.tpl.

 

 

to figure out how to deal with all of this - you must know something about smarty / php / object programming / mvc and how prestashop works...

Link to comment
Share on other sites

×
×
  • Create New...