Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete photos and lignbox (it's not a question) #357

Closed
LusenkoSasha opened this issue Jun 25, 2017 · 2 comments
Closed

Delete photos and lignbox (it's not a question) #357

LusenkoSasha opened this issue Jun 25, 2017 · 2 comments

Comments

@LusenkoSasha
Copy link

LusenkoSasha commented Jun 25, 2017

Understood how to do a photo removal when editing a product for example. And also connected lightbox

image
The first line is responsible for the appearance of the delete button when adding photos

The second line is for adding lightbox (http://lokeshdhakar.com/projects/lightbox2/)
`
I'll give an example with two buttons, if you need two photos for the goods
image

Next, we do a loop in which we check the value input, and if the value is not empty, then we assign our delete button, and also assign the data-lightbox attribute to our lightbox for the href_img class.

image

We finished with the code that will show the photo with the ability to delete it when editing the product

Let's start deleting the photo.
image

We add the code in lfm.js
image

image

image
image

Sorry for my english, wrote through google translate

`

@LusenkoSasha LusenkoSasha changed the title Delete photos and lignbox Delete photos and lignbox (it's not a question) Jun 25, 2017
@streamtw
Copy link
Member

Thank you @LusenkoSasha , we will move this post to the wiki of this package!

@streamtw
Copy link
Member

Done. Wiki is in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants