Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 27 15:40

    shopwareBot on 5.6

    SW-24973 - Fix broken hreflang … Merge branch 'sw-24973/5.6/fix-… (compare)

  • Feb 27 13:51
    pascalheidmann synchronize #2320
  • Feb 27 13:50
    pascalheidmann synchronize #2320
  • Feb 27 12:29
    pascalheidmann synchronize #2320
  • Feb 27 10:45
    mitelg labeled #1309
  • Feb 26 13:05
    shopwareBot labeled #2315
  • Feb 26 13:05
    shopwareBot labeled #2315
  • Feb 26 12:56
    pascalheidmann synchronize #2322
  • Feb 26 12:49
    pascalheidmann synchronize #2320
  • Feb 26 12:46
    shopwareBot labeled #2321
  • Feb 26 12:46
    shopwareBot labeled #2321
  • Feb 26 12:38
    PaddyS labeled #2320
  • Feb 26 12:33
    PaddyS unlabeled #2315
  • Feb 26 10:21
    pascalheidmann synchronize #2322
  • Feb 26 10:21
    pascalheidmann edited #2322
  • Feb 26 09:33
    shyim labeled #2322
  • Feb 26 09:27
    pascalheidmann opened #2322
  • Feb 25 15:05
    pascalheidmann opened #2321
  • Feb 25 14:50
    pascalheidmann synchronize #2313
  • Feb 25 14:29
    pascalheidmann opened #2320
Julian
@julianflapper
Hi,
Is it possible to disable the address field when creating an account? An address is not required for my customers
Geert Ijewski
@geert.ijewski_gitlab
An address is required to "deliver" the bill, even if you sell purely digital goods
Julian
@julianflapper
Alright
Makes sense
Husain Fazel
@husainfazel
Hi all, I’m wondering if there is an easy way to disable registrations and have “customer account” only option
Geert Ijewski
@geert.ijewski_gitlab
"goods managment system" as in the literal translation of "Warenwirtschaftssystem"? In english it is more commonly called ERP
Really migrating from one ERP to the other is a pain in the ass but having two running synchronsly is even worse
M4MEET
@M4MEET
Is there any specific size for image for a small screen smartphone device in shopping world for banner element? because my images looks good on tablet and desktop but in mobile its streching and looks ugly.
M4MEET
@M4MEET
also banner element contains same classes so how can i use css in a way where i can set up images width and height without affecting another element
Pascal
@pascalheidmann-bedarf
@M4MEET are you using Digital Publishing?
M4MEET
@M4MEET
yeah , shopping world , uploading icons manually for listing page
in the <img> tag i can see that title shows up but classses is same which is "banner--image-src"
Schwanzerfaust
@Schwanzerfaust
Idea for 5.7: Provide a plugin order callback instead of deciding in which order the plugins should be loaded
Joshua Behrens
@JoshuaBehrens
how shall this order callback work? how do you register one? How do you customize it?
Huzaifa
@huzaifam_gitlab
@mitelg @JoshuaBehrens do we have any event or flag through which we can know if the plugin was installed via the store or as a zip ?
Joshua Behrens
@JoshuaBehrens
@huzaifam_gitlab cheese that is a tricky question :D
You can easily check that for plugins that are in the pre 5.2 plugin structure
but that one is deprecated
Huzaifa
@huzaifam_gitlab
@JoshuaBehrens I see, why was it deprecated? do we have any alternative for that in the current plugin system?
Joshua Behrens
@JoshuaBehrens
The new plugin structure is much more comfortable IMHO it makes lots of things more symfony bundly. You can check s_core_plugins.source (legacy plugin structure). Maybe s_core_plugins.store_version and s_core_plugins.store_date help you out but I am unsure. Is it about whether a plugin is in the community store that can be checked via API?
Huzaifa
@huzaifam_gitlab
@JoshuaBehrens Yes, but not just to see if its available, but rather if its installed from the store or not.
something like a flag maybe
Joshua Behrens
@JoshuaBehrens
@huzaifam_gitlab you have to make yourself a flag and make subscribers to change that flag. sorry
Schwanzerfaust
@Schwanzerfaust
@JoshuaBehrens Through an event, you define the sorting of the plugins
Husain Fazel
@husainfazel
is this shopware6 or shopware5 chat?
Schwanzerfaust
@Schwanzerfaust
5
Yet better uksort
Husain Fazel
@husainfazel
good, I have a small problem. I have a shopware 5 installation with multiple sub shops. We wanted to take the address + mail fields (from s_core_config_values) for each shop and add them to the impressum page…. this involved creating a new plugin, rewrites etc
unfortunately … this works on the main shop
but not in the sub shops
This is the code in my plugin’s controller
$shop = Shopware()->Container()->get('shop');

        $config  = Shopware()->Config();
        $config->setShop($shop);
$mail    = $config->get('mail');
        $address = $config->get('address’);
when I dump $mail / $address in a sub shop… it’s bool(false)
I can’t get those values as a plugin… debugging the Config class is just a rabbit hole since it gets instantiated so many times during the life cycle
I’m at my wits end trying to figure out how to do something which should be very simple
any thoughts gentleman?
Schwanzerfaust
@Schwanzerfaust
@husainfazel Have you checked which shop are you actually getting with Shopware()->Container()->get('shop') ?
Husain Fazel
@husainfazel
yes I have
I had two methods of getting the shop
if (!$shop) {
            $shop = Shopware()->Container()->get('models')->getRepository(\Shopware\Models\Shop\Shop::class)->getActiveDefault();
        }
Schwanzerfaust
@Schwanzerfaust
Well that's the main store
Husain Fazel
@husainfazel
yes, that’s why it was removed - $shop = Shopware()->Container()->get(‘shop’) successfully retrieves the sub shop
$config->setShop(…) is hard to debug, it doesn’t seem to be working. If I dump the config, ‘mail’ and ‘address’ in _data are both bool(false)
Schwanzerfaust
@Schwanzerfaust
@husainfazel If it's not working then I'm sure there is a repository class, just use that and fech the configuration
Husain Fazel
@husainfazel
do you have any pointers where I can find how to do that?
links to source code / class / example?
Schwanzerfaust
@Schwanzerfaust

Yes

Shopware()->Container()->get('models')->getRepository(\Shopware\Models\Shop\Shop::class)

If you understand what that does, then you can do it with the configuration too

Husain Fazel
@husainfazel
got ya
Schwanzerfaust
@Schwanzerfaust
I don't see any apparent ShopwareConfig model class, so perhaps you chould do it through a direct PDO query
It's all hacked anyways, whatever you add it can't make it worse
Husain Fazel
@husainfazel
Hahah, yeah - does Shopware6 make things a bit saner? I’ve never needed to write a plugin and do the amount of hackery I’ve done today just to add two variables to a static page