I'm new here and I'm really sorry if the subject of this ticket do not have to be at this place.
I'm working on a PrestaShop website that use SMARTY. How could I display some products with the choice that a customer done in a select
tag?
Can I do this with just PHP + HTML or do I need Javascript?
Here is my code :
<div id="conseil">
<h1 class="page-conseil">Page de conseil pour PC & PC portable Gamer</h1>
<h2>Dites nous quel style de Gamer vous ètes, nous nous occupons du reste</h2>
<div class="selection-gameplay">
<p class="select-gameplay">Sélectionnez le type de joueur qui vous correspond</p>
<select class="gameplay">
<option value="1" selected="selected">Sélectionnez</option>
<option value="1">Casual (de temps en temps)</option>
<option value="1">Normal (1 à 2h/jour)</option>
<option value="1">Régulier (2 à 4h/jour)</option>
<option value="1">Hard Core (>4h/jour)</option>
</select>
<p class="select-gameplay">Sélectionnez vos types de jeux</p>
<select class="game">
<option value="1" selected="selected">Sélectionnez</option>
<option value="1">MOBA & FPS peu gourmand (Counter Strike, LOL, DOTA, Heroes Of The Storm)</option>
<option value="1">MMORPG (WOW, Blade and Soul), FPS (type overwatch, battlefield 3)</option>
<option value="1">FPS poussé (Battlefield 1), Aventures</option>
<option value="1">Tout en Ultra !</option>
</select>
</div>
<div class="validation-btn">
<button type="button" name="submit" class="validation-game">
<span>Valider</span>
</button>
</div>
</div>
I need to display 3 products that's correspond to the choice of the customer in select when he will hit the validate button.
My PHP's knowledge is not really high, if someone can guide, I don't want especially the answer just a way where I can work on it.
Thanks in advance.
</div>