Inhalte aufrufen

Profilbild

Products


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

#1 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 13 January 2015 - 07:41

I have gone through the code, and this is what I really need to get the site doing. I need to give a backdoor to certain people to post products on the site, they can only post and view products they have posted. Im familiar with aspx pages, but not cshtml. I have been doing a lot of research, but my timelines don't really let me explore the unchartered water of cshtml, is there a way of doing this?



#2 Michael Herzog

Michael Herzog

    SmartStore AG

  • Administrators
  • 3498 Beiträge

Geschrieben: 13 January 2015 - 14:56

Hi,

 

I'm afraid for this requirement you need to make a lot of adaptions and dive deep into the core of SmartStore.NET.

 

Regards,

Michael


Michael Herzog
Smartstore AG


#3 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 13 January 2015 - 15:24

well what I can do Is add aspx pages to the existing structure, my biggest thing is the pictures table, using regular aspx pages, could you help me understand how I would show products in a gridview with the pictures?



#4 Michael Herzog

Michael Herzog

    SmartStore AG

  • Administrators
  • 3498 Beiträge

Geschrieben: 13 January 2015 - 18:21

Sorry. But it's not possible to integrate aspx pages into an mvc project. 


Michael Herzog
Smartstore AG


#5 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 13 January 2015 - 19:22

hi, and thanks for the reply. ok then I guess my question is this, where is the code that inserts the product details into the database, if I can add a extra field(also added to the database schema)named userid(passing who actually made the product listing) I should be able to later show only products from the current logged in user using there where statement. I see this as fisable, but I cant find where the instructions are to insert into the database, what do you think?



#6 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 13 January 2015 - 19:25

like I said I am unfamiliar with the cshtml pages. I am doing a lot of research and am coming along, but time is my enemy here. I know there are controllers to handle user input, and the model connects the database, it is still grey in my head how these work together, I appreciate your help alot



#7 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 13 January 2015 - 19:55

I believe I found it, its the _createorupdate.cshtml? using ajax to insert into the database?



#8 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 13 January 2015 - 21:58

\SmartStore.Web\Administration\Controllers\ProductController.cs::Create (with HttpPost): Create a new product.
\SmartStore.Web\Administration\Controllers\ProductController.cs::Edit (with HttpPost): Update an existing product.
Storing extra data for an entity: Use generic attributes, see IGenericAttributeService.

Marcus Gesing

Smartstore AG


#9 acousticelectric

acousticelectric

    Benutzer

  • Members
  • 25 Beiträge

Geschrieben: 14 January 2015 - 00:49

ok great, I will take a look and get some stuff done, thank you for your reply