Search found 455 matches

Search found 455 matches

Re: Default language of the store

It tries to use the language that is set as preferred in your web browser first. So if your browser's most preferred language is English, and you have English available on your site, it'll show English version even if Arabic is default in site settings.

Jump to post
  • Tue Dec 18, 2018 6:06 pm
  • Replies 2
  • Views 41
Re: All ocmod extension changes not showing in admin or store

Make sure that both config.php and admin config.php have correct paths in DIR_STORAGE and DIR_MODIFICATION , admin/config.php has DIR_CATALOG defined, and config.php does not have DIR_CATALOG defined . Also go into your modification directory with FTP and see if it has directories and files inside b...

Jump to post
  • Tue Dec 18, 2018 1:07 pm
  • Replies 2
  • Views 49
Re: Add logo to register email

Registration email is plain text, not html. You can change it to html by replacing $mail->setText with $mail->setHtml in catalog/controller/mail/register.php , and then perhaps editing the template - you can use catalog/view/theme/default/template/mail/order.twig as an example. Or you can add a logo...

Jump to post
  • Mon Dec 17, 2018 7:07 pm
  • Replies 2
  • Views 50
Re: How to set customer_group_id with PHP?

$b=$this->customer->getGroupId(); $this->db->query("UPDATE " . DB_PREFIX . "customer SET customer_group_id= '$a' WHERE customer_id = '$b'"); This is incorrect. Should be: $b=$this->customer->getId(); $this->db->query("UPDATE " . DB_PREFIX . "customer SET customer_group_id= '$a' WHERE customer_id = ...

Jump to post
  • Sat Dec 15, 2018 1:17 am
  • Replies 2
  • Views 121
Re: How to add item to cart after registration?

Edit file catalog/controller/account/register.php, find this line:

Code: Select all

$this->response->redirect($this->url->link('account/success'));
And add this line right above:

Code: Select all

$this->cart->add(51);

Jump to post
  • Fri Dec 14, 2018 12:33 am
  • Replies 2
  • Views 95
Re: sql query help

This will give you only one row per model: SELECT p.*, pd.*, COUNT(*) AS c FROM oc_product p, oc_product_description pd WHERE pd.product_id = p.product_id AND pd.language_id = 1 GROUP BY p.model HAVING c>1; And this will give you all rows with the same model, but only those models with more than 1 r...

Jump to post
  • Fri Dec 14, 2018 12:24 am
  • Replies 1
  • Views 100
Re: ERR_BLOCKED_BY_XSS_AUDITOR

This is a Chrome bug, not an openCart issue. Try using different browser, or this: edit file admin/controller/startup/startup.php and add this line anywhere inside function index:

Code: Select all

$this->response->addHeader('X-XSS-Protection:0');

Jump to post
  • Wed Dec 12, 2018 9:42 am
  • Replies 1
  • Views 86
Re: Recurring Payments - Paypal - Return url

OpenCart 2 handles PayPal Express IPN messages in catalog/controller/extension/payment/pp_express.php, function ipn() . Look for "recurring" inside that function. And IPN is much better than "success.php" even for non-recurring payments , it's more reliable and secure.

Jump to post
  • Tue Dec 11, 2018 2:59 am
  • Replies 3
  • Views 147
Re: 1000 x 0,05 = € 49,97 ??

Maybe change VAT tax rate to 21.06% or 21.07% ?

Jump to post
  • Sun Dec 09, 2018 4:47 am
  • Replies 2
  • Views 123
Re: Adcell Tracking Code error sucess.php

Here is what you should do: 1. Edit file catalog/controller/checkout/success.php . Find this: if (isset($this->session->data['order_id'])) { and right below add this: $this->load->model('checkout/order'); $o = $this->model_checkout_order->getOrder($this->session->data['order_id']); if($o) { $data['a...

Jump to post
  • Thu Dec 06, 2018 4:54 am
  • Replies 6
  • Views 244
Re: Error when trying to open an information page in admin

Your are using some extension or modification that does something with information page, and this extension / modification either has errors, or is installed incorrectly. Contact that extension's developer for support.

Jump to post
  • Wed Dec 05, 2018 11:59 am
  • Replies 1
  • Views 138
Re: A customer follows an Affiliate Product link but the Affiliate linking breaks as soon as they browse the Store

Once a user opens any openCart page with URL that contains tracking code, that tracking code is saved in cookies and no longer has to be in the URL. While that cookie exists tracking code is restored on every page visited by the user, and affiliate gets commission for all products purchased by that ...

Jump to post
  • Tue Dec 04, 2018 11:46 pm
  • Replies 3
  • Views 144
Re: Another SSL issue

but I understand that OC should jump between secure and insecure environments as required. It really shouldn't, if you have SSL (https), then just redirect all http requests to https. Use https:// in both HTTP_SERVER and HTTPS_SERVER in both config.php files as explained in the reply above, and als...

Jump to post
  • Mon Dec 03, 2018 1:54 am
  • Replies 2
  • Views 238
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 387
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 179
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 132
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 201

Search found 455 matches