skip to Main Content

How to send http request in flutter

session.post( 'http://myopencart.example.com/index.php?route=api/cart/add', params={'api_token':'768ef1810185cd6562478f61d2'}, data={ 'product_id':'100' 'quantuty':'1' } ) How to I post this in flutter. In this api there is two type of data to be posted. I need solution for this I didn't tried yet.

VIEW QUESTION

How to add new method in Opencart 2 – Redis

Why when i try to call $this->cache->keys('*') method in any controller im getting error: Uncaught Error: Call to undefined method Cache::keys() in /catalog/controller/product/category.php When i call $this->cache->set($key, $value) or $this->cache->get($key) methods in any controller they work fine. How to make…

VIEW QUESTION

Opencart 4 Extension Route throws 404 – PHP

I'm trying to develop an Opencart4 Extension and for some reason it's throwing a 404 when I try to access it. I've the following structure: /opencart/extensions/myextension/admin/controller/payment/myextension.php /opencart/extensions/myextension/admin/template/payment/myextension.twig and here's the controller: <?PHP namespace OpencartAdminControllerExtensionMyExtensionPayment; class MyExtension extends OpencartSystemEngineController { public…

VIEW QUESTION

Custom Page in Opencart 3 – PHP

I am not a coder and have followed the instructions that are available to create a custom page in Opencart 3.0.3.8 under PHP 8 using localhost. The structure is: admincontrolleraddproductaddproduct.php adminmodeladdproductaddproduct.php adminlanguageaddproductaddproduct.php adminviewtemplateaddproductaddproduct.twig I have tried hard to find the…

VIEW QUESTION

301 redirect of pages not working opencart – SEO

direct some pages to the homepage of opencart. For examle: https://mywebsitenamehere.com/index.php?route=product/manufacturer 301 redirect to: https://mywebsitenamehere.com/ I would usually add something like this: Redirect 301 /index.php?route=product/manufacturer https://mywebsitenamehere.com/ Snippet of my .htaccess: # SEO URL Settings RewriteEngine On # If your opencart…

VIEW QUESTION

Opencart Fresh Installation Error: Failed to open stream: Permission denied – CentOS

I'm trying to install Opencart on a CentOS 7 Google Compute Cloud instance.I got this error when trying to install OC v3.0.3.2 Warning: fopen(/var/www/webapp/system/storage/session//sess_d637dd9f9b2bc6b85077072329): failed to open stream: Permission denied in /var/www/webapp/system/library/session/file.php on line 29Warning: flock() expects parameter 1 to…

VIEW QUESTION
Back To Top
Search