Url.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Multi Shipping urls helper
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Multishipping\Helper;
  12. class Url extends \Magento\Framework\Url\Helper\Data
  13. {
  14. /**
  15. * Retrieve shopping cart url
  16. *
  17. * @return string
  18. */
  19. public function getCartUrl()
  20. {
  21. return $this->_getUrl('checkout/cart');
  22. }
  23. /**
  24. * Retrieve checkout url
  25. *
  26. * @return string
  27. */
  28. public function getMSCheckoutUrl()
  29. {
  30. return $this->_getUrl('multishipping/checkout');
  31. }
  32. /**
  33. * Retrieve login url
  34. *
  35. * @return string
  36. */
  37. public function getMSLoginUrl()
  38. {
  39. return $this->_getUrl('multishipping/checkout/login', ['_secure' => true, '_current' => true]);
  40. }
  41. /**
  42. * Retrieve address url
  43. *
  44. * @return string
  45. */
  46. public function getMSAddressesUrl()
  47. {
  48. return $this->_getUrl('multishipping/checkout/addresses');
  49. }
  50. /**
  51. * Retrieve shipping address save url
  52. *
  53. * @return string
  54. */
  55. public function getMSShippingAddressSavedUrl()
  56. {
  57. return $this->_getUrl('multishipping/checkout_address/shippingSaved');
  58. }
  59. /**
  60. * Retrieve register url
  61. *
  62. * @return string
  63. */
  64. public function getMSNewShippingUrl()
  65. {
  66. return $this->_getUrl('multishipping/checkout_address/newShipping');
  67. }
  68. /**
  69. * Retrieve register url
  70. *
  71. * @return string
  72. */
  73. public function getMSRegisterUrl()
  74. {
  75. return $this->_getUrl('multishipping/checkout/register');
  76. }
  77. }