sanjaisc
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] Restrict downloads to specific user roles onlyThe Advanced Access Manager does not work! When I put a limit of 1 download with Anyone selected it still allows unlimited downloads. The documentation is very basic and does not have much troubleshooting information. I have sent a support email to the developers too and hope they will respond.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide WooCommerce ProductsHi Dave,
I have a quick question of my own. The nested short code works fine with -2 and -3 as additions to the second and third level nested code (see my response to a user query above). However I have a situation where I have used -2, -3 and -4. The -4 sequence does not work!
Is there a restriction on the number of short codes that can be nested? I need to nest 3 levels, is there a work around?
Thanks in advance for your assistance.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide WooCommerce ProductsHi dej888,
You can achieve the solution for Woo Commerce by doing the following:
- Leave the shop page as it is, so that people can browse the shop even when closed.
- Restrict access to shopping cart and checkout pages during the closed hours so that people do not place orders.
- Display a message during closed hours, if people try to place an order, with your shop timings and ask the visitor to come back later.
As an example you can use the following code.
- People will be able to place orders Monday to Friday between 8:00 am and 5:00 pm
- Between 5:01 pm and 7:59 am people will be able to browse your shop but if they try to place orders they will see a message with the shop timmings
Of-course you need to use the same code on the checkout page!
SAMPLE CODE
[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Friday”]
[time-restrict-repeat-2 type=”daily” ontime=”08:00:00″ offtime=”17:00:00″]
[woocommerce_cart]
[/time-restrict-repeat-2]
[time-restrict-repeat-3 type=”daily” ontime=”17:00:01″ offtime=”07:59:59″]
<p style=”text-align: center;”>Sorry we are unable to take your order at this time as we are closed. Our business hours are:</p>
<p style=”text-align: center;”>Mon – Fri : 8 am – 5 pm</p>
<p style=”text-align: center;”>Please come back later.</p>
[/time-restrict-repeat-3]
[/time-restrict-repeat]Hope this solves your problem.
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Brilliant and well thought out.Hi dej888,
Simple, just enclose the shopping cart/ checkout short code in Woo Commerce within the ‘Show/Hide Content at Set Time’ short code with the daily time option to match your opening and closing time. The plugin will restrict access to the cart/ checkout when your restaurant is closed. Visitors will be able to browse your menu but not place orders outside of opening hours.
If you want to go further you can create another setting that displays a “Sorry We Are Closed – Please Come Back Later” message when people attempt to place orders during your ‘closed’ hours.
You can contact me [Moderated]
After much poking around I have found the issue in my case which was from the .htaccess file.
I am using the All In One Security & Firewall plugin on the website. There is a rule provided by the advanced character string filter that blocks urls with an @ in it, like some images provided for retina devices that have it in the name (i.e. [email protected] vs twitter-icon.png).
Removing the rule “RedirectMatch 403 \@” from htaccess file fixes this issue.
Hope this will assist other who may not be using the plugin but may have blocked access in their .htaccess file otherwise.
Used it with the latest version of WordPress 4.4.1 and it works sweet as a charm! Updated themes and plugins and zipped the old theme in about 2 minutes on my local server.
Turns out it is not a Hosting issue. When I place the file in my root directory it is displayed without any problem. However when it is in the WordPress ‘uploads’ directory it does not load. I suspect it has something to do with my security plugin. I am investigating and will update asap.
Hi. My own hosting (A2Hosting) also will not serve @2x files! I have opened a ticket requesting a clarification and will update here as soon as I get a response.
Thanks for the prompt response.
I do not have direct access to the hosting account as it is a client website and I have CPanel access. However I have requested the client to open a ticket with the hosting company.
Just to test the hypothesis, I am going to copy the files on to my own hosting service to see if it works on it and will report back asap.
I tried it and it did not help. I also logged in via CPanel/ File Manager and checked that all files have 644 permission set anyway. See screenshot from the directory.
http://www.awesomescreenshot.com/image/898623/61ea945f4d49ae164c53de9ce19ba2e6
Thanks meanwhile for the support
Forum: Plugins
In reply to: [WooCommerce] Minimum Amount for Local Delivery – Working!Hi,
I just used the code exactly as described earlier in this post and it works flawlessly. However I think the version of Woocommerce was 2.2.1. Just open the two files side by side and implement the changes.
class-wc-shipping-free-shipping.php
class-wc-shipping-local-delivery.phpIf you have some understanding of PHP, it should be pretty straight forward.
Regards,
Forum: Plugins
In reply to: [WooCommerce] Minimum Amount for Local Delivery – Working!Works like a charm!!
I had been looking for a solution from quite sometime for a restaurant website. Restaurants typically have a free pick-up policy and a minimum order value for deliveries even when they charge for delivery.
Thanks a ton for sharing your work, its what makes the WordPress community great. Keep up the good work.
As a final after thought, I wonder if someone out there could make this a plugin that could be added to avoid having to modify core files on WooCommerce. Actually this should be a default option in WooCommerce.