Inhalte aufrufen

Profilbild

How to add field on plugin.SmartStore.ShippingByWeight


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

#1 arifin.wm

arifin.wm

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 33 Beiträge

Geschrieben: 08 September 2016 - 09:11

Dear All,

 

I'd like to add field stateprovince and city in plugin ShippingByWeight, but the migration could not refer to that plugin.

I open the plugin in the separate visual studio, it could not work well since too many dependency to the smartstore.web.framework.

 

I've added the migration in the solution (refer to smartstore.data), but the migration data could not read what I've changed in the shippingweight model. Then I've tried to add it manually, but it seems could not update well since I got an error on save event (regarding migration). Finally, I've restored all my customization in plugin smartstore.shippingbyweight, and the result was my web totally crash :(. Luckily I have tuesday backup.

 

Please advise how to add field in plugin.

 

Thanks

 

Best Regards,

Afin



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 08 September 2016 - 12:13

Please follow these instructions and don't fortget to set the solution configuration to EFMigrations.


Marcus Gesing

Smartstore AG


#3 arifin.wm

arifin.wm

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 33 Beiträge

Geschrieben: 09 September 2016 - 02:50

Hi Marcus,

 

I've changed the plugin configuration to EFMigrations and modified the target manually in project file, but I still got below error.

 

Could not load assembly 'SmartStore.ShippingByWeight'. (If you are using Code First Migrations inside Visual Studio this can happen if the startUp project for your solution does not reference the project that contains your migrations. You can either change the startUp project for your solution or use the -StartUpProjectName parameter.)

 

Then I've tried to change the default startup project to the ShippingByWeight, but the result was the same.

 

Please advise

 

Thanks

 

best REgards,

Afin



#4 arifin.wm

arifin.wm

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 33 Beiträge

Geschrieben: 09 September 2016 - 06:54

Hi Marcus,

 

I got it, I need to rebuild all solution first before running the migration.

 

Thanks

 

Best Regards,

Afin