Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. RK REZA
    R
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Md Rezaul Karim

    @RK REZA

    5
    Reputation
    141
    Posts
    145
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online
    Email [email protected] Location Dhaka, Bangladesh Age 27

    RK REZA Follow

    Posts made by RK REZA

    • RE: how to integrate MyFatoorah payment with bagisto?!

      If you want to show products category wise, then use this inside "Home Page Content" - @include('shop::home.category', ['category' => 'category_name'])

      posted in General Discussion
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal - Problem solved.

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal
      You can see my previous version is working fine here - https://phpstack-378818-1259319.cloudwaysapps.com/

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal I tried but didn't find any issue. That's why I posted here with my source code.

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal I think there is no problem in Bagisto 1.2 . This error is showing only when I'm adding my payment package.

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal

      1.PNG

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      If I remove my payment package the checkout works. But when I add again the error shows.

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal No

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      @Vaishali-Agarwal

      posted in Modules
      R
      RK REZA
    • RE: Custom payment method not working in Bagisto 1.2

      Those changes are already there in my packages/Webkul/Checkout/src/Cart.php

      private function linkAddresses(
              \Webkul\Checkout\Models\Cart $cart,
              array $billingAddressData,
              array $shippingAddressData
          ): void
          {
              $billingAddressModel = $cart->billing_address;
              if ($billingAddressModel) {
                  $billingAddressData['address_type'] = CartAddress::ADDRESS_TYPE_BILLING;
                  $this->cartAddressRepository->update($billingAddressData, $billingAddressModel->id);
      
                  if ($cart->haveStockableItems()) {
                      $shippingAddressModel = $cart->shipping_address;
                      if ($shippingAddressModel) {
                          if (isset($billingAddressData['use_for_shipping']) && $billingAddressData['use_for_shipping']) {
                              $billingAddressData['address_type'] = CartAddress::ADDRESS_TYPE_SHIPPING;
                              $this->cartAddressRepository->update($billingAddressData, $shippingAddressModel->id);
                          } else {
                              $shippingAddressData['address_type'] = CartAddress::ADDRESS_TYPE_SHIPPING;
                              $this->cartAddressRepository->update($shippingAddressData, $shippingAddressModel->id);
                          }
                      } else {
                          if (isset($billingAddressData['use_for_shipping']) && $billingAddressData['use_for_shipping']) {
                              $this->cartAddressRepository->create(array_merge($billingAddressData,
                                  ['address_type' => CartAddress::ADDRESS_TYPE_SHIPPING]));
                          } else {
                              $this->cartAddressRepository->create(array_merge($shippingAddressData,
                                  ['address_type' => CartAddress::ADDRESS_TYPE_SHIPPING]));
                          }
                      }
                  }
              } else {
                  $this->cartAddressRepository->create(array_merge($billingAddressData, ['address_type' => CartAddress::ADDRESS_TYPE_BILLING]));
      
                  if ($cart->haveStockableItems()) {
                      if (isset($billingAddressData['use_for_shipping']) && $billingAddressData['use_for_shipping']) {
                          $this->cartAddressRepository->create(array_merge($billingAddressData, ['address_type' => CartAddress::ADDRESS_TYPE_SHIPPING]));
                      } else {
                          $this->cartAddressRepository->create(array_merge($shippingAddressData, ['address_type' => CartAddress::ADDRESS_TYPE_SHIPPING]));
                      }
                  }
              }
          }
      
      posted in Modules
      R
      RK REZA