How can I get properly the remove from cart URL in each $accessories item ? I tried from the template :
{foreach from=$accessories item=accessory}
{assign var="deleteURL" value=Link::getRemoveFromCartURL($accessory.id_product,$accessory.id_product_attribute,null)}
{/foreach}
But I get an error :
Runtime Notice: Non-static method LinkCore::getRemoveFromCartURL() should not be called statically
Which controller should I modify to access to remove from cart URL with $accessories ?
In controllers/front/ProductController.php, edit the function initContent.
to
EDIT : You should not edit the controller directly, but creating an override in override/controllers/front/ProductController.php. If the file is not created yet, do it yourself.