If you want to show products category wise, then use this inside "Home Page Content" - @include('shop::home.category', ['category' => 'category_name'])
R
Md Rezaul Karim
@RK REZA
5
Reputation
141
Posts
140
Profile views
0
Followers
1
Following
Posts made by RK REZA
-
RE: how to integrate MyFatoorah payment with bagisto?!
-
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/ -
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.
-
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.
-
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.
-
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])); } } } }