abinjohnedamanaabinjohnedamana MemberComments: 7 Received thanks: 0 Member since: February 21

I am developing a plugin named "Abandoned Cart Notification". I am going to create a new table "cart_items".

I read this "The suffix for your own database tables is s_plugin. If you use your own tables, the structure must be as follows: s_plugin_MyPluginName"

from https://docs.shopware.com/en/plugin-standard-for-community-store. I am a little bit confused. 

What should be my table name

1) s_plugin_AbandonedCartNotification_CartItems

2) s_plugin_abandonedcartnotification_cartitems

3) CartItems_s_plugin_AbandonedCartNotification

4) cartitems_s_plugin_abandonedcartnotification

Which one is correct?

 

2 Answers

  • DenKon26DenKon26 MemberComments: 74 Received thanks: 6 Member since: August 2015

    Hi,

     

    I think "suffix" should be "prefix" in this context. Its simply a wrong word in the documentation :-)

    I would name the table "s_plugin_abandoned_cart_notification_cart_items"

    Quote
    Accepted Answer
    Thanked by 1abinjohnedamana
  • Michael TelgmannMichael Telgmann ModeratorComments: 937 Received thanks: 273 Member since: June 2014

    Hello,

    what @DenKon26‍ said is correct. I will fix the documentation. It is indeed wrong Smile
    As addition: this is not mandatory to get your plugin work, you could name the tables like you want.

    Best regards from Schöppingen

    cool Michael Telgmann

    Quote
    Accepted Answer
    Thanked by 1abinjohnedamana
  • Accepted Answers

Answers

  • DenKon26DenKon26 MemberComments: 74 Received thanks: 6 Member since: August 2015

    Hi,

     

    I think "suffix" should be "prefix" in this context. Its simply a wrong word in the documentation :-)

    I would name the table "s_plugin_abandoned_cart_notification_cart_items"

    Quote
    Accepted Answer
    Thanked by 1abinjohnedamana
  • Michael TelgmannMichael Telgmann ModeratorComments: 937 Received thanks: 273 Member since: June 2014

    Hello,

    what @DenKon26‍ said is correct. I will fix the documentation. It is indeed wrong Smile
    As addition: this is not mandatory to get your plugin work, you could name the tables like you want.

    Best regards from Schöppingen

    cool Michael Telgmann

    Quote
    Accepted Answer
    Thanked by 1abinjohnedamana
  • abinjohnedamanaabinjohnedamana MemberComments: 7 Received thanks: 0 edited July 18 Member since: February 21

    @Michael Telgmann  If you add some examples or links to the developer guides in the documentation it will be really helpful for developers.

  • Michael TelgmannMichael Telgmann ModeratorComments: 937 Received thanks: 273 Member since: June 2014

    Hey @abinjohnedamana

    a colleague of mine has this tasks already on his Todo list Wink So soon there will be improvements

    Best regards from Schöppingen

    cool Michael Telgmann

    Thanked by 1abinjohnedamana
  • abinjohnedamanaabinjohnedamana MemberComments: 7 Received thanks: 0 Member since: February 21

    Awesome Thumb-Up

Sign In or Register to comment.