Jump to content

Simple click a size and then click add to cart question


Recommended Posts

 <form action="" method="post" class="add-to-cart-form buying-tools">
      <input type="hidden" name="action" value="addItem"/>
      <input type="hidden" name="lang_locale" value="en_US"/>
      <input type="hidden" name="country" value="US"/>
      <input type="hidden" name="catalogId" value="1"/>
      <input type="hidden" name="productId" value="10060"/>
      <input type="hidden" name="price" value="65.0"/>
      <input type="hidden" name="siteId" value=""/>
      <input type="hidden" name="line1" value="Blue Dress"/>
      <input type="hidden" name="passcode" />
      <input type="hidden" name="sizeType" value=""/>

      <div class="exp-pdp-size-and-quantity-container">
        <div
            class="exp-pdp-size-container exp-pdp-dropdown-container nsg-form--drop-down">
          <a class="nsg-form--drop-down--label nsg-grad--light-grey" >
            <span class="js-selectBox-label">SIZE </span>
            <span class="js-selectBox-value nsg-form--drop-down--selected-option"></span>
          </a>
          <select name="skuAndSize"
                  class="nsg-form--drop-down exp-pdp-size-dropdown exp-pdp-dropdown "
                  data-tooltiptext="Select a Size" required="required"
                  data-error="Select a Size"  data-has-fixed-ancestor="true">
            <option class="exp-pdp-size-not-in-stock" value=""></option>
                        
                          
                <option class="exp-pdp-size-not-in-stock selectBox-disabled"
                      name="skuId"
                      value="10060:7"
                      data-label="(7)">
                                  7
                </option>
                          
                <option
                      name="skuId"
                      value="10060:7.5"
                      data-label="(7.5)">
                                  7.5
                </option>
                          
                <option
                      name="skuId"
                      value="10060:8"
                      data-label="(8)">
                                  8
                </option>          
</select>      

<div class="exp-pdp-save-container">
        <button id="buyingtools-add-to-cart-button" type="submit" class="js-add-to-cart add-to-cart nsg-button nsg-grad--blue" >
                    
                        ADD TO CART
                    
        </button>

The above is the html code for choosing a size and then clicking add to cart. I want to click size 8 in the drop down menu and then click add to cart. I see that the button id for the add to cart is "buyingtools-add-to-cart-button". How do I simulate a click on this button?

 

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...