Customised checkout

  • Posts: 57
  • Thank you received: 5
10 years 11 months ago #161562

Hi Hika team,

I am setting up a shop for a cantine in a business building.

I have several questions regarding the checkout process.

1. Checkout checkboxes related to eachother.

I have a step that is consisting of two custom fields of the type checkbox.

Eat in | Yes | NO
Deliver | Yes | NO

Both fields are required.

Q-1. Is it possible that one checkbox is automatically checked based on the users' choice?

Example:

User selects "eat in" as "Yes".
"Deliver" is automatically set to "No" without requiring the user to click it.

User selects "deliver it" as "Yes".
"Eat in" is automatically checked as "no".

I am also considering the option where the default state of the checkboxes is pre-set to "no"

Q-1.1. Is it possible to have the default states set to "no" but the fields still require to be clicked?

Example:

User clicks "Yes" in custom field "Eat in", checkbox in custom field "Deliver" stays at "no" and is validated as clicked and vice versa.

2. Checkout steps based on custom field checkbox choice.

Q-2. Is it possible, If a customer chooses to 'Eat in' that the checkout goes to step "cart" and skips step 'address'?

Example:

Checkout type -> Guest -> ask address on registration -> no.
Email confirmation field -> yes

Checkout process tree:
Login -> Fields+Payment -> Address -> Cart+Status

At step "Fields" user selects "Eat in" -> yes.
Next step skips 'Address' and goes to 'Cart'

At step 'Fields' user selects 'Deliver' -> yes
Checkout proceeds as normal(to address) as shown in the config above.

3. Customer name and customer email are bound together at the backend

Q-3. Is it possible to separate them, preferably in two columns?

Example:

When completing an order when I go in the backend and click on orders, under the customer row I see the following.

Customer
John This email address is being protected from spambots. You need JavaScript enabled to view it.


Desired result

Customer Email
John Doe This email address is being protected from spambots. You need JavaScript enabled to view it.

Or

John Doe This email address is being protected from spambots. You need JavaScript enabled to view it.

4. Proceeding to next step when clicking 'next' when creating an address.

Address selecor is set to "list"

When a user gets to step "address" he is presented with the address view form.
When completing the form the view refreshes to an overview of the address.

Q-4. Is it possible to make the "next" button in the address form move the checkout to the next step instead of refreshing to an overview of the addresses?

Last edit: 10 years 11 months ago by Hristov.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #161577

Hello,

Q-1. Is it possible that one checkbox is automatically checked based on the users' choice?

Example:

User selects "eat in" as "Yes".
"Deliver" is automatically set to "No" without requiring the user to click it.

User selects "deliver it" as "Yes".
"Eat in" is automatically checked as "no".

I am also considering the option where the default state of the checkboxes is pre-set to "no"

That will require some code customization so the best solution to do that will probably be to use a dropdown instead of checkboxes.

Q-2. Is it possible, If a customer chooses to 'Eat in' that the checkout goes to step "cart" and skips step 'address'?

Example:

Checkout type -> Guest -> ask address on registration -> no.
Email confirmation field -> yes

Checkout process tree:
Login -> Fields+Payment -> Address -> Cart+Status

At step "Fields" user selects "Eat in" -> yes.
Next step skips 'Address' and goes to 'Cart'

At step 'Fields' user selects 'Deliver' -> yes
Checkout proceeds as normal(to address) as shown in the config above.

To do that you'll also have to use some code customization through the files of the "Checkout" view of your front-end template via "Hikashop->Display->Views", but it will require some development skills.

Q-3. Is it possible to separate them, preferably in two columns?

Example:

When completing an order when I go in the backend and click on orders, under the customer row I see the following.

Customer
John This email address is being protected from spambots. You need JavaScript enabled to view it.


Desired result

Customer Email
John Doe This email address is being protected from spambots. You need JavaScript enabled to view it.

Or

John Doe This email address is being protected from spambots. You need JavaScript enabled to view it.

To do that you'll just have to edit these lines through the "show" file of the "order" view of your back-end template through "Hikashop->DIsplay->Views" :
          <tr class="hikashop_order_customer_name">
            <td class="key"><label><?php echo JText::_('HIKA_NAME');?></label></td>
            <td><span id="hikashop_order_customer_name"><?php echo @$this->order->customer->name; ?></span></td>
          </tr>
          <tr class="hikashop_order_customer_email">
            <td class="key"><label><?php echo JText::_('HIKA_EMAIL');?></label></td>
            <td><span id="hikashop_order_customer_email"><?php echo @$this->order->customer->user_email; ?></span></td>
          </tr>

The following user(s) said Thank You: Hristov

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

  • Posts: 57
  • Thank you received: 5
10 years 11 months ago #162771

Hello again,

Going back to question 2, I would like to ask if you can point me in the right direction.

Q-2. Is it possible, If a customer chooses to 'Eat in' that the checkout goes to step "cart" and skips step 'address'?

Example:

Checkout type -> Guest -> ask address on registration -> no.
Email confirmation field -> yes

Checkout process tree:
Login -> Fields+Payment -> Address -> Cart+Status

At step "Fields" user selects "Eat in" -> yes.
Next step skips 'Address' and goes to 'Cart'

At step 'Fields' user selects 'Deliver' -> yes
Checkout proceeds as normal(to address) as shown in the config above.


In the back end I see a total of 23 views related to the checkout. Which ones are related to handling the checkout steps?

Also, in your opinion, what is the required programming level for making it work from 1 to 5, with one being the lowest.

I am a beginner in php and at the moment to me it looks like a basic "if else" is what is required.

I refer to more experienced people if I can't do it myself and I try to gather as much information for them in advance.
It will be really helpful if you can provide me with some basic map of the files that need to be looked at.

Kind regards,
Drago.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #162783

Hello Drago,
You'll have to edit the "address" file of the "checkout" view of your front-end template via "Hikashop->Display->Views". Also, if you want to know which product is in your cart, you'll find it on the $this->rows PHP variable.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum