I have added custom Review step after Payment.
How to move Place Order button to last added custom step? Because every payment method has own button.
I have idea: in last custom step (review) call click on button in Payment step. But this idea is not good.
Can you help me please?
You can do it using css !!! Yes using css.
Make #checkout-step-payment position as relative.
'#checkout-step-payment{position:relative;}'
Add below css in .actions-toolbar under payment method.
.payment-method._active .payment-method-content > div.actions-toolbar{
bottom: -40px;
margin-left: -15px;
position: absolute;
width: 100%;
}
Note: Change bottom value as per your requirement.
Related
What is the best practice to do a form with wicket that results in some positive feedback message?
Example: I have a form where the user can request a link to change his forgotten password. The user gets this link sent to his given email address (as usual).
If the user enters his (valid) email address in the form and presses the submit button, I would like to show a positive feedback message like: "A mail to change your password will be sent to your mail address".
I see the following options to do this:
Using the feedback panel for this message (as 'info'), but using the feedback panel of the form, the form is still there (and maybe active) and that is not so nice ...
Redirecting to a page that does show nothing else than this message. A new page just for this message is not very 'wicket-like', is it?
Using a modal window. (But this does not fit to my design in this case.)
Any ideas? TIA!
It is about your design vision, not about wicket, I think.
1) In our apps we usually use modal window for "password restore" form, and when user submits this form, then modal window is closing and javascript div appears (like another window, but with static) called via ajax. I.e. we have such div on our base page html:
<div class="message-dialog" id="dialog_window">
<p id="dialog_window_p">[MESSAGE HERE]</p>
<a class="w_close"></a>
</div>
Some javascript functions:
//function to show div as window.
function showNotification(message) {
var msg = message;
$("#dialog_window_p").html('<span>' + msg + '</span>');
$('#dialog_window a.w_close').show();
$("#dialog_window").fadeIn(300);
}
//set listener to close link. may be you could use plain onclick="..", can't remember why we done so.
$(document).ready(function() {
$("#dialog_window a.w_close").click( function(){
$("#dialog_window").fadeOut(300);
});
});
And style:
.message-dialog {
display:none;
max-width: 600px;
height: auto;
padding: 30px;
position: absolute;
left: 35%;
top: 35%;
border: 1px solid #969696;
border-radius: 4px;
z-index: 100000;
}
May be this is a little clumsy, but I'm not strong in js and css. Also you can set some variable, for example passwordRestored = true in your session and redirect to home page after submition. When home page is creating you check this var and if it is true - show this popup and set this var back to false.
2) Many sites redirect users after their submits to another page, so this approach is viable, but you could also use AJAX just to hide form and show hidden span with success message (or feedback panel). To use AJAX you must replace you submit Button with 'AjaxButton' which requires to override onClick(AjaxRequestTarget target) method. In this method you could do something like that:
onClick(AjaxRequestTarget target) {
if (submitionCorrect)
{
form.setVisible(false);
successLabel.setVisible (true);
target.add (form, successLabel);
} else {...}
}
And don't forget to set form and successLabel .setOutputMarkupPlaceholderTag (true).
3) If you don't want to use one of this approach - I see only way to ask user for a phone number at your form and send him sms after submit :D
I'm having trouble finding which file to change the css in Moodle tool. In pagia the "view profile", the data is cut by "..." I would vizualisar throughout.
Follow the link to the image:
https://www.dropbox.com/s/ewzdf4mj4vwfmcc/sesi.JPG
Right click on it and press the INSPECT BUTTON in Chrome. You will see a panel that says wich file is the one been used.
In moodle, There is chance to come mostly css from selected theme.
If the css is not coming from selected theme then it may from standard theme or from particular module.
The css is put into one large file for performance. To switch this off, add this line to config.php
$CFG->themedesignermode = true;
Remove the line or set it to false after you have finished because it will make the site verrrry slow...
http://docs.moodle.org/dev/Creating_a_theme#Theme_designer_mode
Refresh the profile page and now you can use inspect element in Chrome, it should show the original css file.
It seems to be this file /theme/canvas/style/core.css
Around lines 288 to 296 (In Moodle 2.5.4)
.userprofile dl dt {
padding-left: 0;
font-weight: bold;
display: inline-block;
padding-right: 2%;
min-width: 100px;
width: 15%;
clear: both;
}
So edit this file in your theme
/theme/yourthemename/style/core.css
And add this to override the default min-width.
.userprofile dl dt {
min-width: 120px;
}
Refresh the profile page and it should display okay. 120px seems to be minimum for "Endereço de email" to be displayed in full.
Don't forget to remove this or set it to false after you have finished - config.php
$CFG->themedesignermode = false;
I emailed support and they replied by saying to add this code to my css.
**span.st_fblike_hcount span div.fb-like span iframe#f249dba5d33c086.fb_ltr
{
height: 234px !important;
max-width: 634% !important;
}**
I am new to programming and do not know where exactly I should add this code. Can some one please instruct me on how to correct this problem.
My url My Blog
Thanks
It looks as though you need to go into the plugin folder and modify the CSS file. In the sharthis folder is a file called sharthis.css
Open the file in a text editor and add the following code that they gave you.
span.st_fblike_hcount span div.fb-like span iframe#f249dba5d33c086.fb_ltr
{
height: 234px !important;
max-width: 634% !important;
}
Save and refresh the page and it should work
Just finished installing G+, Facebook Like and Tweet buttons onto my site (www.biginjapan.co) on each individual post. My issue though is that when you press the FB Like button the popup box opens up so you can share the article if desired, but part of it appears behind the sidebar. It looks like this:
Picture showing my problem
Am not sure if you'll need any code to advise me here, but if you do please let me know. All I want to do is make the Facebook popup appear above the sidebar so you can view it properly.
In your content div
#content {
overflow: hidden;
float: left;
width: 619px;
padding: 0pt 15px;
}
Remove overflow hidden.
Remove the line overflow: hidden for #content. it's on line 247.
It is layer issue. It can be handle by z-index. For the slider layer (content), use lower z-index means
.slider{ z-index: -1; }
For the popup layer (content ) use higher z-index than slider
.popup{ z-index: 123; }
I just created a Facebook application and it can be found here:
http://apps.facebook.com/tufuturo-ecoflora/
The deal is that when a Facebook user adds the application to it's profile and allows it it shows like inside an iframe with a gray or black fade that seems to be weird. Don't know why!!!!
Can you replicate this behaviour??
Can you tell me please if this is normal and how can I fix it??
Thanks!!!!
I haven't installed it to my profile, but even by default it shows gray fade that comes from this div in your iframe:
<div onclick="top.location.href=window.location.href" style="opacity: 0.5; position: absolute; top: 0px; left: 0px; min-width: 9999px; min-height: 9999px; width: 100%; height: 100%; z-index: 1000001;"></div>
You are redirecting the user to the authorization page at some point (via a Location header) (the https://graph.facebook.com/oauth/authorize URL). Instead, you want to echo out some JavaScript to do the redirect on the top frame:
<script>
top.location = 'https://graph.facebook.com/oauth/authorize?client_id=113054992072493&redirect_uri=http://www.jeanpaulruizvallejo.com/jeanpaul/arkix/Ecoflora/Tu_futuro_v_3/prueba01_redirect.php&scope=publish_stream,user_about_me,user_birthday,user_photos';
</script>
Or you could use the JS SDK which has the FB.login() function to make this transparent, for example: http://apps.facebook.com/fbrelll/auth/session
Already solved it by myself using a mix of session vars and asking the case, in one time I make a php header location and in another I make a JS top.location.