Coder Social home page Coder Social logo

shopware5 / devdocs Goto Github PK

View Code? Open in Web Editor NEW
137.0 48.0 233.0 213.37 MB

Shopware 5 Developers Website

Home Page: https://developers.shopware.com

PHP 41.97% Smarty 2.14% CSS 0.07% HTML 38.15% Shell 0.21% JavaScript 6.24% Less 8.86% Twig 0.91% SCSS 1.46%
shopware php documentation shopware5 hacktoberfest

devdocs's People

Contributors

bcremer avatar buddhacode avatar ddoehring avatar dnoegel avatar hlohaus avatar htkassner avatar janbuecker avatar janpietrzyk avatar jenskueper avatar joshuabehrens avatar klarstil avatar marcelschmaeing avatar mitelg avatar ndzoesch avatar nlubisch avatar oliverskroblin avatar pascalthesing avatar phil23 avatar philipreinken avatar pmuckel avatar shyim avatar simonbaeumer avatar soebbing avatar swdennis avatar t2oh4e avatar taltholtmann avatar teiling88 avatar tiagojsag avatar tobiasberge avatar wolv-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devdocs's Issues

Build custom plugin in Shopware 5.2.6

Hi, how build plugin in shopware 5.2.6?
Build Backend plugin new clear window (page)?
I created plugin aded menu item and when click go to page plugin then show error "Not Found 404 app"

sudo apt-get install nodejs-legacy problem

we shold change this command
sudo apt-get install nodejs-legacy npm
to:
sudo apt-get install nodejs npm

cuz nodejs-legacy install node v4.2 and to complete the grunt installation we need node v4.5 pr above

[shopware-5-cli-commands] command cannot have an empty name

the example at https://developers.shopware.com/developers-guide/shopware-5-cli-commands/ gives me an error:

[Symfony\Component\Console\Exception\LogicException]
  The command defined in "…" cannot have an empty name.

to fix it i had to add setName() to the configure function. but shouldnt shopware do that for us, using the command from <tag name="console.command" command="swagcommandexample:import"/>? or for what else is there "swagcommandexample:import" in the xml file? (fwiw, i removed the "command" attribute from tag, dont see any use for it)

OneToMany associations don't work

The last part covering "OneToMany" associations is not complete and therefor useless. It leaves out the detail window of variants and there is no example code anywhere to be found. Shopware itself never uses the "extend: 'Shopware.store.Association'" code that is given in the tutorial. All questions about this issue on the community board are unanswered. I can manage to display the data of a variant in a detail window, but I can't save it ("Cannot read property indexOf of undefined" in urlAppend method of ext-app.js). How do you manage to get variants to work?

Plugin quick start not working

I have configured shopware 5.1.1 in windows 7 and installed sample plugin shown in shopware doc. But it is not working. I have clear the cache.

java sdk not installed by default

Hello guys. Great work !!! I just had one small issue. whenever I've runned "ant build-unit" i had the problem that tools.jar was not there. I have solved this with just installing Java SDK (sudo apt-get install openjdk-7-jdk). I guess it should have been there at first place.

Add shopware / php matrix for supported version

It'd be great to have a shopware/php matrix for supported php versions for each shopware version.

It could be an table with green ticks/red crosses which shows the support of php versions for each shopware version.

Ioncube supported versions should also be included in the table (deprecated above SW 5.5).

Using _data-directory for Sprite-Icon-Listing

I just saw you've introduced a list of all icons for backend in devdocs/blob/master/source/designers-guide/backend-icons/index.html. Great! 👍

However as a developer I do not want to touch design-related stuff. Would it be an option for you to introduce _data-directory as described in Jekyll-documentation?

If you're interested I could do this initially?

Details not visible at the Order Positions

Hello,
i have an issue with the newest SW Version and the CustomProduct plugin.
Everything works fine except the detail view of the order position.
The add field doesnt show in the details, but the request gets it.

data: [{label: "Set Dämpfungsockel", type: "checkbox", multi: true,…},…] 0: {label: "Set Dämpfungsockel", type: "checkbox",,…} 1: {label: "Länge Kältemittelleitungen 6/10 gebördelt", type: "custom_type",…}

type: "checkbox" is shown but not the custom field.

Address Management Guide not valid for Shopware >= v5.5

