by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:51

    shopwareBot on next

    SW-25584 - Fix sorting product … Merge branch 'sw-25584/5.6/fix-… (compare)

  • Aug 09 16:51
    MrTschi opened #2367
  • Jul 30 11:49

    shopwareBot on 5.6

    NTR - Update dependencies Merge branch 'ntr/5.6/phpstan' … (compare)

  • Jul 30 11:47

    shopwareBot on 5.6

    NTR - Run tests against latest … Merge branch 'ntr/5.6/fix-test-… (compare)

  • Jul 29 13:27

    shopwareBot on 5.7

    NTR - Add require for laminas/l… Merge branch 'ntr/5.7/add-requi… (compare)

  • Jul 29 12:58

    shopwareBot on 5.6

    SW-25476 - Fix menu scrolling i… Merge branch 'sw-25476/5.6/fix-… (compare)

  • Jul 28 09:42

    shopwareBot on 5.6

    SW-25548 - Fix content type syn… Merge branch 'sw-25548/5.6/fix-… (compare)

  • Jul 28 09:35

    shopwareBot on 5.7

    SW-25560 - Add support for sql_… Merge branch 'sw-25560/5.7/add-… (compare)

  • Jul 28 09:33

    shopwareBot on 5.6

    SW-25471 - Fix punnycode on IE11 Merge branch 'sw-25471/5.6/fix-… (compare)

  • Jul 27 09:26

    shopwareBot on 5.6

    SW-25523 - Fix permissions in A… Merge branch 'sw-25523/5.6/fix-… (compare)

  • Jul 27 09:20

    shopwareBot on 5.6

    SW-25576 - Fix menu sorting on … Merge branch 'sw-25576/5.6/fix-… (compare)

  • Jul 27 09:19

    shopwareBot on 5.6

    SW-25553 - Improve post message… Merge branch 'sw-25553/5.6/impr… (compare)

  • Jul 27 08:31

    shopwareBot on 5.6

    NTR - Ignore vscode settings Merge branch 'ntr/5.6/ignore-vs… (compare)

  • Jul 23 14:30

    shopwareBot on 5.6

    SW-25542 - Fix theme compile on… Merge branch 'sw-25542/5.6/fix-… (compare)

  • Jul 17 07:56

    shopwareBot on 5.6

    SW-25518 - Improve discounts in… Merge branch 'sw-25518/5.6/remo… (compare)

  • Jul 15 08:18

    shopwareBot on 5.6

    SW-25368 - Support composer 2 Merge branch 'ntr/5.6/support-c… (compare)

  • Jul 14 09:37
    shopwareBot labeled #2334
  • Jul 14 09:37
    shopwareBot unlabeled #2334
  • Jul 14 09:37
    shopwareBot unlabeled #2334
  • Jul 14 09:37
    shopwareBot closed #2334
Silvana iSi
@Lavean
"it can go terribly wrong"
Schwanzerfaust
@Schwanzerfaust
Well if they prefer to have a broken system instead, that's fine
composer update can go terribly wrong, dump-autoload

@Lavean

dump-autoload (dumpautoload)#
If you need to update the autoloader because of new classes in a classmap package for example, you can use dump-autoload to do that without having to go through an install or update.

Additionally, it can dump an optimized autoloader that converts PSR-0/4 packages into classmap ones for performance reasons. In large applications with many classes, the autoloader can take up a substantial portion of every request's time. Using classmaps for everything is less convenient in development, but using this option you can still use PSR-0/4 for convenience and classmaps for performance.

Options
--no-scripts: Skips the execution of all scripts defined in composer.json file.
--optimize (-o): Convert PSR-0/4 autoloading to classmap to get a faster autoloader. This is recommended especially for production, but can take a bit of time to run so it is currently not done by default.
--classmap-authoritative (-a): Autoload classes from the classmap only. Implicitly enables --optimize.
--apcu: Use APCu to cache found/not-found classes.
--no-dev: Disables autoload-dev rules.

They should learn a thing or two about composer

