Use for Spryker B2B Commerce OS and its PHP modules.
Questions tagged [spryker]
15 questions
1
vote
1 answer
How to add multi dimensional array value multiple times to same object?
The code snippet is as below:
$test = new PartnerRestrictionTransfer();
foreach($data as $data2)
{
$data = $test->setProductSku($data2);
}
print_r($data);die;

Anurag Baliyan
- 13
- 2
1
vote
2 answers
Should all factory methods be public?
According to a rule in the spryker/architecture-sniffer:
All the factory methods should be public by default
Is there any good argument for that? I never stumbled upon this before when using factory patterns.

ArSeN
- 5,133
- 3
- 19
- 26
0
votes
0 answers
Combine ‘should’ with ‘filter’ result will exclude should in elasticsearch query
I have to search for a result with these conditions:
filter:- make="FUSO" AND model="SUPERGRADE" AND is_vin_required="is_vin_required_1"
should:- make="FUSO" AND is_vin_required="is_vin_required_0"
result should be union of both. I tried to add…

sushant kumar
- 41
- 3
0
votes
1 answer
"Variable "form" does not exist." Symfony
Trying to make a simple form but i keep getting "Variable "subscriptionForm" does not exist."
enter image description here
Here is Controller method:
public function subscriptionForm(Request $request): …

Ricky
- 3
- 1
0
votes
1 answer
save value to custom field added to spy_sales_payment table spryker
I have added a custom field called custom_payment_id in spy_sales_payment table,added the field in transfer file too
sales_payment.transfer.xml
and added the column using slaes.schema.xml file
How to set value to this field while placing order

Dalbin Shimy
- 53
- 3
0
votes
0 answers
spryker get data from sales_order_item table by passing id_sales_order_item value in TriggerMerchantOmsController
I am new to spryker and I want to do some calculation when merchant ships an order, for that I have extended TriggerMerchantOmsController.php file and tried to get data from spy_sales_order_item but I couldn't, Can anyone help on how to get the data

Dalbin Shimy
- 53
- 3
0
votes
1 answer
Spryker show new field added to merchant in product listing page
I am new to spryker, I have added a new field in spy_merchant table, I want to show that field in PLP page, I tried to do it, the value is displayed but if I update the values it is not get reflected, Can anyone help to update the value

Dalbin Shimy
- 53
- 3
0
votes
1 answer
Spryker add prefix to order reference number
I am new to spryker, I want to add prefix to order reference number, but there is a prefix in it by default, I couldn't find where the prefix comes from. Can anyone help me on this

Dalbin Shimy
- 53
- 3
0
votes
1 answer
Spryker fails to start containers on 80 port on ubuntu
Error response from daemon: driver failed programming external connectivity on : Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

Nikulin Vyacheslav
- 31
- 4
0
votes
1 answer
My DependencyProvider for Spryker Yves does not setup dependencies
Spryker Kernel Exception Container does not contain the called "XXX" You can fix this by adding the key "XXX" to your "ModuleNameDependencyProvider"
ModuleNameDependencyProvider code:

Nikulin Vyacheslav
- 31
- 4
0
votes
1 answer
How to inject dependencies into Yves controller?
I know that an instance of \Symfony\Component\HttpFoundation\Request can be injected into Yves controller action method. I know also that a path parameter can be also injected into controller action method. Is there a way to use constructor- or…

erop
- 1,510
- 1
- 14
- 27
0
votes
1 answer
"Global" cache in Spryker
I need to make HTTP requests directly from Yves controller. It is desirable to cache the result of this request in order to reduce the time of the entire operation. Do we have something like a quickly accessible system level (or "global") cache to…

erop
- 1,510
- 1
- 14
- 27
0
votes
1 answer
Getting app stack configuration in Spryker
As I understand there is \Spryker\Shared\Config\Config::get method to access configuration stored in config/Shared dir. Does Spryker have anything similar to get values from deploy.*.yml files?

erop
- 1,510
- 1
- 14
- 27
-1
votes
1 answer
spryker extend DummyPaymentHandlerPlugin class
I am new to spryker and I want to extend this class DummyPaymentHandlerPlugin. I tried by adding the class to the factory but is not working. Can anyone help me to do this

Dalbin Shimy
- 53
- 3
-2
votes
1 answer
Class ....TableMap not found while Spryker run console command
During any console command on Spryker console: Class ....TableMap not found in /data/vendor/propel/propel/src/Propel/Runtime/Map/DatabaseMap.php

Nikulin Vyacheslav
- 31
- 4