We have bottle shots on the homepage that are just the same two bottles repeating themselves over and over. How can I change this to include all other wines.
Asked
Active
Viewed 39 times
1 Answers
3
Ah, the familiar sight of repeating bottles on the homepage. It’s like déjà vu all over again. No need to worry, it sounds like just a “case” of forgotten placeholder code lingering around.
Here’s how I suggest you fix this:
- Figure out where the code for displaying the bottles on the homepage is located.
- Search for any placeholder code that is causing the same two bottles to repeat. This could be hardcoded references to specific bottles or image URLs.
- Replace with a query to fetch and output available wines.
- Test the homepage to ensure that all bottles are displayed correctly.
- Monitor the homepage to ensure that new wines are shown when added. Bonus points for adding automated tests that verify this!
Ben Croker
- 7,341
- 26
- 55