This is the important part
to do that without having to go through an install or update
Schwanzerfaust
@Schwanzerfaust
And if it could really go "terribly wrong" you'd just copy the vendor folder as a backup
tinect
@tinect
Gitter got replaced by Slack. Please use following invite link https://slack.shopware.com to rejoin the awesome Shopware community! https://www.shopware.com/en/news/an-introduction-to-the-shopware-community-slack/
Leitner
@swissmaker_twitter
I have installed Shopware 6 a couple times. But now with 6.2 the install routine does not start running only shows white page. Mean after five successfull installations i don't know what cut be wrong.
in the past we make simple forwarding (301) to the /public/ folder. Now we get error: You should not be able to see this page.
If yes you are missing some important server configuration. For security reasons, all accessible files are located in the /public directory of your Shopware installation.
Please configure your web server to root your domain to the /public directory of this installation.
Leitner
@swissmaker_twitter
Site is https://www.rollstuhl-kaufen.at thanks for any help. we use WHM CENTOS 7.8 xen hvm [cpanel1] v88.0.10. And i don't know how i shut change the forrwarding that it points straight the /public/ folder. I have try to rename the public-html folder which is the root folder in public and put the files from public there and the rest ones higher but it hasn't worked.
xaver
@__xaver_twitter
@swissmaker_twitter you need to set the root folder to public and it is an subfolder in in your web. It means everything else is one directory upwards
Leitner
@swissmaker_twitter
but how i do that? just rename the folder??
bunower
@bunower
Hey Guys,
i have written a Plugin, it subscribes Enlight_Controller_Action_PostDispatchSecure_Frontend_Listing and if its a specific category i ahve a custom template.
i have 2 questions:
  1. how can i get all Products in this category?
  2. how can i populate the products in the listing page, with informations from product detail page?
Schwanzerfaust
@Schwanzerfaust
@bunower Check the list product service, you would add a list product service decorator to add additional information to your product
depending on what you want to do
@bunower
        <!-- This is executed on the listing page -->
        <service
                id="my_plugin.decorator.list_product_service"
                decorates="shopware_storefront.list_product_service"
                class="MyPlugin\Bundle\StoreFrontBundle\ListingPageDecorator"
        >
           <argument type="service" id="my_plugin.decorator.list_product_service.inner" />
            <argument type="service" id="models" /> <!-- add some other services -->
        </service>
you would add this to your services.xml
Schwanzerfaust
@Schwanzerfaust
class ListProductServiceDecorator implements ListProductServiceInterface
{

    /**
     * @var ListProductServiceInterface
     */
    private $coreDecorator;

    public function __construct(
        ListProductServiceInterface $coreDecorator,
    ) {
        $this->coreDecorator = $coreDecorator;
    }

   /**
     * {@inheritdoc}
     * @throws \Exception
     */
    public function getList(array $numbers, Struct\ProductContextInterface $context) {

        $products = $this->coreDecorator->getList($numbers, $context);

        //Add some custom data here foreach product
        foreach($products as $product){
        }
    }

}
@bunower I don't know what have you done, but afaik the list product service is also used in the PDP, so you might want to add all of your logic here, the difference is that on the listing page getList is called, but in the PDP get is called
that should be it
xaver
@__xaver_twitter
@swissmaker_twitter i never used cpanel and not plan to use it
Alexander Tiutiunnyk
@tiutiunnykleasoft
Hi all,
I am developing a payment plugin for Shopware 6,
and found Shopware 6 application system.
My question is: can I develop an application that would add a new payment method and allow it to be processed as if it were a plugin.
Examples that I refer to: Ecwid web-application and Shopify applications
3 replies
djedrzejewski
@djedrzejewski

Hello, we're updating Shpware to 6.2 from 6.1.6, and me got major issue - all template overriding in plugins don't work :x eg. something like this:
```{% sw_extends '@Storefront/storefront/page/product-detail/description.html.twig' %}

{% block page_product_detail_description_content_properties %}{% endblock %}
```
Doesn't seems to work. But when we're creating new blocks in existing templates it seems to be woorking. Can you give me any hint where to look for the solution?

2 replies
omsag
@omsag

Hi @all,

is it possible to call the shop from outside of the local machine if running in the docker dev environment?

From the Linux Server it is possible to curl localhost:8000 and localhost:9998 (hot-proxy), but when we try the domainname example.com:8000 or example.com:9998 we can't access the shop.

We tried using apache2 as a reverse-proxy which worked fine for proxying localhost:8000 to example.com:80. But the hot-proxy has links set to example.com:9998 and we cant proxy to the same port number, because its already in use

10 replies
Lukas Kahwe Smith
@lsmith77
FYI the SSL certificate on https://shopware.storefrontcloud.io/ seems to be invalid
princewebkul
@princewebkul
Hello @all,
i want to upload image through url , is it possible please let me know .
Thanks
muhkuh2005
@muhkuh2005

Gitter got replaced by Slack. Please use following invite link https://slack.shopware.com to rejoin the awesome Shopware community! https://www.shopware.com/en/news/an-introduction-to-the-shopware-community-slack/

you shouldn't expect anyone to continue reading here :0

Schwanzerfaust
@Schwanzerfaust
Well, it's not like anyone read anything here either
Art
@ArtNushi_twitter

