Hi, i'm trying to add a script to my checkout page only but can't make it work, the time doesn't appear and also don't know if the script is running
Here's what I did:
1) Added to the page as text:
<div>Registration closes in <span id="timedown"></span> minutes!</div>
Registration closes in...
Hi! I want to add a javascript countdown on my checkout page
How can I add this script on the checkout page ONLY? I'm using Wordpress, don't want to add a plugin for this
See http://jsfiddle.net/robbmj/vpq5toeq/4/ The one that doesn't restart, I know how to add the HTML, but not the JS.
Thanks...
Hey Ryu
Woocommerce: On the checkout page I want to move the email field first on the list (it is after the name and last name field atm). How could I do that? Thanks!
Wow, seems it is way more complicated than I thought, but I get a file not found error when I try it; maybe because I should change SCRIPT_FILENAME for the real name(really no idea which is)
19:06:09 [error] 5297#5297: *1 FastCGI sent in stderr: "Primary script unknown" while reading response...
no, there isn't a wc-api folder but there is a site.com/wc-api/v3 that exists it allows a rest api request to the site I suppose.
ls /var/www/html/wc-api/
ls: cannot access '/var/www/html/wc-api/': No such file or directory
# ls /var/www/html/
index.nginx-debian.html wp-comments-post.php...
@SmokeTree Yes, I just thought that could happen because there was not root directive, but I kept getting the error because there isn't a html/wc-api directory
is there a way to call a url?? like root or something site.com/wc-api ???
2017/03/20 16:51:44 [error] 5138#5138: *10 open()...
@SmokeTree Thanks for your reply, I just checked and there's nothing on /usr/share/nginx/html/ as is supposed. I don't know why it is calling there, Never installed or touched CentOS.
Also my file permision are correct: 755 for directory and 644 for files
Keep in mind that when I allow traffic...
These are the errors coming using cat and tail:
1) ~# cat /var/log/nginx/access.log | grep "/wc-api"
[x.y.z.a] - ck_[key] [19/Mar/2017:10:02:5 8 -0400] "GET /wc-api/v2/coupons?consumer_key=ck_[ck]...
Yes seems like there's a woocommerce error with wc-api, but my permalinks are set to Post name, just updated them just in case and the issue was still there. Maybe I need to update AllowOverride as the second answer said or something similar for it to work because it's a nginx server and doesn't...
@CCarter Thanks for your help; yes, the script has no errors;
When I add this in :80 section I get the 301 moved message again (and it's not supposed to do that anymore right?)
location ^~ /wc-api/ {
try_files $uri $uri/ /index.php?$args;
break;
}
I just changed the...
Thanks, @CCarter works similar, I no longer have the 301 moved permanently error, instead i'm still getting a 404 not found (see below) The third post in this thread has all my nginx site config
# curl http://site.com/wc-api/v3
<html>
<head><title>404 Not Found</title></head>
<body...
Hello Builders!
I'm facing an issue, an API needs to use http to run properly on my site and I'm forcing all my traffic to use HTTPS. I've done some modifications but still can't make it work. Before adding the redirect on /wc-api/, when I used curl http:// site .com/wc-api/v3 (the url that...
tried this without luck :( (see below)
Also realized I had force ssl activated in my cdn so it was showing the "301 Moved Permanently" but still API can't run until /wc-api/v3 is forced to go thru http
server {
listen 80;...
location / {
return 301...
Hello Builders,
Is there a way to exclude api requests only and let those come through as http, I force all my traffic thru https via my nginx site config (see code below) but I need to exclude all requests to xx.com/wc-api/v3 (api doesn't work if I 301 Move it)
The other option is to allow both...
Holy sh$t plugin is full retarded
Plugin case: It updates the new carts to abandoned after (and then I can send the recovery mail) ONLY when the Admin access the cart list tab on the plugin options and/or Manually updates the cart list tab using an option there; It ruins the whole purpose of the...
hahaha, yep I've messed everything a dozen times a while ago and learned to always make a snapshot so I always can do a backup if anything goes wrong
Also, I use crontab -e (cronjob -e doesn't work) and when i tried to restart the cron using sudo /etc/init.d/cron restart it seemed good, but...
Hi, I'm trying to install a cart recovery plugin on my woocommerce site
For that, I have to set up a server cron( for it to execute the task(send recovery mail) without the need for someone to visit the site)
Now, in the doc from the plugin it says how to set it up using a cpanel like...
Hi, i'm looking for ways to setup mail on my store
I've been researching and found out services like klaviyo but seems really pricy
Basically I'm looking for a way to send a receipt after the customer bought (or sign on the newsletter) from the store and then do follow-up/ email marketing/...