FlyerTalk Forums - View Single Post - How do I find out what the fare code is?
View Single Post
Old Apr 7, 2012 | 8:10 am
  #3  
perthite
All eyes on you!
20 Years on Site
 
Join Date: Feb 2004
Location: Perth, WA, Australia
Programs: QF Gold, VA Plat, IHG Plat Amb, LCAH Gold, Hilton Diamond
Posts: 3,934
If you want to do it before booking, you will still need to interrogate the HTML, although it is a bit more complicate. Basically you need to identify the cell in the HTML that you are looking at, and look at the value that the radio button will return. An example is below, and the part you are after is "0~S~SZDSVI~1200~~2~X|DJ~ 725~ ~~MEL~06/30/2012 06:25~OOL~06/30/2012 08:30~"


(This is from a Saver (Product class 'SV'))

The S and SZDSVI indicates an S fare.

Code:
<td class="fareCol4" productClass="SV">
  <input class="normalFareInput" id="ControlGroupScheduleSelectView_AvailabilityInputScheduleSelectView_RadioButtonMkt1Fare4" type="radio" name="ControlGroupScheduleSelectView$AvailabilityInputScheduleSelectView$market1" value="0~S~SZDSVI~1200~~2~X|DJ~ 725~ ~~MEL~06/30/2012 06:25~OOL~06/30/2012 08:30~" requiredError="Please select a fare."><span class="normalFareContainer">$239.00</span></td>
perthite is offline