Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Christian Flack
    @GALCF
    I did find this https://developer.paypal.com/docs/api-basics/notifications/ipn/IPNSetup/ but it doesn't seem to trigger in sandbox mode?
    Dominik
    @dpfaffenbauer
    good question… I haven’t used paypal since forever now….
    Dominik
    @dpfaffenbauer
    mb
    @marcinxbiedrzycki
    hey @dpfaffenbauer, I've got problem with "coreshop.repository.product_price_rule" it is already defined in services but still cant find it
    Screenshot from 2021-07-13 14-16-18.png
    coreshop v3
    Dominik
    @dpfaffenbauer
    @marcinxbiedrzycki auto wiring is only supported for certain cases. try using productPriceRuleRepository as a variable Name. or manually wire it
    Giuseppe Corso
    @gcorso-gal_gitlab

    Hey @dpfaffenbauer ,

    I need to remove the gender field within the customer registration process. I first thought it would be enough to remove the gender field within the FormBuilder process with own formtype extension. However, this doesn't seem to be enough. I have found now this source, that seems to always add the gender constraint validation. Is there a way to remove this validation? I came across this YAML file: https://github.com/coreshop/CoreShop/blob/2.2.9/src/CoreShop/Bundle/CustomerBundle/Resources/config/validation/Customer.yml

    Thanks in advance

    Dominik
    @dpfaffenbauer
    you have to overwrite the validation file in your app config
    Giuseppe Corso
    @gcorso-gal_gitlab
    I thought of that, created a new yml file that is loaded, but I get: There is no extension able to load the configuration for "CoreShop\Component\Customer\Model\Customer" Am I missing something?
    Dominik
    @dpfaffenbauer
    it must be in the right place
    philippjost
    @philippjost
    @dpfaffenbauer Hi, I opened the issue coreshop/CoreShop#1698. You already answered and closed the issue, thanks for that. I just would like to know if you use the same version of pimcore and coreshop?
    Dominik
    @dpfaffenbauer
    did a completely new setup today
    did basically this

    composer create-project pimcore/skeleton demo_temp
    composer config "minimum-stability" "dev"
    composer config "prefer-stable" "true"
    composer req coreshop/core-shop:^3.0

    php bin/console pimcore:bundle:enable CoreShopCoreBundle
    php bin/console coreshop:install
    php bin/console coreshop:install:demo

    2 replies
    checkout demox.coreshop.org -> Pimcore X and CoreShop 3 Demo, installed exactly as described just
    philippjost
    @philippjost
    Thanks for the Feedback. I will try it out
    Mario Ramundo
    @ramundomario
    Hey @dpfaffenbauer, new demo is not working in HTTPS
    Dominik
    @dpfaffenbauer
    I know
    have to enable that yet
    Mario Ramundo
    @ramundomario
    :+1:
    Dominik
    @dpfaffenbauer
    https is now working
    Mario Ramundo
    @ramundomario
    :rocket:
    Pascal Walser
    @pargy
    Hello, I am trying to make an existing product class CoreShop compatible. How can I replace standard CoreShop fields like "active" with fields of the existing product? For example, in a multistore the status "active" should consider a different field depending on the store.
    Dominik
    @dpfaffenbauer
    implement the interface ProductInterface and implement the methods like you need them
    Nesfiran
    @Nesfiran

    Hello all,
    I am trying to implement a product import in Coreshop using Pimcore DataHub and the Data Importer. Unfortunately I can't get it to access the store attributes of the products the mapping is not possible. Does anyone have a tip how to access it?

    With data objects the mapping is possible without problems.

    Many greetings

    Pascal Walser
    @pargy
    @dpfaffenbauer got it, thank you
    Hendrik Hofmann
    @HeHof
    @dpfaffenbauer Hi! I've got the following Problem:
    If I want to add a Product to the cart i run into a 'CoreShop was not able to figure out the current cart.' Message.
    I thought i could erase abandoned carts with the 'coreshop:cart:expire' command but that doesnt seem to help.
    Configuration: Basic CoreShop Setup as described on the GitHub Repo.
    Dominik
    @dpfaffenbauer
    @HeHof multisite?
    Jp
    @VeiJar1
    Hey, have any of you implemented any kind of booking system with calendar with CoreShop?
    i2cute
    @i2cute
    Hi, any one facing problem with Additional Unit Definitions? I have tested on coreshop2.x working fine but a lot of issue with coreshop 3.0
    Dominik
    @dpfaffenbauer
    @i2cute I know of some problems. can you maybe create a ticket for your findings?
    i2cute
    @i2cute
    @dpfaffenbauer thanks so much. Already created ticket #1734
    Michael Albrecht
    @mike4git
    Hi guys,
    does anyone know how to hide the Coreshop Menu on the left side toolbar in a certain perspective?
    I can hide anything but this.
    Dominik
    @dpfaffenbauer
    Not really possible… coreshop doesn’t really implement perspectives
    Michael Albrecht
    @mike4git
    Based upon the documentation (https://docs.coreshop.org/2.2.0/Development/Extending_Guide/Extend_CoreShop_Resources.html) we tried to overwrite PaymentProvider model class but we can't because our Model namepsace will not be registered. What did we miss?
    We have extended AppBundle class, implemented getSupportedDrivers method and protected getModelNamespace method and clear cache...
    Dominik
    @dpfaffenbauer
    just use default Entity Path, makes life so much easier and the path is registered by doctrine by default
    So AppBundle\Entity
    I will adapt documentation about that
    Valentin
    @valentin-

    Hi, depending on the login state I'd like to switch between Login/Logout in the header menu. Similar to the demo I've created a controller to include those links.

    When calling the getCustomer() method, the service is not available:

    $customer = $this->get(CustomerContextInterface::class)->getCustomer();

    Service "CoreShop\Component\Customer\Context\CustomerContextInterface" not found: even though it exists in the app's container, the container inside "App\Controller\LayoutController" is a smaller service locator that only knows about the "doctrine", "form.factory", "http_kernel", "message_bus", "messenger.default_bus", "parameter_bag", "request_stack", "router", "security.authorization_checker", "security.csrf.token_manager", "security.token_storage", "serializer", "session" and "twig" services. Try using dependency injection instead.

    Did I miss something in the install process? How can i access the CoreShop Services in App context directly?

    4 replies
    Valentin
    @valentin-
    Hi, as explained in the Docs (https://docs.coreshop.org/2.1.0/Development/Products/Multiple_Product_DataObjects.html) I've created a custom product type and used ProductSet as example. According to bin/console debug:config app it looks like it's registered correctly. Unfortunately $this->get('coreshop.repository.stack.purchasable')->findAll()doesn't list the custom products. Is there anything else to consider about custom Product Objects?
    13 replies
    Valentin
    @valentin-
    Hi, I need registration forms for two different user types (customer, dealer). I've created a separate Controller and FormType. I removed the gender field ($builder->remove('gender')), but the form is still validating this field (gender should not be blank). I've also tried to override the validation.yaml for the Customer object but it doesn't have any effect. Does anyone have an idea what's causing the issue?
    4 replies
    brainium
    @brainium

    Hey guys... anyone knows how to deal with this error, while installing coreshop:

    Invalid configuration for path "payum.security.token_storage": Only one token storage could be configured.

    Michał Filik
    @michalfilik
    Hello. I have cart price rules which are based on adjustments. They stopped working with coreshop 3 - orderItem adjustment total is not added to order Total. Is that the current way of totals calculation ? Or bug in my code ?
    JustMe69
    @JustMe69

    Hi,
    followed docs for adding custom checkout step:
    https://docs.coreshop.org/2.2.0/Development/Checkout/Checkout_Manager.html
    using coreshop 3 beta-1

    copied shipment step from core as own step, as first try.
    file config/config.yaml:

    core_shop_core:
        checkout:
            default:
                steps:
                    shipment: false
                    payment: false          # disables the payment step
    
                    custom:
                        step: app.coreshop.checkout.custom
                        priority: 30

    file bundles/FrontendBundle/Resources/config/services.yml:

        FrontendBundle\CoreShop\Checkout\Step\PackagingShippingCheckoutStep:
            public: true
            arguments:
                - '@CoreShop\Component\Shipping\Validator\ShippableCarrierValidatorInterface'
                - '@form.factory'
                - '@CoreShop\Component\Order\Manager\CartManagerInterface'
    
        app.coreshop.checkout.custom:
            alias: FrontendBundle\CoreShop\Checkout\Step\PackagingShippingCheckoutStep

    file bundles/FrontendBundle/CoreShop/Checkout/Step/PackagingShippingCheckoutStep.php
    ```
    <?php

    declare(strict_types=1);

    namespace FrontendBundle\CoreShop\Checkout\Step;

    use CoreShop\Bundle\CoreBundle\Form\Type\Checkout\CarrierType;
    use CoreShop\Component\Address\Model\AddressInterface;
    use CoreShop\Component\Core\Model\CarrierInterface;
    use CoreShop\Component\Order\Checkout\CheckoutException;
    use CoreShop\Component\Order\Checkout\CheckoutStepInterface;
    use CoreShop\Component\Order\Checkout\OptionalCheckoutStepInterface;
    use CoreShop\Component\Order\Checkout\ValidationCheckoutStepInterface;
    use CoreShop\Component\Order\Manager\CartManagerInterface;
    use CoreShop\Component\Order\Model\OrderInterface;
    use CoreShop\Component\Shipping\Validator\ShippableCarrierValidatorInterface;
    use Symfony\Component\Form\FormFactoryInterface;
    use Symfony\Component\Form\FormInterface;
    use Symfony\Component\HttpFoundation\Request;
    use Webmozart\Assert\Assert;

    class PackagingShippingCheckoutStep implements CheckoutStepInterface, OptionalCheckoutStepInterface, ValidationCheckoutStepInterface
    {
    public function __construct(
    private ShippableCarrierValidatorInterface $shippableCarrierValidator,
    private FormFactoryInterface $formFactory,
    private CartManagerInterface $cartManager)
    {
    }

    public function getIdentifier(): string
    {
        return 'pack_shipping';
    }
    
    public function isRequired(OrderInterface $cart): bool
    {
        Assert::isInstanceOf($cart, \CoreShop\Component\Core\Model\OrderInterface::class);
    
        return $cart->hasShippableItems();
    }
    
    public function doAutoForward(OrderInterface $cart): bool
    {
        Assert::isInstanceOf($cart, \CoreShop\Component\Core\Model\OrderInterface::class);
    
        return $cart->hasShippableItems() === false;
    }
    
    public function validate(OrderInterface $cart): bool
    {
        Assert::isInstanceOf($cart, \CoreShop\Component\Core\Model\OrderInterface::class);
    
        return $cart->hasShippableItems() === false
            || ($cart->hasItems() &&
                $cart->getCarrier() instanceof CarrierInterface &&
                $cart->getShippingAddress() instanceof AddressInterface &&
                $this->shippableCarrierValidator->isCarrierValid($cart->getCarrier(), $cart, $cart->getShippingAddress()));
    }
    
    public function commitStep(OrderInterface $cart, Request $request): bool
    {
        $form = $this->createForm($request, $cart);
    
        if ($form->isSubmitted()) {
            if ($form->isValid()) {
                $cart = $form->getData();
    
                $this->cartManager->persistCart($cart);
    
                return true;
            }
    
            throw new CheckoutException('Shipping Form is invalid', 'coreshop.ui.error.coreshop_checkout_shipping_form_invalid');
        }
    
        return false;
    }
    
    public function prepareStep(OrderInterface $cart, Request $request): array
    {
        return [
            'form' => $this->createForm($request, $cart)->createView(),
        ];
    }
        private function createForm(Request $request, OrderInterface $cart): FormInterface
        {
            $form = $this->formFactory->createNamed('coreshop', CarrierType::class, $cart, [
                'cart' => $cart,
            ]);
    
            if ($request->isMethod('post')) {
                $form = $form->handleRequest($request);
            }
    
            return $form;
        }
    }

    I can call FE. When putting article in cart I get:

    CoreShop\Component\Registry\PrioritizedServiceRegistry::getIndex(): Return value must be of type int, bool returned

    I measn https://docs.coreshop.org/2.2.0/Development/Checkout/Checkout_Step.html

    What's wrong/missing?

    Dominik
    @dpfaffenbauer
    @JustMe69 might be a bug
    can you file a issue pls
    JustMe69
    @JustMe69
    #1806 created
    Valentin
    @valentin-
    Hi, I need to retrieve the shipping rule for a completed order. Only the carrier is stored in the order object. What's the best way to get the shipping rule item for an order object?