Re: validation for custom field
The post request is in the controller as far as I can see. in catalog/controller/account/address.php I've added: if (isset($this->request->post['telephone2'])) { $data['telephone2'] = $this->request->post['telephone2']; } elseif (!empty($address_info)) { $data['telephone2'] = $address_info['telephon...
Jump to post- Mon Aug 04, 2025 1:46 pm
- Replies 2
- Views 8331
validation for custom field
For oc 3.0.3.2 I've building a modification in order to add two extra fields in the shipping address only - so I'm not using the default custom fields capability. It's working fine, but one of the fields I'm adding is an additional email field (for shipping purposes only). It's a required field and ...
Jump to post- Sun Aug 03, 2025 8:09 pm
- Replies 2
- Views 8331
Re: [SOLVED] extra fields in the delivery (shipping) address
find: $this->db->query("UPDATE `" . DB_PREFIX . "order` SET invoice_prefix = '" . $this->db->escape($data['invoice_prefix']) . "', store_id = '" . (int)$data['store_id'] . "', store_name = '" . $this->db->escape($data['store_name']) . "', store_url = '&qu...
Jump to post- Sat Jul 19, 2025 4:58 pm
- Replies 12
- Views 5232
Re: [SOLVED] extra fields in the delivery (shipping) address
ok how to add an extra field (or more) in the shipping address only. This is for guest checkout only at the moment, but could be applied in the registered user as well I suppose. But it might be a bit more complicated as it stores the addresses. I wanted to add an extra telephone field in the shippi...
Jump to post- Sat Jul 19, 2025 4:58 pm
- Replies 12
- Views 5232
Re: extra fields in the delivery (shipping) address
well I was planning on posting the complete solution first, but thanks
Jump to postkhnaz35 wrote: ↑Sat Jul 19, 2025 12:12 pmMarking it as SOLVEDvourlismenos wrote: ↑Sat Jul 19, 2025 12:36 amThank you!!!
/api/shipping.php was the file I was missing! that worked
ADD Creative wrote: ↑Fri Jul 18, 2025 2:52 amThe shipping address is saved to the session via api/shipping/address. This then get saved via api/order/edit.
- Sat Jul 19, 2025 4:23 pm
- Replies 12
- Views 5232
Re: extra fields in the delivery (shipping) address
Thank you!!!
/api/shipping.php was the file I was missing! that worked
Jump to postADD Creative wrote: ↑Fri Jul 18, 2025 2:52 amThe shipping address is saved to the session via api/shipping/address. This then get saved via api/order/edit.
- Sat Jul 19, 2025 12:36 am
- Replies 12
- Views 5232
Re: extra fields in the delivery (shipping) address
The custom fields - for the address in my case - will appear in the billing address. I just want to display an extra phone field in the shipping address (only). I can't do that through the custom fields. The information in order_info.twig comes from admin/controller/sale/order.php - I've already fix...
Jump to post- Thu Jul 17, 2025 9:24 pm
- Replies 12
- Views 5232
Re: extra fields in the delivery (shipping) address
ok the order (as a guest) works great. The extra field is added and displayed in the orders. My issue now, is when I try to edit the order as an admin. The extra field is displayed in the edit order form and the entry is there. But if I save, it disappears. Any additions are not saved in the databas...
Jump to post- Thu Jul 17, 2025 7:14 pm
- Replies 12
- Views 5232
Re: extra fields in the delivery (shipping) address
yeap.... that's the part I've edited, and still nothing.
So I probably did something wrong.... I'll check again I suppose :/
*** EDIT ***
arghhh.... got it.... It was a typo.
I'm keeping the thread open to post the complete solution, when I'm done, for anyone interested
- Thu Jul 17, 2025 2:56 pm
- Replies 12
- Views 5232
[SOLVED] extra fields in the delivery (shipping) address
Hi, working in oc 3.0.3.2 and php 7.4.33 It's a copy of the actual website with a template called nou and several extensions, but they don't really affect this particular modification. I'm trying to add some extra fields in the delivery address (not billing address). I've added the first field (as a...
Jump to post- Wed Jul 16, 2025 8:21 pm
- Replies 12
- Views 5232
Re: different number of decimals between admin and front end
of course, done!
Jump to postpaulfeakins wrote: ↑Wed Feb 05, 2025 7:30 pmSo could you add [SOLVED] to the start of this topic title?
- Wed Feb 05, 2025 8:02 pm
- Replies 10
- Views 1537
Re: different number of decimals between admin and front end
It worked like a charm! Thank you I made a small xml and uploaded it in vqmod and works great. You can also do this: in system/library/cart/currency.php add variable: private $decimal_place_override = false; add function: public function decimal_place_override_set ($value) { $this->decimal_place_ove...
Jump to post- Wed Feb 05, 2025 6:10 pm
- Replies 10
- Views 1537
Re: different number of decimals between admin and front end
Thank you I'll try it as well! You can also do this: in system/library/cart/currency.php add variable: private $decimal_place_override = false; add function: public function decimal_place_override_set ($value) { $this->decimal_place_override = (int)$value; } in function format, replace this: $decima...
Jump to post- Wed Feb 05, 2025 3:21 pm
- Replies 10
- Views 1537
Re: different number of decimals between admin and front end
Thank you that looks promising! I'll have a go and see if it works out ! Sorry you are right, my question was too vague. I have website in oc 3.0.3.2 in php 8.2. It has several extensions and modifications and a very peculiar owner. The product prices have indeed 4 decimals in the price, but that's ...
Jump to post- Tue Feb 04, 2025 11:53 pm
- Replies 10
- Views 1537
Re: different number of decimals between admin and front end
Sorry you are right, my question was too vague. I have website in oc 3.0.3.2 in php 8.2. It has several extensions and modifications and a very peculiar owner. The product prices have indeed 4 decimals in the price, but that's shown when you actually edit or create the product. In the product list a...
Jump to post- Tue Feb 04, 2025 3:30 pm
- Replies 10
- Views 1537
[SOLVED] different number of decimals between admin and front end
Is there a way - custom code/extension - to display different number of decimals in the front end and the the admin? I don't want to modify how the prices are stored, just how they are displayed. For example I want to display the prices with three decimals in the admin side, but only two in the fron...
Jump to post- Fri Jan 31, 2025 7:44 pm
- Replies 10
- Views 1537
Re: problem with email
True.ADD Creative wrote: ↑Sat Feb 10, 2024 8:03 amThat change is fine as long as your SMTP username is an email address. If you ever changed providers it may break things.
Even though all provides (so far) used the email as a username, I think the right way is to avoid that. Jump to post
- Sat Feb 10, 2024 6:12 pm
- Replies 6
- Views 1187
Re: problem with email
I will, still testing it!
Jump to post- Sat Feb 10, 2024 12:56 am
- Replies 6
- Views 1187
Re: problem with email
I found a solution very similar to the one you've sent. //$mail->setFrom($this->request->post['email']); $mail->setFrom($this->config->get('config_email')); //$mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES, 'UTF-8')); $mail->setSender($this->request->post['email']); The...
Jump to post- Fri Feb 09, 2024 9:10 pm
- Replies 6
- Views 1187
problem with email
I have a 2.1.0.1 oc website. Recently we moved our email hosting from our webhosting, to a third party (hostinger) in order to have more space and to use imap efficiently. I just realised that after this move, the contact form of the website (and only the contact form) has some problems. The protoco...
Jump to post- Fri Feb 09, 2024 3:26 am
- Replies 6
- Views 1187