Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8232387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:49:19+00:00 2026-06-07T17:49:19+00:00

6.2 community edition to develop an apparel site where each product is available in

  • 0

6.2 community edition to develop an apparel site where each product is available in various sizes, hence all products are added as configurable products.
Tshirt size is a required attribute and is set as a dropdown with its first value as Select A Size.
When add to cart is clicked from the product page, whether this attribute is selected or not is rightly checked.
I have also added a ADD TO WISHLIST button to the product view page. But add to wishlist does not check the required field – attribute set.
It just directly adds the configurable product to wishlist without its required attribute size.

QS: How do i make sure that like ADD TO CART, the add to wishlist button first checks whether or not the Tshirt size is selected, and if selected only then go and add it to wishlist. Otherwise, give an error …. like in the case of Add To Cart that the Tshirt Size is required..

thanks
Moody

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:49:21+00:00Added an answer on June 7, 2026 at 5:49 pm

    Navigate to /app/design/frontend/<YOUR_PACKAGE>/<YOUR_TEMPLATE>/catalog/product/view/addto.phtml and change productAddToCartForm.submitLight to productAddToCartForm.submit. The full line is:

    <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
    

    Change it to:

    <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submit(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Magento store on 1.5.0.1 Community Edition which uses configurable products with
I'm using Magento Community Edition ver. 1.6.2.0. I’m trying to add a Simple product
I wrote a script for importing products in Magento community edition 1.5.10 from CSV
I am a big fan of jetbrains products, and am an intellij (community edition)
I develop my store in magento community edition 1.5.0.1. I need a Email template
I've set up a B2B site powered by Magento 1.4.2 community edition. Occasionally, customers
VoltDB's web site shows that the community edition supports full ACID (which includes the
I'm using Intellij IDEA Community Edition for IDE, and I like it a lot.
SCENARIO: Given that a model called Edition has its community feature enabled I want
I am currently using the community edition of jasperReports Server 4.1.0 build 20110626_0015. basically,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.