-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Modal Delivery on Cart (front-end)
- Loading branch information
Michel Moraes
committed
Oct 22, 2018
1 parent
76ad5a6
commit 14bf6a6
Showing
28 changed files
with
267 additions
and
12,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<?php | ||
|
||
function MySaveOptions() { | ||
global $woocommerce; | ||
function my_save_options() { | ||
$nonce = $_POST['nonce_ajax']; | ||
|
||
$nonce = $_POST['nonce']; | ||
// if ( ! wp_verify_nonce( $nonce, 'ajax-nonce' ) ) | ||
// die ( 'Busted!'); | ||
|
||
if (isset($_POST['delivery_enabled']) ) { | ||
if ( isset($_POST['delivery_enabled']) ) { | ||
$delivery_enabled = $_POST['delivery_enabled']; | ||
update_option('wacs_delivery_enabled', $delivery_enabled); | ||
// update_option('wacs_delivery_enabled', $delivery_enabled); | ||
|
||
if ( $delivery_enabled == 'yes' ) { | ||
$_SESSION['delivery'] = 'yes'; | ||
echo 'wacs_delivery_enabled option saved YES'; | ||
return; | ||
echo 'TUDO CERTO!'; | ||
} else { | ||
echo 'ALGO ERRADO!'; | ||
} | ||
|
||
$_SESSION['delivery'] = 'no'; | ||
echo 'wacs_delivery_enabled option saved NO'; | ||
} | ||
} | ||
|
||
exit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
.modal-delivery | ||
&__title | ||
border-bottom: 1px solid #cacaca | ||
padding-bottom: 13px | ||
color: #404040 | ||
|
||
.label | ||
font-size: 14px | ||
color: #545454 | ||
|
||
.modal-card-head | ||
background-color: $primary | ||
|
||
.modal-card-foot | ||
background: #d6d6d6 | ||
|
||
.modal-card-title | ||
color: #fff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
@import buttons | ||
@import custom-slick-slider | ||
@import contact-form | ||
@import modal-delivery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.