Hello, I need to get all subcategories of a category, im only getting the child count but not the array of child elements, if someone could help, I would appreaciate so much!

My request url:
http://localhost:8000/sales-channel-api/v1/category/b791476ef1984ed987d973dc0245ad44

Azam Alvi
@azamalvi
I am working on Shopware 5, and no idea if I am on right place. I have issue related to my site.
Right now google insight shows 55-60 for Mobile version and 85-90 for Desktop. I want to increase my Mobile percentage. How can I increase it?
Michael Telgmann
@mitelg
@ArtNushi_twitter @azamalvi please be aware, that we moved to slack. check the channel description :blush:
xaver
@__xaver_twitter
@azamalvi you need to get rid some of the JS/CSS. 50-60 mobile isn't that low if you compare it to shopware showcases
Azam Alvi
@azamalvi
@__xaver_twitter thanks for your response. I checked those css/js coming from web/cache folder how can delete the web/cache files.
princewebkul
@princewebkul
Hello Team,
Is there any library for fetching data from XLS file .
please let me know i am waiting for your response.
Thanks.
xaver
@__xaver_twitter
@azamalvi less - you can "remove" the inherited theme and load what you need for less/css. Can be done in a less file after removing it in Theme.php. JS you can remove it in a similar way, but including it again is a little mit complicated. I use the mechanism in Theme.php and load all file with an exclude list and replace (shopware responsive initializes the modules and some lines need to removed, if the module got removed)
Azam Alvi
@azamalvi
@__xaver_twitter thanks for your help. I will sure try to exclude those files from Theme.php and then check.
xaver
@__xaver_twitter
@azamalvi you need a lot of js stuff. Some parts is really easy to overwrite with an simpler version. One of worst Plugins is PayPal. Loads everything. With/without context mode everything, because saving something won't recompile the theme.
bananarne
@bananarne
if i add a column as foreign key, i can't seem to be able to "see"/filter that field from api
Ruben Wagner
@ouven
@ArtNushi_twitter Slack sucks - I cannot reactivate my account. I deactivted it because slack didn't stop sending useless messages, which I couldn't unsubscibe from.
xaver
@__xaver_twitter
@ouven lol
Ruben Wagner
@ouven
So I ask here again as in shopwareDE was no answer given:
I try to integrate a "put-into-cart-button" into an existing page. It works so far, I can put things into the cart via Channel-API. Now I like to do the checkout with shopware. So how can I link to the checkout, so the cart keeps its contents (onky having a context_token)?
budakotimohit@webkul
@budakotimohit
Hello everyone, Can anybody let me know on the api part , I am using multi-shop scenario. I want to access a particular shop data, how things work in this case. Eg I have shop with id: 1, 2,3 etc. Also I want to make post request to a particular shop. Does shopware5 provides different api key and url for every shop? Kindly help me in this regard.
mbathen
@mbathen
Hello, someone got an idea if its OK if i would move the gross price into the net price by SQL in shopware 6? Got 12000 products, wich i imported from CSV, price was in the wrong column by customer.
BlueWolf-Produktion
@BlueWolf-Produktion

Hi,
i just don't understand, why SW 5.6.7 is not removing a remarketing cookie:

public function addComfortCookie(): CookieCollection
{
    $pluginNamespace = $this->container->get('snippets')->getNamespace('consenttool');
    $collection = new CookieCollection();
    $collection->add(new CookieStruct(
        'wolfAllowRemarketing',
        '/^IDE/',
        $pluginNamespace->get('remarketing_cookie_label'),
        CookieGroupStruct::STATISTICS
    ));
    return $collection;
}

The cookie is listed in the configuration of the consent manager, but the cookie is alwas set.
Any suggestions?

Daniel Sánchez
@panconjugo_twitter
Hello everyone, can someone help me with this question. I am trying to let's say, display a specific <div> only for a subshop, for that I added that div into the specific .tpl file and then compiled but choosing the specific subshop only. That didn't work, so is there another way?
bananarne
@bananarne
if i know something has changed an order, can i somehow reinitialize the whole order detail window? like closing and opening up again
bananarne
@bananarne
another question: how would i create a downloadeable link inside ExtJS Backend Controller?
Poxxx
@Poxos
$criteria = new Criteria();
$criteria->addAssociation('media');
$criteria->addAssociation('products');

$criteria->addFilter(new EqualsFilter('active', 1));
$criteria->addFilter(new EqualsFilter('products', 'NOT NULL!!!!'));

$filteredCategories = $this->categoryRepository->search($criteria, $context);
dd($filteredCategories);
How can I filter it where products not null ?
I mean - it should get the categories which have products.