Checkout display-limited fields

  • Posts: 40
  • Thank you received: 1
  • Hikashop Business
8 years 6 months ago #240697

-- HikaShop version -- : HikaShop Business 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5

Hello!

Actually, I have several questions about checkout.

1) "Step-style" checkout is really great. I've seen such type of checkout on many websites, and usually the last step in it is a confirmation page. It is really great, and i'd like to implement it.
My steps are: cart - login - adress - shipment+fields - payment. On the last step (confirmation) I want to see cart status and then: address, shipmethod, fields, paymentmethod - with only chosen option visible. I don't have to see previously unselected methods, address options etc. Instead - a small edit links near all chosen options that take me back to corresponding step. Is there a feature to implement this in hikashop? (see current workflow in attach)

2) Anyway, even if there is no such possibility, I can add all the information on the order to the last step, then add my custom js which will hide unselected options and add necessary links.

But.

As I mentioned, I add a "fields" field to shipment step. There I have 5 dropdown fileds. First with 4 options. Other 4 dropdown fields have a "display limit" option so each of them is shown or hidden depending on value selected in the first dropdown (each time 1 dropdown shown, 3 hidden). It is working exactly as needed. But only on shipment step. When I add "fields" field to the last step of the checkout, "display limit" option just doesnt work - all four additional dropdowns are always shown. Can it be fixed?

3) The last issue is close to the second. As I said, 4 dropdowns visibility is based on the first dropdown selected value, and in any case I must see only two dropdowns - the first and one of the other four. But why can I see all five of them in my order description in the back-end? Aslo - in e-mail which is sent to administrator, in e-mail to customer, in invoice and in shipping invoice? I dont need them there. Moreover, personally I can accept it. But if unprepared customer see all these unwanted fileds, he will be totally puzzled.
Is there any sollution?
If there isn't, can you give me the list of filenames which I can manually edit to hide these fields from order description in back-end, from invoices and e-mails?

Have a nice weekend!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 6 months ago #240744

Hi,

1. You can use the "cart status" view to get a display of the cart without modification possibility. You can use the "status" view to display the shipping and payment methods selected.
For the address, you can use the "address" view. You'll get the edit buttons there and we didn't write yet a specific view to have the addresses dsiplayed without modification capability on the checkout.
Nevertheless, you can easily hide the edit icons, etc with CSS code you can add to your website.
For example, to remove the edit icons you can do something like that:
.hikashop_checkout_page_stepXXX .hika_edit{ display: none; }
where XXX is to be replaced by the step number, so probably 5 in your case.
www.hikashop.com/support/documentation/1...ize-the-display.html

2. It should work on any step. So there must be some kind of javascript error on your page. You should see the error in the error console of your browser when you're on the page. Otherwise, could you provide a link to the shop so that we could check on that ?

3.

But why can I see all five of them in my order description in the back-end?

The limit display is not enforced on the backend so that you have all the liberty to enter what you want where you want as the shop owner.

Aslo - in e-mail which is sent to administrator, in e-mail to customer, in invoice and in shipping invoice? I dont need them there.

You should normally only see in the emails the fields that have been filled.
If you edit the emails via the menu System>Emails, you can see in the preload area that there is a check on that:
if(empty($data->cart->$fieldName))
				continue;
so that empty fields are not displayed. So I suppose that it comes down to how you configured your fields and that you must have something in them by default instead of no value.

The following user(s) said Thank You: rndm

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 1
  • Hikashop Business
8 years 6 months ago #241023

Nicolas, thank you a lot. Now I'm sure I'll be able to configure everything.

But you haven't covered one thing: how do I hide these fields from invoices?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 6 months ago #241053

Hello,
If they are displayed through your invoices, the solution can be to directly edit the code of the "Invoice" file of the "Order" view of your Back-end template via "Hikashop->Display->Views".

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 1
  • Hikashop Business
8 years 6 months ago #241109

Hello, Mohamed! I didn't know that invoices can be edited in Views. I thought it was somewhere in configuration, like e-mails.
Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum