Jump to content

t-shirt default size


Recommended Posts

Dear users,

 

i'm inserting products in a catalog,

 

the products are t-shirts who can have 4 sizes (s, m, l, xl), i put that in combinations and all is right, but when i visit the products in front office it puts a default size (M).

 

Is there any way to show product without a default size, and if user forget to select it, system will alert them.

 

thanks your attention.

Link to comment
Share on other sites

In your product.tpl file, look for this bit of code:

 

<select name="group_4" id="group_4" onchange="javascript:findCombination();$('#wrapResetImages').show('slow');;">
	   <option value="23" title="L">L</option>
	   <option value="22" selected="selected" title="M">M</option>
	   <option value="21" title="S">S</option>
	   <option value="24" title="XL">XL</option>
	 </select>

 

And replace it with

<select name="group_4" id="group_4" onchange="javascript:findCombination();$('#wrapResetImages').show('slow');;">
	   <option value="23" title="L">L</option>
	   <option value="22" title="M">M</option>
	   <option value="21" title="S">S</option>
	   <option value="24" title="XL">XL</option>
	 </select>

 

This should remove any default value. Unfortunately, I don't have a suggestion off the top of my head as for the email notification if you don't select a size, but I'm sure someone else here on the forums can point you in the right direction on that one. Please let me know if this works for you.

 

-Mike

 

where is the location of this file

Link to comment
Share on other sites

I just tried to add the product to the cart and it seems to be working correctly http://screencast.com/t/CCQ4zXj3

 

Do you still have this issue?

 

 

Dear Tomerg3

 

yes, we can add product to the car, but my problem still existing:

- i had created the combinations for the products, but i don't want the page set a default value for product when i see their details. because people can forget to choose or change the size. do you understand me?

 

thanks for your attention

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...