Inhalte aufrufen

Profilbild

display "in stock" in product list


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 Mark99

Mark99

    Newbie

  • Members
  • Punkt
  • 2 Beiträge

Geschrieben: 22 July 2015 - 12:03

Hi there,

 

I'm seeking a way to customise the product list in a category to display "In Stock" somewhere in the product box? (preferrably below price)

 

At the moment a customer has to click on the specific product details page to view stock status, which is not very quick.

 

Not sure what .cshtml file file deals with the catalogue list?  Would I need to reference @model ProductDetailsModel?

 

 
I've uploaded a pic showing where I'd like to place it.

 

Thanks!

Angehängte Bilder

  • Angehängte Datei  Help1.JPG   70.63K   0 Anzahl Downloads


#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 22 July 2015 - 13:03

It is \SmartStore.Web\Views\Catalog\_ProductBoxList.cshtml. For example add
<div class="pull-right">Hello world</div>
<div class="clearfix">
below clearfix in line 205. The view model is "ProductOverviewModel". The wanted property is probably "StockAvailablity".

Marcus Gesing

Smartstore AG