The decrease in total motorized net sales of 23.9% compared to the prior-year quarter resulted from a 36.2% decrease in unit shipments and a 12.3% increase in the overall net price per unit due to the impact of changes in product mix and price. According to statistics published by RVIA, for the three months ended October 31, 2018, combined motorhome wholesale unit shipments decreased 16.9% compared to the same period last year.
The increase in the overall net price per unit within the Class A product line of 16.2% was primarily due to a shift in the concentration of sales toward the generally larger and more expensive diesel units from the more modestly-priced gas units compared to the prior-year period. The increase in the overall net price per unit within the Class C product line of 5.7% was primarily due to the net impact of product mix changes and selective net price increases. The increase in the overall net price per unit within the Class B product line of 6.4% is primarily due to the introduction of a new, higher-priced model and more option content per unit in the current-year period.
Cost of products sold decreased $115,740 to $386,968, or 89.7% of motorized net sales, for the three months ended October 31, 2018 compared to $502,708, or 88.7% of motorized net sales, for the three months ended October 31, 2017. The changes in material, labor,freight-out and warranty costs comprised $113,252 of the $115,740 decrease due to the decreased sales volume. Material, labor,freight-out and warranty costs as a combined percentage of motorized net sales increased to 85.2% for the three months ended October 31, 2018 compared to 84.8% for the three months ended October 31, 2017. This increase in percentage was primarily the result of an increase in the warranty cost percentage. Total manufacturing overhead decreased $2,488 with the volume decrease, but increased as a percentage of motorized net sales from 3.9% to 4.5%, as the decrease in production resulted in higher overhead costs per unit sold.
Motorized gross profit decreased $19,673 to $44,230, or 10.3% of motorized net sales, for the three months ended October 31, 2018 compared to $63,903, or 11.3% of motorized net sales, for the three months ended October 31, 2017. The decrease in gross profit was due primarily to the 36.2% decrease in unit sales volume noted above, and the decrease as a percentage of motorized net sales is due to the increase in the cost of products sold percentage noted above.
Selling, general and administrative expenses were $21,252, or 4.9% of motorized net sales, for the three months ended October 31, 2018 compared to $26,708, or 4.7% of motorized net sales, for the three months ended October 31, 2017. The $5,456 decrease was primarily due to decreased motorized net sales and motorized income before income taxes, which caused related commissions, bonuses and other compensation to decrease by $4,669. In addition, legal, professional and related settlement costs decreased $984.
Motorized income before income taxes was $21,712, or 5.0% of motorized net sales, for the three months ended October 31, 2018 compared to $37,586, or 6.6% of motorized net sales, for the three months ended October 31, 2017. The primary reason for this decrease in percentage was the impact of the increases in the cost of products sold and selling, general and administrative expense percentages noted above.
Financial Condition and Liquidity
As of October 31, 2018, we had $224,921 in cash and cash equivalents compared to $275,249 on July 31, 2018. The components of this $50,328 decrease in cash and cash equivalents are described in more detail below, but the decrease was primarily attributable to capital expenditures of $34,453, and cash used in operations of $15,834.
Working capital at October 31, 2018 was $525,191, which included a $42,555 foreign currency forward contract liability, compared to $542,344 at July 31, 2018. This decrease is primarily attributable to the impact of the foreign currency forward contract liability, partially offset by seasonal increases in accounts receivable and the increase in inventory due to increased production lines. Capital expenditures of $34,453 for the three months ended October 31, 2018 were made primarily for land and production building additions and improvements, as well as replacing machinery and equipment used in the ordinary course of business.
We strive to maintain adequate cash balances to ensure we have sufficient resources to respond to opportunities and changing business conditions. We believe ouron-hand cash and cash equivalents, and funds generated from continuing operations, along with funds available under the current revolving asset-based credit facility, will be sufficient to fund expected future operational requirements for the foreseeable future. As discussed in Note 16 to the Condensed Consolidated Financial Statements, in September 2018 we obtained financing commitments for an asset-based credit facility and a term loan to fund the pending acquisition of Erwin Hymer Group. Upon closing of this pending acquisition, these new financing commitments will replace the current asset-based facility obtained in conjunction with the Jayco acquisition, and any remaining unamortized facility fees related to the current facility, which totaled $4,186 at October 31, 2018, will become fully amortized when the existing facility is replaced.
Our main priorities for the use of current and future available cash generated from operations include funding our growth, both organically and through acquisitions, maintaining and growing our regular dividends over time, reducing indebtedness incurred in connection with the acquisition of the Erwin Hymer Group as discussed in Note 16 to the Condensed Consolidated Financial Statements and repurchasing shares under the share repurchase program as discussed in Note 14 to the Condensed Consolidated Financial Statements. Special dividends or strategic share repurchases, as determined by the Company’s Board, will also continue to be considered.
24