Checkout Info page

Phoca Cart - complex e-commerce extension
Cliffdiver
Phoca Member
Phoca Member
Posts: 29
Joined: 05 Apr 2020, 09:10

Checkout Info page

Post by Cliffdiver »

Hallo,
maybe I don't see the simple solution or I forgot something or I missunderstood the info view at the end of the checkout.
I updated the shop from J3 to J4 and finally to J5. In J3 I had a template override to show some addition information on the info view such as which payment was taken and shipping info.

Now I saw, that there is an editor box in the backend for shipping methods. The same exists for payment.
Image

I entered some dummy text there and placed an order, but on the last page of the checkout nothing shows up, except the headline "INFO".
Image

What do I miss?
The print of the array was just for testing.
Every hint is wellcome.

Greets
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 470
Joined: 07 Nov 2018, 14:55

Re: Checkout Info page

Post by Nidzo »

You can use those fields in Payment and Shipping methods description for additional information.

Check shortcodes you can use there: https://www.phoca.cz/documentation/115- ... or-vendors
Cliffdiver
Phoca Member
Phoca Member
Posts: 29
Joined: 05 Apr 2020, 09:10

Re: Checkout Info page

Post by Cliffdiver »

Hallo,
Nidzo, thank you for your reply but that's not my problem. I allready entered some text in the mentioned backend area, but nothing is shown at the info screen.

If I look at the sql query i find two entries which are looking for paymentdescription_info and shippmentdescription_info.
If I post it manually in the DB i get these two desciption texts, but on the website nothing is shown.
I entered a print_r($this->t['infomessage']); in the template of default_order_download.php in the view folder of "info" but this array is empty. But why?
Backend configuration doesn't matter, as the if statement just asks, if there is an infomessage and if it isn't empty.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Checkout Info page

Post by Jan »

Hi, are you 100% sure the messages were added to payment or shipping method which was selected by the user in checkout?
If you find Phoca extensions useful, please support the project
Cliffdiver
Phoca Member
Phoca Member
Posts: 29
Joined: 05 Apr 2020, 09:10

Re: Checkout Info page

Post by Cliffdiver »

HY Jan, I am definitly sure.
What I found out so far is, that if I define the type of the shipping or payment methode (only POS or only Onlineshop) it doesn't work.
If I define that Typ to "for both" it appears at the info screen
Image
Cliffdiver
Phoca Member
Phoca Member
Posts: 29
Joined: 05 Apr 2020, 09:10

Re: Checkout Info page

Post by Cliffdiver »

So for everybody who is facing the same problem with the info page.
ISSUE: In phoca cart 3 I used an override to embed some article texts with placeholders on the Info page of the checkout. For any reason I set the type of the shipping and payment methods to "Only online-shop". I was thinking of using the shop also as a POS but this never happened. :D
So with the updates to the latest phoca shop I saw, that there is a possibility to write the shipping and payment description for the final info page, directly into the admin pages of the shipping an payment methods, but did not change the type, because I didn't see a reason for it. THAT finally lead to the problem, that the texts doesn't show up.

SOLUTION FOR NOW: I set the type of the shipping and payment methods to "BOTH" and everything works as it should. I think that this is a little hidden bug (or I produced one :) ). I will search the the logical part in the php file and will give an update if there is one.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Checkout Info page

Post by Jan »

OK, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply