Search found 479 matches

Search found 479 matches

Re: Add custom dynamic text into twig

First you should load information in the controller of the page where you want to use it, something like this: $information_id = 9; $this->load->model('catalog/information'); $information = $this->model_catalog_information->getInformation($information_id); if ($information) { $data['information_titl...

Jump to post
  • Sun Dec 02, 2018 9:54 pm
  • Replies 10
  • Views 2671
Re: opencart 3 & marketplace = meta ?

Any marketplace module also can be downloaded from openCart.com to your computer, not just installed directly from marketplace. Then you can edit it, put your changes back into the .zip and install using admin - extensions - installer (not admin - extensions - marketplace) by uploading the .zip.

Jump to post
  • Fri Nov 30, 2018 8:55 pm
  • Replies 2
  • Views 239
Re: Adding products to shopping cart "Error undefined" Version 3.0.2.0

I'm not sure how you tried, but your site still doesn't redirect from http to https, and if it was https only, it wouldn't show this alert.

Jump to post
  • Thu Nov 29, 2018 4:06 pm
  • Replies 3
  • Views 261
Re: Urgent: can't access admin page: Fatal error: Uncaught Exception:

You should be able to see all hidden orders in admin without changing anything in the code if you select Missing Orders in Order Status filter on Sales - Orders page.

Jump to post
  • Wed Nov 28, 2018 11:29 pm
  • Replies 7
  • Views 362
Re: Urgent: can't access admin page: Fatal error: Uncaught Exception:

The problem is not with missing column, i suspect it's not missing, but the problem is in your file admin/model/sale/order.php . It was modified, it is not original openCart file, and it makes wrong database query. Make sure that you have original openCart file there. Specifically, this is wrong: SE...

Jump to post
  • Wed Nov 28, 2018 8:19 pm
  • Replies 7
  • Views 362
Re: Adding products to shopping cart "Error undefined" Version 3.0.2.0

To get your whole site to use HTTPS globaly, open: /system/library/url.php Find this Code: $url = $this->url; change code to: $url = $this->ssl; This is wrong way to do that. Correct way is to edit config.php and admin/config.php and change all HTTP_ urls (HTTP_SERVER, HTTP_CATALOG) to point to htt...

Jump to post
  • Wed Nov 28, 2018 5:07 pm
  • Replies 3
  • Views 261
Re: 403 forbidden

What is the URL of that page?

Jump to post
  • Wed Nov 28, 2018 4:48 pm
  • Replies 4
  • Views 228
Re: Opencart 3 theme

Try refreshing modifications (admin - extensions - modifications - click Refresh button).

Jump to post
  • Wed Nov 28, 2018 4:47 pm
  • Replies 2
  • Views 155
Re: Replacement auto currency update source

OK, here is complete replacement for function refresh. I did not test it so can't guarantee it actually works, it's not optimal and it's doesn't have any error checking or reporting, basically just to give you the idea (sorry, i don't have time for more): public function refresh($force = false) { $c...

Jump to post
  • Tue Nov 27, 2018 9:00 am
  • Replies 13
  • Views 801
Re: Replacement auto currency update source

$currencies there contain a list of comma separated currencies, e.g. "AUD_GBP,CAD,EUR", and that format is not supported by free.currencyconverterapi.com , it requires currencies like this: "AUD_GBP,AUD_CAD", and also free version only supports 2 pairs max in the same request. So i guess you'll need...

Jump to post
  • Tue Nov 27, 2018 8:22 am
  • Replies 13
  • Views 801
Re: Replacement auto currency update source

Did you check https://free.currencyconverterapi.com/ ? It seems to support all currencies on free accounts.

Jump to post
  • Tue Nov 27, 2018 7:25 am
  • Replies 13
  • Views 801
Re: Replacement auto currency update source

IP_CAM wrote:
Tue Nov 27, 2018 2:55 am
Official OC Update Currency Patch
It uses fixer.io, so probably won't help in this situation.

Jump to post
  • Tue Nov 27, 2018 3:03 am
  • Replies 13
  • Views 801
Re: How to hardcode one item in cart in Opencart?

Perhaps you can edit catalog/controller/checkout/simplecheckout.php and add right below function index() { if (!$this->cart->hasProducts()) $this->cart->add(<your_product_id>); replace <your_product_id> with actual product_id of your product, e.g. if product_id is 5, it will be if (!$this->cart->has...

Jump to post
  • Mon Nov 26, 2018 8:42 am
  • Replies 4
  • Views 245
Re: refresh modification doesn't work after migration

Maybe it's caused by one of the modifications? Try disabling all of them and see if it works, if it does, enable them one by one until the error returns, then you know which one causes it.

Jump to post
  • Mon Nov 26, 2018 7:21 am
  • Replies 7
  • Views 246
Re: Removing some fields from the registration form

Of course entire div should be replaced with the hidden input, i should have been more clear about that, though it's kinda obvious. Most fields don't have validation, and for those that do removing them doesn't solve the problem, since controller will try to validate them anyway. So validation has t...

Jump to post
  • Sat Nov 24, 2018 8:22 pm
  • Replies 5
  • Views 333
Re: Removing some fields from the registration form

Much better way is to replace not needed fields with hidden inputs with empty values instead of removing them. No need to change anything anywhere besides the template.

Code: Select all

<input type="hidden" name="fax" value="" />

Jump to post
  • Sat Nov 24, 2018 6:07 pm
  • Replies 5
  • Views 333

Search found 479 matches