before merge
This commit is contained in:
parent
b55720244c
commit
f0c5db8177
|
|
@ -1222,17 +1222,14 @@ class Cart {
|
|||
* @param instance cartItem $id
|
||||
*/
|
||||
public function moveToWishlist($itemId) {
|
||||
$item = $this->findOneByField($itemId);
|
||||
|
||||
$item = $this->cartItem->findOneByField('id', $itemId);
|
||||
dd($item->cart);
|
||||
if(!$item)
|
||||
return false;
|
||||
|
||||
if($item->parent_id == 'null' ||$item->parent_id == null) {
|
||||
$variantSku = $item->child->sku;
|
||||
$variantName = $item->child->name;
|
||||
} else {
|
||||
|
||||
}
|
||||
// $wishlist[
|
||||
// 'channel_id' =>
|
||||
// ];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{{-- <a href="{{ route('shop.product.buynow', $product->id)}}" class="btn btn-lg btn-primary buynow" style="text-align: center;">
|
||||
{{-- <a href="{{ route('shop.product.buynow', $product->id)}}" class="btn btn-lg btn-primary buynow" style="text-align: center;" id="buynow-changer">
|
||||
{{ __('shop::app.products.buy-now') }}
|
||||
</a> --}}
|
||||
Loading…
Reference in New Issue