Forum
Shop sample pages
Where can I see sample shop pages for the whole cart & checkout process? I downloaded the Nest master files but that is for Perch Runway - I am running standard Perch.
I can see the templates, but not the pages so I can't quite get my head around the whole flow of it all.
There aren't any sample pages, as there isn't a fixed flow. The idea is that you can build the flow you want for your own site.
OK, maybe you can help with my issue then:
I am using manual payment gateway as no payment will be takem online. So I have the cart page which has simply:
The cart.tpl form goes to shop/checkout/index.php, which has:
So after I click checkout, the order is placed but I am not redirected to my success page. Instead, it stays on the checkout page and I get blank content after perch_shop_checkout ... in other words, anything above that is shown and nothing below it. If I remove that line, the full page displays correctly, but the order is obviously not placed. It is as if there is an error in the code, but it is working so there can't be!
Am I being really dim somewhere here?
Error log says:
PHP Warning: Cannot modify header information - headers already sent in C:\UniServerZ\www\Vanilla-CMS\perch\core\lib\PerchUtil.class.php on line 194, referer: https://localhost/vanilla-cms/shop/cart/
You can't have anything, even white space before sending redirect headers. So make sure that you aren't outputting HTML or anything else.
No, there isn't anything :/
That is why you are getting that error, so there is somewhere. See: https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php
This is so frustrating. I get the error specifically when I add this bit:
If I remove it, all works fine. Specifically, if I remove the options, so that I have just:
Then all is fine. What the hell is it about the options that it doesn't like?!
perch_shop_checkout()
is trying to redirect to your success page, but it can't because output has already begun.Can you show us
shop/checkout/index.php
in its entirety?Sure - thanks for you help
You need to call
perch_shop_checkout()
BEFORE any HTML is output. You've got about 20 lines of HTML being sent before your redirect.Oooh, I see!
Yep, that was was it! Thanks for your patience and stellar support as always!