 
 	# Renders the DOM elements of the Sku Selector
 	render: =>
-		dust.render "sku-selector", @data, (err, out) =>
+		templateName = if @options.modalLayout then 'sku-selector-modal' else 'sku-selector-product'
+		dust.render templateName, @data, (err, out) =>
 			console.log "Sku Selector Dust error: ", err if err
 			@context.html out
 			@update()
-			@hideProductImage() unless @options.showProductImage
-			@hideProductTitle() unless @options.showProductTitle
-			@showBuyButton() if @options.showBuyButton
+			@showBuyButton()
 			@context.trigger('vtex.sku.ready')
 
 	update: =>


# PLUGIN DEFAULTS
$.fn.skuSelector.defaults =
	showBuyButton: false
	showProductImage: false
	showProductTitle: false
	showPrice: false
	showPriceRange: false
	warnUnavailable: false
	selectOnOpening: false
	confirmBuy: false


		if selectableSkus.length == 1
			selectedSku = selectableSkus[0]
			@context.trigger 'skuSelected', [selectedSku]
			if selectedSku.available
				@showBuyButton(selectedSku)
				@showPrice(selectedSku)
			else
				@showWarnUnavailable(selectedSku.sku) if @options.warnUnavailable
				@hideBuyButton()
		else if selectableSkus.length > 1
			@showPriceRange(@data.findPrices(selectableSkus))

	resetDimension: (dimension) =>
		@select.itemDimensionInput(dimension.name)
