Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Modify Using My Changes Adddon Rate Topic   - - - - -

 

Posted 24 November 2021 - 10:02 AM #1

Hi,
Im triying to modify the file " app > Controllers > frontend > checkout.php"

 

But when i added the above path & checkout.php - it doesnt work

 

Could you please let anyone know how can i make it work please

 

Thank you in advance



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22363 posts

Posted 24 November 2021 - 02:00 PM #2

You should use checkout.pre.php or checkout.post.php controller


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 

Posted Yesterday, 08:20 AM #3

You should use checkout.pre.php or checkout.post.php controller

Hi thank you for your help
but im not sure that i have mentined right,

Trying to modify the file "checkout.php" using addon called "my changes"
so if i want to make it work what path & file name do i have to add?

I have added below path and it wont work

design/backend/templates/addons/my_changes/overrides/app / Controllers / frontend / checkout.php



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22363 posts

Posted Yesterday, 02:05 PM #4

You cannot override controller, only template

 

To extend the controller use

 

app/addons/my_changes/controllers/frontend/checkout.pre.php

 

or

 

app/addons/my_changes/controllers/frontend/checkout.post.php

 

To override certain template use

 

design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/checkout.tpl

 

More details can be found in the official documentation for developers


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)