Post by Springstil » Tue Sep 19, 2023 8:21 pm

Hello all,

I would like to have the customer's default shipping address stored automatically. The same applies to the shipping and payment method. Is this possible?

The same address can also be used for shipping. The shop should only help with orders and not function as a "real" shop.

Newbie

Posts

Joined
Thu Jul 27, 2023 5:21 pm

Post by Johnathan » Tue Sep 19, 2023 9:29 pm

1. Disable guest checkout in System > Settings, in the Option tab. That way customer's will be forced to register, which will store their shipping/billing address.

2. If you don't want to have customers choose a shipping method, disable "Require Shipping" on all products. That will skip the shipping address and delivery method parts of checkout.

3. To let customers complete an order without payment, enable the Cash On Delivery payment method in Extensions > Extensions > Payments. You can rename it using the language editor (Design > Language Editor) or by modifying this file:

/extension/opencart/catalog/language/en-gb/payment/cod.php

If you use the Language Editor, the filepath would be the same.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Springstil » Wed Sep 20, 2023 4:02 pm

Johnathan wrote:
Tue Sep 19, 2023 9:29 pm
3. To let customers complete an order without payment, enable the Cash On Delivery payment method in Extensions > Extensions > Payments. You can rename it using the language editor (Design > Language Editor) or by modifying this file:
Thank you that works, but Cash On Delivery can no longer be selected for noship articles. I would still have to change the check. Is that possible?

EDIT:

I was able to switch the exam, but unfortunately it is not directly selected as the default.

Newbie

Posts

Joined
Thu Jul 27, 2023 5:21 pm

Post by Johnathan » Wed Sep 20, 2023 9:44 pm

Yes, unfortunately you still have to click the Payment Method choice and choose it. To avoid that you'd have to modify a bunch of checkout files, which is a bit complicated. I'd recommend finding someone to do that for you unless you're comfortable wading through files and modifying PHP & HTML.

If you need to find a developer, you can post a request in the OpenCart "Commercial Support" forum, which is checked by a number of OpenCart developers. You can also try checking out the OpenCart "Partners" area.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Springstil » Wed Sep 20, 2023 11:00 pm

I can do a little.AFromAbe But unfortunately I don't understand exactly how the files are connected. Which files would have to be adapted, then I would take a look. If they are known :)

Newbie

Posts

Joined
Thu Jul 27, 2023 5:21 pm

Post by Johnathan » Fri Sep 22, 2023 3:04 am

You'd need to modify the main checkout page and the payment method page. The controller files are here:

/catalog/controller/checkout/checkout.php
/catalog/controller/checkout/payment_method.php

The view files are here:

/catalog/view/template/checkout/checkout.twig
/catalog/view/template/checkout/payment_method.twig

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 2 guests