Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('<div />').html('')
- .modal({
- title: cartMessage,
- autoOpen: true,
- buttons: [{
- text: $.mage.__('Continue Shopping'),
- attr: {
- 'data-action': 'confirm'
- },
- 'class': 'action primary',
- click: function () {
- this.closeModal();
- $('.mfp-close', parentBody).trigger('click');
- }
- },
- {
- text: $.mage.__('Go To Checkout'),
- attr: {
- 'data-action': 'cancel'
- },
- 'class': 'action primary',
- click: function () {
- if (loggedIn == 0) {
- // WANT TO OPEN A LOGIN POPUP FROM HERE...
- }
- else{
- parent.window.location = '<?php echo $block->getUrl('checkout', ['_secure' => true]);?>'
- }
- }
- }]
- });
Add Comment
Please, Sign In to add comment