Is the form included in a content region that has not been saved since you made changes to the form?
Looks good. I'll give it a try. Thanks ellimondo, thanks Clive.
Just to make sure you've seen this on this page - "Search can only search content that has been added through Perch and not static pages that you have added"
Is your problem concerning content that you've added through perch?
Client is getting spammed to death but doesn't want to pay for akismet. The honeypot collects probably half of the spam messages but the rest get through - approx. 25 messages per day about covid masks/viagra etc.
Could the form validators described on this page be used to set up a maths question or homemade captcha for preventing spam, or am I barking up the wrong tree?
Thanks in advance,
Thanks for the response, wouldn't value have to be perch_get:
'value' => perch_get('s'),
Hi, is there a perch content equivalent of perch_blog_post_field. I'm looking to replicate this for a list and detail page.
$title = perch_blog_post_field(perch_get('s'), 'postTitle', true);
In the above code I'd want to relace postTitle with serviceTitle. Does anyone know what I could put in place of perch_blog_post_field to get the serviceTitle from the query or am I completely barking up the wrong tree.
Thanks Hussein, you were right about the html files, but WorldPay actually specify how they are named and used (at least for my account type: "Select Junior"). I've had to upload 'resultY.html' (success) and 'resultC.html' (cancellation) to a File Manager within the Business Account Dashboard and then the customer is redirected back to my site with a meta refresh after purchase. They gave me a template for this. Maybe Drew and Rachel went through a different process for the Docs but this is how WorldPay told me to do it in case anyone else goes through the same process.
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <meta http-equiv="refresh" content="5;url=http://www.mywebsite.co.uk/thank-you.php" />
- <WPDISPLAY FILE=header.html>
- <p>Thank you for your Payment</p>
- <a href="http://www.mywebsite.co.uk/thank-you.php">Click here to be re-directed back to mywebsite</a>
I did see it, thank you, but WorldPay isn't redirecting back to the development site after a successfull test payment so perch never logs the purchase. Just wondered if anyone else had seen the same thing. No worries,
Follow up question: if test mode is set to true, would orders still show up in the CMS? I'm just struggling to get WorldPay to redirect to the return_url on test transactions, Anyone out there with experience in worldpay as the gateway? Thanks, Tom
Hi, the docs for WorldPay say 1. When you’re ready to check out, call
perch_shop_checkout()(with your options) at the top of your page before any HTML is output. How do you add those options in?
okey dokey. thank you
How would I multiply the shipping price by the quantity of items in cart.html? I need to price shipping per item.
Hi, if a search form is included on a page in a subfolder like /blog/ then the form below will try to go to /blog/search.php. How do I include the root of the site in the action="" attribute. Does it have to be manually like http://localhost/ and then change that to the site address later?
I tried including a layout template in the search-form.html template i.e. action="<perch:layout path="global.url"/>/search.php" but this didn't work. - Happy to be called dim if that's what I'm being.
<perch:form id="search" method="get" action="search.php"></perch:form>
Is Perch Feathers being phased out like the Gallery App or is it still in the medium/long term plans? - Thank you