Jump to content

Color and image swatches


Recommended Posts

Hello there!

 

I'm new in Laravel and my PHP knowledge is on the basic level. And I got my first task.. I need to create a color palette, where: 

  •  choosing a specific color, the picture changes to the selected color.
As I understand, it is like on Ebay, where costumer can choose the goods color, size and so on.

 

I create 3 tables:

  • 1-> Products -> product_id, product_name
  • 2-> Colors -> color_id, color
  • 3-> products_colors -> id, product_id, color_id, image
To be honest, I don't know with what to start. Are there any materials/resourses/code examples, which could help me build this task?

 

Sorry for my English. 

 

Thank you! :) 

Link to post
Share on other sites
This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.