Skip to content

Commit 393e411

Browse files
committed
Fix api for checkout
1 parent 68c4b39 commit 393e411

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Dreamvention/Vuefront/Module/Plugin/CorsRequestMatchPlugin.php

100644100755
File mode changed.

Dreamvention/Vuefront/Module/Plugin/CorsRequestOptionsPlugin.php

100644100755
File mode changed.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<?php
2+
use \Magento\Framework\App\ObjectManager;
23

34
class ResolverStoreCheckout extends Resolver
45
{
56
public function link() {
7+
$objectManager =ObjectManager::getInstance();
8+
9+
$url = $objectManager->get('\Magento\Framework\UrlInterface');
10+
611
return array(
7-
'link' => WC()->cart->get_checkout_url()
12+
'link' => $url->getUrl('checkout')
813
);
914
}
1015
}

0 commit comments

Comments
 (0)