https://www.spryker.com logo
Join Slack
Powered by
# help
  • r

    rich-camera-19306

    01/27/2020, 8:52 AM
    Copy code
    Store: DE | Environment: devtest
    Install Project dependencies
    [info] 
    > node-sass@4.10.0 install /data/node_modules/@spryker/oryx-for-zed/node_modules/node-sass
    > node scripts/install.js
    
    
    [info] Downloading binary from <https://github.com/sass/node-sass/releases/download/v4.10.0/linux_musl-x64-72_binding.node>
    
    [info] Cannot download "<https://github.com/sass/node-sass/releases/download/v4.10.0/linux_musl-x64-72_binding.node>": 
    
    HTTP error 404 Not Found
    Anyone had this?
    a
    d
    • 3
    • 12
  • r

    rich-camera-19306

    01/27/2020, 8:53 AM
    Cause file doesn't exist, but
    @spryker/oryx-for-zed
    requires it.
  • s

    silly-motherboard-93855

    01/27/2020, 10:13 AM
    Copy code
    - Installing spryker/spryker (dev-master 4983870): Cloning 49838708a8
    
                                                                                                        
      [RuntimeException]                                                                                
      Failed to execute git clone --no-checkout 'https://***:*<mailto:**@github.com|**@github.com>/spryker/spryker.git' '/dat  
      a/shop/development/current/vendor/spryker/spryker' && cd '/data/shop/development/current/vendor/  
      spryker/spryker' && git remote add composer 'https://***:*<mailto:**@github.com|**@github.com>/spryker/spryker.git' &&   
      git fetch composer                                                                                
                                                                                                        
      Cloning into '/data/shop/development/current/vendor/spryker/spryker'...                           
      remote: Repository not found.                                                                     
      fatal: repository 'https://***:*<mailto:**@github.com|**@github.com>/spryker/spryker.git/' not found
    was that repository removed?
    a
    • 2
    • 5
  • a

    ancient-apartment-59274

    01/27/2020, 1:11 PM
    Hello again. I couldn’t find anything in the docs … In spryker it is possible to add different logic for different stores by adding a suffix to the modulename. The module resolver will pull that piece of logic first. But are there also possibilites to “group” logic somehow? For example if you have an EU region with AT, DE, CH store and a US region with AZ, CO, CT … for all the US store you want to have a specific piece of logic that will calulcate your shipping costs in the same way for all US based stores … is that possible without creating a specific module with a corresponding suffix for each store? ShippingAZ, ShippingCO … just for interest because its some kind of work we want to avoid whenever we add a new store that should follow the same “logic group” … or is there another way here? I would really like to stick to one common codebase since there is no much difference between all the shops, just in few points … Best regards and have a nice day 😉
    w
    a
    l
    • 4
    • 8
  • a

    aloof-electrician-43662

    01/28/2020, 10:42 AM
    hi i want to install composer package to my project but every time i got the error:
    vagrant@vm-b2c-demo-shop ➜  current git:(operation-new-products) ✗  composer require spryker/product-api
    1/10: <http://repo.packagist.org/p/provider-2020-01$aff0193cae09496aac56564ab0f8a74e6d354935f27495e95f2c9222aeaa0916.json>
    2/10:       <http://repo.packagist.org/p/provider-latest$c985b49991005d603f943404b7312ef0dcd5744956a8764c856bdc866e9cbdcd.json>
    3/10:       <http://repo.packagist.org/p/provider-2019$621a7d57352137169920fc496aadfae7ef3d77e6d0ac1593c4c60d402d66d215.json>
    4/10:       <http://repo.packagist.org/p/provider-2019-04$99a139393edd93b34895875515d5c37b59a474343f543d8abdf5e439b3709112.json>
    5/10:       <http://repo.packagist.org/p/provider-2019-10$2fb50572e5670496467a44e2b2df36793f0d0df010125c3615cad99ade11b5ff.json>
    6/10:       <http://repo.packagist.org/p/provider-2015$24b1e51a03ba26d11c22a65895f50230b431cb760d5737d99ffb1258ed71fd17.json>
    7/10:       <http://repo.packagist.org/p/provider-2017$6176f0a07fdcfd1c9feae84adc9cd16c77b68c3d00f7e756642aa716c98ecdd8.json>
    8/10:       <http://repo.packagist.org/p/provider-2019-07$6a2eacef2b237e2c2a0f551a73ef72702572c0510379383e338fe92e357c34fa.json>
    9/10:       <http://repo.packagist.org/p/provider-2016$da85204da998c57690d51a8efef67714c75be5a6725de45c2dbeb13b6e4638a5.json>
    10/10:      <http://repo.packagist.org/p/provider-2018$b2122a7e48ee0440fabba732a9aeb3e3806c252203e16d82fec54f02c68dd63c.json>
    Finished: success: 10, skipped: 0, failure: 0, total: 10
    Using version ^0.1.4 for spryker/product-api
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 268435464 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 84
    Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 268435464 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 84
    Check <https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors> for more info on how to handle out of memory errors.%
    s
    • 2
    • 1
  • g

    green-honey-45300

    01/28/2020, 10:42 AM
    run composer without memory limit
  • a

    aloof-electrician-43662

    01/28/2020, 10:43 AM
    how ?
  • g

    green-honey-45300

    01/28/2020, 10:43 AM
    Copy code
    php -d memory_limit=-1 /usr/local/bin/composer ...
  • t

    thousands-account-91562

    01/28/2020, 10:44 AM
    or set the shell env variable:
    COMPOSER_MEMORY_LIMIT=-1 composer ...
  • g

    green-honey-45300

    01/28/2020, 10:45 AM
    make sure you have enough RAM on your machine
    👍 1
  • l

    loud-rose-8406

    01/28/2020, 12:44 PM
    Hey folks, I've heard from our documentation team that the memory limit topic will be in our next installation guide. Thanks for having the discussion here and letting us know.
  • a

    acoustic-motherboard-16553

    01/28/2020, 2:21 PM
    Updated to
    Copy code
    spryker/product-management 0.19.4
    Copy code
    An error has occurred resolving the options of the form "Symfony\Component\Form\Extension\Core\Type\TextareaType": The option "sanitize_xss" does not exist. Defined options are: "action", "allow_extra_fields", "allow_file_upload", "attr", "attr_translation_parameters", "auto_initialize", "block_name", "block_prefix", "by_reference", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_token_id", "csrf_token_manager", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "help", "help_attr", "help_html", "help_translation_parameters", "inherit_data", "invalid_message", "invalid_message_parameters", "label", "label_attr", "label_format", "label_translation_parameters", "mapped", "method", "post_max_size_message", "property_path", "required", "row_attr", "translation_domain", "trim", "upload_max_size_message", "validation_groups".
    Is it an known error since sanitize_xss was added 18 days ago or maybe I have some other package missing?
    l
    a
    q
    • 4
    • 17
  • a

    aloof-electrician-43662

    01/28/2020, 2:40 PM
    i want to get info about product in json from this docs https://documentation.spryker.com/docs/retrieving-product-information but when i type in url http://de.b2c-demo-shop.local/abstract-products/001 still i get 404 not found (product with sku 001 exists in zed)
    a
    • 2
    • 9
  • f

    full-rocket-52349

    01/28/2020, 4:11 PM
    Hello, we build our own frontend and use the category nodes via the GLUE API. To avoid many requests, our frontend developers use the root category IDs for the query. All child categories are delivered. If a value (for example the name) of one of the child categories is changed in the ZED, the output in the category nodes does not change. If the ID of the category is queried directly, everything is fine. If the parent category is queried, the children's entries are not updated. What do we have to do so that the changes to a subcategory are also updated in the tree of the category nodes?
    a
    • 2
    • 6
  • a

    ancient-apartment-59274

    01/28/2020, 4:34 PM
    Hello again. On glue we want to get the shipping methods based on the destination country given by the request. In this case below, the shipment should go to germany
    {
    "data": {
    "type": "checkout-data",
    "attributes": {
    "idCart": "c317c11b-a342-53ce-8831-63189dc02122",
    "customer": {
    "email": "<mailto:bl@lol.de|bl@lol.de>",
    "salutation": "Ms",
    "firstName": "bla",
    "lastName": "bla"
    },
    "billingAddress": {
    "salutation": "Ms",
    "firstName": "bla",
    "lastName": "bla",
    "address1": "sdsdsds 1",
    "address2": "sdsdsds 1",
    "address3": "sdsdsds 1",
    "zipCode": "12345",
    "city": "dfdfd",
    "iso2Code": "DE",
    "company": "sdsd",
    "phone": "123454",
    "isDefaultBilling": true,
    "isDefaultShipping": true
    },
    "shippingAddress": {
    "salutation": "Ms",
    "firstName": "bla",
    "lastName": "bla",
    "address1": "sdsdsds 1",
    "address2": "sdsdsds 1",
    "address3": "sdsdsds 1",
    "zipCode": "12345",
    "city": "dfdfd",
    "iso2Code": "DE",
    "company": "sdsd",
    "phone": "123454",
    "isDefaultBilling": true,
    "isDefaultShipping": true
    },
    "payments":
    [
    {
    "paymentMethodName": "invoice",
    "paymentProviderName": "DummyPayment"
    }
    ]
    }
    }
    }
    As you can see, we don’t provide any shipment methods in the first step, because we don’t know which one will be allowed for us. For deciding wether if a shipping method is allowed or not, we wrote for every shipment method a plugin that implements
    Copy code
    ShipmentMethodAvailabilityCheckerInterface
    Somewhere in its business logic, we check for the shipping address which is unfortunately now per item base in
    Copy code
    $item->getShipment()->getShippingAddress()->getIso2Code()
    But getShipment() is null because we never provide a shipment method on the glue request like this
    "shipment": {
    "idShipmentMethod": 1
    }
    But we need the address of it which (in my opinion) shouldn’t stick to the provided shipment data. So now we are in a kind of deadlock 🤔 We want to get all shipping methods that are allowed based on the address, but we have no address because we don’t provide any shipment which is mandatory for providing the address in the plugin. Before it was quite easy because the shipping address wasn’t dependent on the provided shipping method. But this method
    Copy code
    $quoteTransfer->getShippingAddress()
    seems outdated … Any ideas?
    i
    • 2
    • 2
  • a

    aloof-electrician-43662

    01/29/2020, 10:07 AM
    how to get data about product from database in controller ?
    w
    m
    r
    • 4
    • 35
  • a

    acoustic-motherboard-16553

    01/29/2020, 12:13 PM
    With
    Copy code
    "spryker-sdk/spryk": "^0.2.3",
    "spryker-sdk/spryk-gui": "^0.1.5",
    is there something else to do as adding the 3 console commands to the consoledependencyprovider? Because I am getting
    Copy code
    Spryker Kernel Exception Can not resolve GraphController for your bundle "SprykGui" You can fix this by adding the missing Controller to your bundle.
    p
    • 2
    • 1
  • a

    acoustic-businessperson-27970

    01/29/2020, 2:11 PM
    Hello, I have a b2b setup and I am trying to use cart sharing. I can see the widget on the cart page but I copy the link and I log in to another user from the same company and try to open the link, but i cannot see the ‘shared’ cart Any suggestions ?!
    m
    • 2
    • 8
  • a

    aloof-electrician-43662

    01/30/2020, 8:46 AM
    Hello, How and where product is saved in Zed (redis, or mysql or elasticsearch), no documentation is clear for me.
    r
    i
    +2
    • 5
    • 20
  • a

    ancient-apartment-59274

    01/30/2020, 2:08 PM
    Hello, just for being sure. Our spryker shop should be able to let the customer just making a request for quote, so a typical b2b feature. Selling products may come up later. As far as i can see, there is a quotation feature (RFQ) but it seems just available for yves frontend, not for Glue … is there a plan to release this also for glue in the (near) future? Any other ways here? Maybe by modifying the order process?
    n
    • 2
    • 2
  • b

    best-keyboard-11166

    02/03/2020, 2:14 PM
    Hi @average-branch-45579, have you heard about compatibility issues with the new devvm 3.0 using elasticsearch 6.8.6 and some modules like ProductReview? We see errors regarding the elastic option include_on_all when trying to use devvm 3.0.0 with our project
    a
    • 2
    • 4
  • a

    ancient-apartment-59274

    02/03/2020, 2:51 PM
    Hi everybody. I want to implement a kind of an extra fee when a certain combination of shipment/payment was chosen in checkout process. Just in the checkout step its possible to know about this expenses because you just know here what shipment is selected (via checkout-data endpoint). For this, I tried to investigate the shipment feature for this and how the prices there gets calculated, but i can’t figure out, where the final calculation for totals are made. So there are no final prices when a shipment method is provided. Just the methods with single prices are returning. How to get the complete prices on checkout? 🤔 Some other ideas to show an extra fee when a certain combination of shipment/payment method was chosen? Thanks!
    m
    i
    a
    • 4
    • 18
  • m

    mysterious-king-59256

    02/04/2020, 8:24 AM
    Hello, I am working on shop which is currently filled with products and other data, but I have to change locale and keep old data (filled in the wrong locale). On local env with test database it works after changing locale, switching it’s id in DB, running
    console event:trigger
    and
    console sync:data
    , but with “prod” DB,
    event:trigger
    fails in many events and frontend has missing data. Do you know how can I change locale and keep old data?
    s
    • 2
    • 2
  • c

    clean-glass-99425

    02/04/2020, 10:06 AM
    Can the architectur sniffers rules be overwritten directly? Or do I have to reimplement the PHP classes that include the various rules and change / extend those to different or new XML files?
    b
    m
    • 3
    • 4
  • f

    fierce-battery-19636

    02/04/2020, 11:56 AM
    Like to use breakpoints in twig with PHPStorm, but cannot get this running in spryker. Does anyone tryed this out or has a working guide for it? 🙏
  • d

    damp-wolf-78050

    02/06/2020, 8:44 AM
    Hi everyone, I have run into the console error: Cannot read property ‘call’ of undefined which leads to some of our frontend molecules not being loaded correctly. When I debug it always breaks at the line:
    modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
    I think it might be due to a webpack configuration issue which leads to the chunks being imported incorrectly or in the wrong order. Can anyone help me with this issue? Thanks in advance 🙂
    d
    m
    • 3
    • 7
  • a

    acoustic-motherboard-16553

    02/06/2020, 11:18 AM
    Hi, is it correct, that Schema/search.json files wont get merged? We updated from a really old version to the current releases from 202001.0 and it seems like only the data from the last file will be available in PageIndexMap
    • 1
    • 1
  • s

    silly-motherboard-93855

    02/06/2020, 2:39 PM
    Can someone explain the difference between spy_product_concrete_storage
    data
    column and spy_product_localized_attributes
    attributes
    column? running select * from spy_product_concrete_storage where fk_product=19079 and locale='en_GB'; and its equivalent select * from spy_product_localized_attributes where fk_product=19079 and fk_locale=46 and it looks like the storage contains pretty much the copy of the atributes in it's data as well. What's the purpose for that storage table in that case? or maybe the better question would be: should I update both tables if I decide to update the product ? or one will sync into the other via internal spryker logic?
    a
    • 2
    • 4
  • g

    glamorous-quill-49387

    02/06/2020, 3:27 PM
    Hi guys. When I run npm run zed command I get deprication warnings for css files including. Anyone had this and is there s fix for that
    a
    • 2
    • 1
  • s

    sparse-kangaroo-34355

    02/06/2020, 3:28 PM
    Hi, I got the following error: Spryker\Shared\ZedRequest\Client\Exception\TransferNotFoundException - No class name given for Transfer generation. I actually know what this error is about (returning a proper transfer). In my usecase I am returning an array of
    MerchantRelationshipTransfer
    . Do I need to create a
    MerchantRelationshipCollectionTransfer()
    (*Collection*Transfer doesn't exist yet) or is it possible to solve it "easier"?
    q
    l
    • 3
    • 13
1...111213...102Latest