In the Address Management Guide (https://developers.shopware.com/developers-guide/address-management-guide/#extending-the-address-form) the following script is given for the FormBuilder Subscriber:

// PluginFolder/Subscriber/FormExtenderSubscriber.php

public static function getSubscribedEvents()
{
    return [
        'Shopware_Form_Builder' => 'onFormBuild',
    ];
}
    
public function onFormBuild(\Enlight_Event_EventArgs $event)
{
    if ($event->getReference() !== \Shopware\Bundle\AccountBundle\Form\Account\AddressFormType::class) {
        return;
    }

    /** @var \Symfony\Component\Form\FormBuilderInterface $builder */
    $builder = $event->getBuilder();

    $builder->get('additional')
            ->add('neighboursName', \Symfony\Component\Form\Extension\Core\Type\TextType::class, [
                'constraints' => [
                    new \Symfony\Component\Validator\Constraints\NotBlank()
                ]
            ]);
}

This will not work in Shopware v5.5 and higher, since the reference given to the $event is no longer the FormType class but the value of the FormTypes block value.

The correct way to check if the correct FormType is addressed by the FormBuilder should therefore be:

if ($event->getReference() !== 'address') {
        return;
}

Swag Controller

Hi,
I just started with Shopware Dev.

I put the SwagController example in /local/frontend ,activated it in the backend, but the following route returns nothing special :

http://shopware.site/frontend/test/index

No Javascript Documentation, no Future

Why the heck using the API from old and slow PHP? It makes no sense, you can write a plugin in PHP which hooks directly...

We need more Javascript snippets, since nowadays Websites are performing better when they using principles like PWA which are mainly powered by client side Javascript.. If Shopware will not provide a documentation which shows some JS Snippets, its not ready for the future of the Web.

Frameworks like Vue.js / Polymer / React / Angular are the way the best user experiences are made. And not a php generated page, which is even not accessible when offline or with poor connection... so please do your homework shopware!

Wrong maths - This doesn't add up

If a single page takes 250ms (milliseconds) to load surely 4 pages would take 1 second, not 1 minute, right?
250ms x 4 = 1000ms = 1s

So 400 page loads would take 100 seconds as opposed to 1h.

image

wrong extjs version documentation linked

shopware 5.4.2 uses extjs 4.1.0 (according to Ext.getVersion('extjs')) but documentation at https://developers.shopware.com/developers-guide/backend-components/basics/ links to http://docs.sencha.com/extjs/4.1.3/#!/api

and apparently extjs removes features even in patch versions!?

http://docs.sencha.com/extjs/4.1.0/#!/api/Ext.container.Container-method-onAdded
onAdded( container, pos )

http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.container.Container-method-onAdded
onAdded( )

ps. the 2 other extjs links on that page also link to the wrong extjs version

extjs links 404

the three extjs doc links in https://developers.shopware.com/developers-guide/backend-components/basics/ are 404

404 Not Found
Code: NoSuchKey
Message: The specified key does not exist.
Key: extjs/4.1.1/index.html
RequestId: 38D5F1773B607998
HostId: yhzi8Hsxok0Y6KiUM/QAPSWxeMOTTsVFOItwXS8cdjh6jbLa8108jBm8oq8ovVpLhBlSQS5CJSU=

i hope this is just temporary, cause 4.1.3 is still there, but we cant trust those cause they break the api even on minor version changes...

'Storefront extension' not working

I downloaded this plug-in and tried to install it in my demo-shop.

I took a look at the server-logs, too:

192.168.56.1 - - [29/Apr/2016:13:18:59 +0000] "GET /backend/login/getLoginStatus?_dc=1461935939526 HTTP/1.1" 200 68 "http://shopware.dev/backend/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36"
192.168.56.1 - - [29/Apr/2016:13:18:58 +0000] "POST /backend/PluginInstaller/installPlugin HTTP/1.1" 200 36 "http://shopware.dev/backend/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36"
192.168.56.1 - - [29/Apr/2016:13:19:00 +0000] "GET /backend/PluginManager/detail?_dc=1461935940121&technicalName=SwagPluginSystem&page=1&start=0&limit=25 HTTP/1.1" 200 484 "http://shopware.dev/backend/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36"
192.168.56.1 - - [29/Apr/2016:13:19:00 +0000] "GET /backend/PluginManager/localListing?_dc=1461935940685&page=1&start=0&limit=20000&group=%5B%7B%22property%22%3A%22groupingState%22%2C%22direction%22%3A%22DESC%22%7D%5D&sort=%5B%7B%22property%22%3A%22groupingState%22%2C%22direction%22%3A%22DESC%22%7D%5D HTTP/1.1" 200 1158 "http://shopware.dev/backend/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36"

I cannot enable the plugin: when I click on the green + symbol, the plugin wents from not-installed to deactivated list.


Shopware Version 5.1 (shopware/shopware@8647bdf)
My vagrant machine:

$ lsb_release -d
Description:    Ubuntu 14.04.3 LTS
$ php --version
PHP 5.6.20-3+donate.sury.org~trusty+1 (cli) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.1-dev, Copyright (c) 2002-2016, by Derick Rethans

My host machine

$ lsb_release -d
Description:    Ubuntu 16.04 LTS

Elasticsearch version mismatch

According to https://github.com/shopware/devdocs/blob/3d3a138829e390afc7ba88fd227629d21a07073a/source/sysadmins-guide/elasticsearch-setup/index.md
only 1.6 is officially supported.
However, according to https://github.com/shopware/shopware/blob/5.1/composer.json#L41 Shopware is running the 2.2 client library.
We successfully ran on 2.3.3 already.

Thus I wonder whether the documentation is just outdated in this case and what is generally considered best practice for the Elasticsearch setup on Shopware 5.1/5.2?

How create or add product from plugin

I am new in shopware , i am creating a plugin that is based on canvas greeting card designing and i want to create product using my plugin , So how to achieve this from plugin ,
Every things are going well in my plugin but i stacked here for the same.
So please share some piece of code or any document that help me to achieve this task.
Thanks
Neeraj

"firstLogin" of customer model is "created_at"

See title. I think that should be noted somewhere, ie. with some example of how to retrieve customers which have been created "after" a specific date.

Thats possible by filtering with the "firstLogin" field of a customer.

("firstLogin" is a bad name for a "created_at" field imho, but thats not the topic here)

Reason: that field name is not very clever in giving away, thats in fact a identifier of when that customer has been created.

I'm talking 5.3.4 here, haven't check other versions.

Sample Plugin SwagPluginSystem is missing a tag

I was trying to figure out why the template extension does not work - the services.xml is missing:
<tag name="shopware.event_subscriber"/>
after
<argument type="service" id="template"/>
in custom/plugins/SwagPluginSystem/Resources/services.xml

it is documented - but missing in the files

Sync Folder

Is there any reason not using sync folders, which are created between host and virtual machine, instead of deploying changes with ftps and phpstorm ?

A question about word-choice issues that reflect in the code base

Resident grammar-nazi checking in :)

