[CLOSED] Hide button in Ajax Quick Checkout
Hello,
Code: Select all
<button id="qc_confirm_order" class="btn btn-primary btn-lg btn-block ">Confirm Order</button>
in the checkout page.
Opencart 3.0.3.8 Jump to post
- Mon May 06, 2024 3:40 am
- Replies 3
- Views 986
Re: error when install plugin
Yes, all things are correct In opencart version, I'm changing the line in this file upload/admin/view/template/marketplace/installer.twig from accept="ocmod.zip". To accept=".zip". In this version 4.0.2.3 needs any changes? Yours doesn't make sense, because there is no accept=&q...
Jump to post- Fri Nov 03, 2023 10:37 am
- Replies 12
- Views 2411
Re: error when install plugin
Okay. How I can know what needs to change in the custom plugin, Is there any article that can help to know what needs to change? Jump to post
- Fri Nov 03, 2023 10:33 am
- Replies 12
- Views 2411
Re: error when install plugin
Are you using the correct folder structure for your ocmod.zip file? E.g. something like this: install.json admin catalog Also, you should fill in the install.json correctly, for name, version etc. Yes, all things are correct In opencart version, I'm changing the line in this file upload/admin/view/...
Jump to post- Sat Oct 28, 2023 12:07 am
- Replies 12
- Views 2411
Re: error when install plugin
I'm developing the plugin
it's working on OC 4.0.0.0 But when installing last version of opencart will show this error Jump to post
- Fri Oct 27, 2023 9:26 pm
- Replies 12
- Views 2411
error when install plugin
When trying to install a custom payment plugin for Extensions->installer will get the below error " Warning: Could not find install.json!" I can see the plugin in the storage -> marketplace folder Also I already add install.json file { "name": "", "version": &...
Jump to post- Fri Oct 27, 2023 11:35 am
- Replies 12
- Views 2411
Re: Generate random value oc 3.0.3.8
if (!isset($this->config->get['secret_token'])) { $random_number = bin2hex(random_bytes(14)); $this->session->data['secret_token'] = $random_number; } if (isset($this->session->data['secret_token'])) { $data['secret_token'] = $this->session->data['secret_token']; unset ($this->session->data['secret...
Jump to post- Wed Oct 18, 2023 8:04 pm
- Replies 10
- Views 886
Re: Generate random value oc 3.0.3.8
I want to generate a random value for the password. I'm using below code: if (!isset($this->config->get['secret_token'])) { $random_number = bin2hex(random_bytes(14)); $data['secret_token'] = $random_number; } Value will be generated But when the page is refreshed will generate a new one. How can s...
Jump to post- Wed Oct 18, 2023 7:33 am
- Replies 10
- Views 886
Re: Generate random value oc 3.0.3.8
Save the token in the database: If you're setting the value in the admin settings, you will typically save this in the setting table of OpenCart. If you're using the admin settings controller, there is usually a save function that saves all the settings into the database. Retrieve the token from th...
Jump to post- Wed Oct 18, 2023 5:55 am
- Replies 10
- Views 886
Re: Generate random value oc 3.0.3.8
Thank you for your reply
I'm working on admin side Jump to post
- Tue Oct 17, 2023 8:00 pm
- Replies 10
- Views 886
[SOLVED] Generate random value oc 3.0.3.8
I want to generate a random value for the password. I'm using below code: if (!isset($this->config->get['secret_token'])) { $random_number = bin2hex(random_bytes(14)); $data['secret_token'] = $random_number; } Value will be generated But when the page is refreshed will generate a new one. How can sa...
Jump to post- Tue Oct 17, 2023 8:23 am
- Replies 10
- Views 886
Re: Add more details
You did not mentioned the OpenCart version, theme name, and the list of fields that you want to get into the order detail. Also, explain the where customer will enter the information on those new fields on the checkout page or cart page? Moreover, this falls under the custom work, You must hire the...
Jump to post- Wed Oct 11, 2023 7:49 pm
- Replies 3
- Views 553
Add more details
In the "Order Details" section I need to add more information about orders, such as a simple description.
How can do that, I didn't mean to edit manually. I need to edit that from the custom plugin(programmatically)
Thank you,
- Wed Oct 11, 2023 9:23 am
- Replies 3
- Views 553
Re: Redirect to external URL
Try. return $this->response->redirect($redirect); will get error undefind and in the console will get index.php:1 Access to XMLHttpRequest at 'URL' (redirected from 'https://URL/index.php?route=checkout/confirm') from origin 'https://URL' has been blocked by CORS policy: Response to preflight reque...
Jump to post- Mon Oct 09, 2023 8:54 pm
- Replies 7
- Views 1682
Re: Redirect to external URL
Try. return $this->response->redirect($redirect); will get error undefind and in the console will get index.php:1 Access to XMLHttpRequest at 'URL' (redirected from 'https://URL/index.php?route=checkout/confirm') from origin 'https://URL' has been blocked by CORS policy: Response to preflight reque...
Jump to post- Mon Oct 09, 2023 8:08 pm
- Replies 7
- Views 1682
Re: Redirect to external URL
You haven't told us the whole story here. The original redirect method from the system/library/response.php class has this signature: public function redirect($url, $status = 302) { header('Location: ' . str_replace(array('&', "\n", "\r"), array('&', '', ''), $url), ...
Jump to post- Mon Oct 09, 2023 7:40 pm
- Replies 7
- Views 1682
Redirect to external URL
Hi All I'm working on opencart 3. I want to make some changes to the custom plugin. After the customer selects the payment method I want to redirect to the external page. In the index function, I try to use return $this->response->redirect(URL) But will get the below error. Warning: header() expects...
Jump to post- Mon Oct 09, 2023 8:50 am
- Replies 7
- Views 1682
Re: addOrderHistory didn't work with webhook
why didn't called? Could you please provide me the suggested reason? And if didn't work what's the best solution to adding a webhook updated? Thank you, Did you check for your callback URL in your web access log. If it not there then it could be that the URL is wrong or the request is being blocked...
Jump to post- Wed Apr 05, 2023 11:22 am
- Replies 19
- Views 3950
Re: addOrderHistory didn't work with webhook
why didn't called?ADD Creative wrote: ↑Tue Apr 04, 2023 6:56 amIf there is nothing in the web access log, maybe it's not being called.
Could you please provide me the suggested reason?
And if didn't work what's the best solution to adding a webhook updated?
Thank you, Jump to post
- Wed Apr 05, 2023 12:38 am
- Replies 19
- Views 3950
Re: addOrderHistory didn't work with webhook
Anything else in your error log or the PHP error log. Also check the web access log to see the status code. You may already have it, but it's a common mistake for payment extensions. You would also need some sort or authentication, otherwise anyone could call your webhook and change the status of a...
Jump to post- Tue Apr 04, 2023 3:54 am
- Replies 19
- Views 3950