Forum Replies Created

Viewing 15 replies - 1 through 15 (of 57 total)
  • Thread Starter dansart

    (@dansart)

    Thanks. It worked but not the way I like to have it.
    It should redirect to https AND redirect to the cached files…

    Thread Starter dansart

    (@dansart)

    Hi Emre

    Thanks for the fast reply.
    Unfortunately, the solution does not work.
    Tested with:
    https://htaccess.madewithlove.com/

    If I go to
    http://site.com
    I’ll get

    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    The new url is http://SITE.com/wp-content/cache/all//index.html
    The tests are stopped because of the L in your RewriteRule options.

    I should not add it to the WP fastest cache section. If I add it on top of everything, I’ll get:

    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    The new url is https://SITE.com/
    Test are stopped, a redirect will be made with status code 301

    But it should be https://SITE.com/wp-content/cache/all//index.html

    My .htaccess file:

    # BEGIN WpFastestCache
    # Modified Time: 12-08-22 16:15:27
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteCond %{HTTP_HOST} ^SITE.com
    # Start WPFC Exclude
    RewriteCond %{REQUEST_URI} !\/nh-login [NC]
    RewriteCond %{REQUEST_URI} !\/sesm2 [NC]
    RewriteCond %{REQUEST_URI} !\/sesm [NC]
    RewriteCond %{REQUEST_URI} !\/pos [NC]
    # End WPFC Exclude
    # Start_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=dansart
    # End_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP_HOST} ^SITE.com
    RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WP_FASTEST_CACHE_CSS_VALIDATOR|Twitterbot|LinkedInBot|WhatsApp|Mediatoolkitbot)
    RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot)
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{REQUEST_URI} !(\/){2}$
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond %{QUERY_STRING} !.+
    RewriteCond %{HTTP:Cookie} !comment_author_
    RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    RewriteCond /home/SITE/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    </IfModule>
    <FilesMatch "index\.(html|htm)$">
    AddDefaultCharset UTF-8
    <ifModule mod_headers.c>
    FileETag None
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
    </ifModule>
    </FilesMatch>
    # END WpFastestCache
    # BEGIN GzipWpFastestCache
    <IfModule mod_deflate.c>
    AddType x-font/woff .woff
    AddType x-font/ttf .ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE x-font/ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    </IfModule>
    # END GzipWpFastestCache
    # BEGIN LBCWpFastestCache
    <FilesMatch "\.(webm|ogg|mp4|ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|otf|ttf|svg|eot)(\.gz)?$">
    <IfModule mod_expires.c>
    AddType application/font-woff2 .woff2
    AddType application/x-font-opentype .otf
    ExpiresActive On
    ExpiresDefault A0
    ExpiresByType video/webm A10368000
    ExpiresByType video/ogg A10368000
    ExpiresByType video/mp4 A10368000
    ExpiresByType image/webp A10368000
    ExpiresByType image/gif A10368000
    ExpiresByType image/png A10368000
    ExpiresByType image/jpg A10368000
    ExpiresByType image/jpeg A10368000
    ExpiresByType image/ico A10368000
    ExpiresByType image/svg+xml A10368000
    ExpiresByType text/css A10368000
    ExpiresByType text/javascript A10368000
    ExpiresByType application/javascript A10368000
    ExpiresByType application/x-javascript A10368000
    ExpiresByType application/font-woff2 A10368000
    ExpiresByType application/x-font-opentype A10368000
    ExpiresByType application/x-font-truetype A10368000
    </IfModule>
    <IfModule mod_headers.c>
    Header set Expires "max-age=A10368000, public"
    Header unset ETag
    Header set Connection keep-alive
    FileETag None
    </IfModule>
    </FilesMatch>
    # END LBCWpFastestCache
    
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/SITE/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/SITE/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule Litespeed>
    RewriteEngine On
    RewriteRule .* - [E=noabort:1]
    </IfModule>
    
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
    AddHandler application/x-httpd-php74 .php
    Plugin Author dansart

    (@dansart)

    Hi

    It is not possible to add a custom field with this plugin. This is only to save / update customers.
    You can use these Tutorials to achieve this.

    https://www.cloudways.com/blog/custom-field-woocommerce-checkout-page/

    https://www.cloudways.com/blog/how-to-edit-delete-fields-and-email-in-woocommerce-custom-checkout-fields/

    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Ben

    If you have an existing Order, you will see the edit customer checkbox at the same place, as the add customer checkbox. Right at the bottom of the billing fields. You may have to edit the billing details first, to be able to see the checkbox.

    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Ngthanhdo
    Thanks for reporting the issue. I tested it and unfortunately I could not reproduce the bug.
    What you can do:
    – Deactivate all other plugins except for WooCommerce and the add customer plugin
    – Switch to a different Theme
    – Check the error php error logs

    If you like to share sensitive data, please send them to info@dans-art.ch

    Let me know if that helps.
    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Ben
    I just updated the plugin to Version 1.5.0.
    This includes also the feature to update existing customers via the plugin.
    Give it a try and let me know if it solves your issue.
    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi
    I just updated the plugin to Version 1.5.0.
    This includes the suggested grammar fix.
    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi
    I just updated the plugin to Version 1.5.0.
    This includes also a way to change the email format. Give it a shot and let me know, what you think.
    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi
    This is possible by just writing the email as you propose in the email field.
    The plugin will only create emails like: firstname.lastname@page-domain.tld

    I’m checking the possibilities to create your own formatting for the email for future releases.
    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Kelly

    To create a new customer with the plugin, you have to add or edit an order. In the billing section, you check the checkbox.
    See Screenshot
    https://ps.w.org/add-customer-for-woocommerce/assets/screenshot-1.png?rev=2610172
    The Customer will be added as soon you save the order.

    Plugin Author dansart

    (@dansart)

    Hi Kelly
    Thanks a lot for your input. I will fix the grammar in the next version.
    The options page can be found in the submenu of the general “Settings” page.
    your-page.xx/wp-admin/options-general.php?page=wac-options

    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Batmann36

    Thanks for your report. Does this happen every time or only in a special case?
    What was the name/data of the User you wanted to add?
    You can send an email to info@dans-art.ch with the details.

    This error happens when the wc_create_new_customer() cannot create a new user.

    Best, Daniel

    Plugin Author dansart

    (@dansart)

    Hi Ben
    Thanks a lot for your message and feature request.
    Currently, it is only possible to edit the user on the user management page.
    I think something like an “Update customer” checkbox would be handy. I will consider it for the next releases.

    Best,
    Daniel

    Plugin Author dansart

    (@dansart)

    Hi batmann

    This is not possible with the plugin. The data get saved only if a new customer is created.
    If you like to update the customer’s data, go to his profile (there is a link on the order page) and update it there.
    If the demand is high, I can implement this feature. But from my experience, the customer Data gets updated relatively rarely.

    Best regards, Daniel

    Plugin Author dansart

    (@dansart)

    Looks like the script does not get loaded. I assume this happens because of a plugin conflict or cache issue.
    Did you try the plugin without any other (except for WooCommerce) and with the default theme?

Viewing 15 replies - 1 through 15 (of 57 total)