I was wondering how word-choice issues should be handled, if they reflect in the code base of Shopware. In case of "articles", the general consensus is, as far as I can observe, to avoid using the word "article", and instead use "product", both in the documentation and in new code. But "articles" are not the only example.

I am aware that changing names of existing classes isn't possible due to compatibility reasons. However, do you think it's reasonable to change references to those classes in the documentation?

One specific example that annoys me a little bit is "listing". In Shopware, almost every list is incorrectly called "listing" (for reference: a listing is usually one entry in a list, for example a job-listing is ein Stellenangebot). I can also imagine, "listing" was chosen due to the fact that list is a reserved keyword in PHP. However, referring to a product-list as "product-listing" in a non-programming context seems wrong to me.

So here is my question: Should terms like these which originate from a wrong word-choice be changed in the documentation? I see three options:

  • Option 1: don't change anything

The Listing-controller class is called Listing and is responsible for the product-listing

  • Option 2: change references in non-programming contexts

The Listing-controller class is called Listing and is responsible for the product-list

  • Option 3: change every reference, but keep names (because we don't want to change code)

The List-controller class is called Listing and is responsible for the product-list

Personally, I prefer option two. What is your stance on that?

Customer filter missing in docs

Is it possible to filter customers, like only get inactive customers?
Its missing in the docs, but its working. (Shopware 5.3.4)

'filter' => [
                            [
                                'property' => 'active',
                                'value' => false
                            ]
                        ]

Its also missing the customer model.

how to use the example jquery plugin

am i blind or does https://github.com/shopware/devdocs/blob/master/source/designers-guide/javascript-statemanager-and-pluginbase/index.md not mention how to use the example plugin?

i see a hint "Automatically binding the plugin to the element using jQuery's data-method"...

or is this doc only for using the example plugin with the statemanager?
where is the documentation on how to use (this example) shopware-exclusive* jquery plugin without statemanager?

*jquery plugin documentation here looks completely different https://learn.jquery.com/plugins/basic-plugin-creation/ so are these two different jquery plugin systems?

Any documentation on how to create plugins/widgets for v5?

The lack of English documentation is one of the major obstacles non german developers face when dealing with Shopware developement.

I was searching for documentation on how to create a widget, integrate it on my plugin and allow admins to include it on any product pages.. However i couldn't find any track except this non working example:
http://community.shopware.com/Eigene-Einkaufswelten-Elemente-erstellen_detail_1459.html
The provided example plugin: Media Widget Example doesn't work on Shopware v5.

It is becoming a frustration for us to develop shopware plugins if there's no documentation and no working examples; we are forced to ask our clients to switch to other good documented shopping systems (Prestashop for example).

Token delivery is very slow

We have deactivated the CSRF protection due to problems in the checkout process. Now we still see a file named https://www.ourdomain.de/csrftoken loaded on every request an with weiting times of half a second.

We are optimizing our pages on speed aspects an this one is a huge drawback. How can we get rid of that csrf call or how can we speed it up?

image

The plugin quick start doesn't work

I followed the steps on the plugin quickstart but I couldn't see the results displayed on the front end.

I switched back and forth the Bar theme and Responsive theme but none of them was able to show the Slogan widget in the frontend.

I even deleted my plugin and used the one you provided but it also didn't work!

I cheked the logs and couldn't see anything suspesious :(

I'm running Shopware 5 on localhost on a windows 7 machine.

Nginx auth proxy not working

Hi @bcremer ,

This is regarding the 2015-03-02-sso-with-nginx-auth_request.md.
In this part of nginx.conf

server {
    ...
    error_page 401 = @error401;
    location @error401 {
        return 302 https://login.example.com;
    }
}

What should login.example.com return and where? How does it tell nginx that user is authenticated and subsequently redirect to staticpage.example.com?

PS : Similar attempt was made in nginx-auth-proxy. But the authentication is not working properly. I spent hours in trying to understand what is going wrong there. This issue contains few details about it. Can you help me in debugging this?

sticky argument for `createGrowlMessage()` not available

Problem

The postMessage API documentation indicates that there is a third argument available for createGrowlMessage() that allows the growl message to be sticky: https://developers.shopware.com/developers-guide/lightweight-backend-modules-api/#postmessage-api-documentation

However the current function definition does not accept such an argument, see:
https://github.com/shopware/shopware/blob/56df57575909854d2dec7fcba07500e27a3361ee/themes/Backend/ExtJs/backend/base/component/Shopware.Notification.js#L535

Instead, createStickyGrowlMessage() works as a separate function all by itself, see: https://github.com/shopware/shopware/blob/56df57575909854d2dec7fcba07500e27a3361ee/themes/Backend/ExtJs/backend/base/component/Shopware.Notification.js#L611

Tested Examples

Suggested in the docs - does not work:

Shopware.Notification.createGrowlMessage(
  'My title',  
  'Some description text.',
   true, // should make the growl message sticky
   false, 
   { 
      btnDetail: { 
        link: 'http://wiki.shopware.de' 
      } 
   }
);

Results in:

bildschirmfoto 2018-06-15 um 13 58 49


Suggested in the source code's comment - does work:

Shopware.Notification.createStickyGrowlMessage({
  title: 'My title',
  text: 'Some description text.',
  log: false,
  btnDetail: {
    link: 'http://wiki.shopware.de'
  }
});

Results in:

bildschirmfoto 2018-06-15 um 13 57 06

[styletile] Update

The styletile has different content for same topic.

Generally it'll be great, if we could know, how the styletile is gerenerated. Tried to catch some bugs, ended with headache :-) Additionally for PRs it'll be more great to have styletile in seperated repo instead of branch.

Icon-Set: https://developers.shopware.com/styletile/components.html#icon-set
Icons: https://developers.shopware.com/styletile/cheatsheet.html#icons

Ping @mitelg @klarstil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.