13thjoker Posted October 31, 2017 Share Posted October 31, 2017 (edited) So my code onclick = "{CartControllerCore::delete($product.id)}" Why does it go off on onload. Is there a way to not let this happen. How do i fix this? This is on cart-detailed-product-line PS 1.7.2.3 local Edited October 31, 2017 by 13thjoker (see edit history) Link to comment Share on other sites More sharing options...
13thjoker Posted October 31, 2017 Author Share Posted October 31, 2017 I need it to do that function on a click. But JS cant handle PHP functions. Anyone got an idea on how to execute this static function upon clicking. Link to comment Share on other sites More sharing options...
13thjoker Posted November 1, 2017 Author Share Posted November 1, 2017 Through JS wont work since i need to use a php function. Now im running out of ideas. When the input gets pressed it just needs to execute this function : {CartControllerCore::onclick($product.id)} Please help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now