Jump to content

What code is executed when a user deletes their uploaded photo?


hanny137

Recommended Posts

On the product page - if a user uploads a photo customization, the little X that appears links to the 'productUrl+deletePicture=1'

 

In product.tpl it looks like this:

<a href="{$link->getProductDeletePictureLink($product, $field.id_customization_field)|escape:'html':'UTF-8'}" title="{l s='Delete'}" >
    <img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" class="customization_delete_icon" width="12" height="12" />
</a>

What method/function is being called to delete the picture?

I'm trying to turn this X into an ajax call to appropriately delete the picture without reloading the page so any of the other data the user has entered doesn't get deleted during the reload.

How do I get to that method to change/update it so it works with ajax?

 

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...