Level 9
I think you are in the wrong place, to post a question on symfony.
Hey guys, i developed e-commerce symfony app.
My question is: If an item has been added to the cart, The date and delivery time of the first product are active for other products.
This is output of product page (empty basket): http://prntscr.com/136rmf2 this is output of another product page after basket filled by one product: http://prntscr.com/136rvbt
This is my twig code:
<div class="row">
{% if baskets.data.hasBasket is defined and baskets.data.hasBasket %}
<div class="col-12 mb-2">
<input type="hidden" name="city_id" value="{{ baskets.data.baskets[0].county.city.id }}"/>
<select name="city_id_temp" class="city select_option" readonly="readonly" disabled="disabled">
<option selected value="{{ baskets.data.baskets[0].county.city.id }}">
{{ baskets.data.baskets[0].county.city.cityName }}</option>
</select>
</div>
<div class="col-12 mb-2">
<input type="hidden" name="county_id" value="{{ baskets.data.baskets[0].county.id }}"/>
<select name="county_id_temp" class="county select_option" readonly="readonly" disabled="disabled">
<option selected value="{{ baskets.data.baskets[0].county.id }}">
{{ baskets.data.baskets[0].county.countyName }}</option>
</select>
</div>
What i wanted to do: If basket filled i dont want to dont being disabled for another product delivery time. How can i fix that?
Please or to participate in this conversation.