Search found 1906 matches

Search found 1906 matches

Re: Problem When i added code for( mod_expires / mod_deflate)

This is because OpenCart doesn't set the cache control headers. Which can lead to all kinds of problems. https://forum.opencart.com/viewtopic.php?f=202&t=206449#p786660 Has this been fixed in the latest? No. Although the master branch has been half fixed. https://github.com/opencart/opencart/issues...

Jump to post
  • Tue Jun 01, 2021 9:18 pm
  • Replies 6
  • Views 281
Re: use session created in opencart in non-opencart php script

OpenCart 3.x doesn't use PHP sessions, so you can't access with $_SESSION. You would have to include the OpenCart session class and adaptors, as well as read and set the session cookie.

Jump to post
  • Tue Jun 01, 2021 7:24 pm
  • Replies 1
  • Views 155
Re: 1.5.6 How to send order variables to header.tpl from controller for conversion tracking

<?php if (isset($route) && $route == 'checkout/success') { ?> You would be better doing that bit in the controller. Then check there is an order ID. if (isset($this->request->get['route'])) && $this->request->get['route']) == 'checkout/success') { if (isset($this->session->data['order_id'])) { $thi...

Jump to post
  • Tue Jun 01, 2021 5:09 pm
  • Replies 5
  • Views 349
Re: Sitemap XML

Thank you. This is the beginning of the code, unmodified, from google_sitemap.php I can not see anywhere that it is creating 2 blank lines. What am I missing? Where is could they be originating from? <?php class ControllerExtensionFeedGoogleSitemap extends Controller { public function index() { if ...

Jump to post
  • Tue Jun 01, 2021 7:47 am
  • Replies 11
  • Views 579
Re: Vanishing icons in Firefox only?

You will need to redirect to your correct domain with or without www.

An example if your domain was www.example.com, add to your htaccess.

Code: Select all

RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ https://www.example.com/$1 [E=HTTPS,R=301,L]
Also search the forum for lots of other examples.

Jump to post
  • Sat May 29, 2021 8:35 pm
  • Replies 5
  • Views 259
Re: Contact form field mistake

xxvirusxx wrote:
Sat May 29, 2021 5:58 pm
On 3.0.20 is the Heading title bugs.
In which case in system/config/catalog.php.
Change.

Code: Select all

	'controller/*/after'  => array(
		'event/debug/after'
	)
To.

Code: Select all

	//'controller/*/after'  => array(
	//	'event/debug/after'
	//)

Jump to post
  • Sat May 29, 2021 8:27 pm
  • Replies 12
  • Views 365
Re: Problem When i added code for( mod_expires / mod_deflate)

This is because OpenCart doesn't set the cache control headers. Which can lead to all kinds of problems.

viewtopic.php?f=202&t=206449#p786660

Jump to post
  • Sat May 29, 2021 4:53 pm
  • Replies 6
  • Views 281
Re: Sitemap XML

You have two line feeds at the start of the XML at the URL. Whatever you are viewing it with is stripping them. But if you download the file they are there and this is what is giving you the error.

Jump to post
  • Sat May 29, 2021 5:51 am
  • Replies 11
  • Views 579
Re: Sitemap XML

Trying to generate a sitemap using OC 3.0.3.6 XML error is generated: XML Parsing error. XML or text declaration not at start of entity Line Number 3, Column 1 I see the comments about a blank space at the beginning of the line creating that erro I can not see anywhere that extension/feed/google_si...

Jump to post
  • Sat May 29, 2021 4:35 am
  • Replies 11
  • Views 579
Re: Order files

catalog/model/checkout/order.php

Jump to post
  • Fri May 28, 2021 6:46 pm
  • Replies 4
  • Views 227
Re: New OC 3.0.3.7 install on ionos server failing due to 1044 error

OpenCart doesn't use CREATE DATABASE. The issue must be something else. Check the database details you are entering are correct and the database user has the right permissions.

Jump to post
  • Fri May 28, 2021 4:45 pm
  • Replies 4
  • Views 252
Re: Contact form field mistake

Quistar wrote:
Thu May 27, 2021 6:08 pm
Hello, I just checked and haven't modified any of those files.

URL is: http://huseluxo.ro/index.php?route=information/contact
What about system/library/cart/customer.php? Have you also checked for those files in your storage/modification folder?

Jump to post
  • Fri May 28, 2021 12:26 am
  • Replies 12
  • Views 365
Re: Captcha image not loading after refresh button click

Do you see any errors in you web browser's developer console or network tabs?

Have you tried.

Code: Select all

'index.php?route=tool/my_captcha&time=' + d.getTime()

Jump to post
  • Thu May 27, 2021 4:43 pm
  • Replies 2
  • Views 125
Re: Contact form field mistake

Have you modified either of the following in the default theme or your current theme? https://github.com/opencart/opencart/blob/3.0.2.0/upload/catalog/controller/information/contact.php#L109-L113 https://github.com/opencart/opencart/blob/3.0.2.0/upload/catalog/view/theme/default/template/information...

Jump to post
  • Wed May 26, 2021 11:36 pm
  • Replies 12
  • Views 365
Re: Contact form field mistake

Try longing out as a customer.

Jump to post
  • Wed May 26, 2021 7:07 pm
  • Replies 12
  • Views 365
Re: Opencart 3.0.3.6 - PayPal Commerce Platform - Inline Credit Card error

The OAS_VALIDATION_ERROR would suggest there is something wrong with the data being sent to PayPal. I would advise you try to use 1.3 or 1.3.1 as there was an important security update. It can be a good idea to make sure you uninstall / reinstall the payment module when upgrading as this will clear ...

Jump to post
  • Wed May 26, 2021 6:57 pm
  • Replies 1
  • Views 141
Re: Paypal Commerce Extension Issues - Update??

Thanks for that. I do have the latest version installed (from that URL - v1.3.1) and it's really good to hear that the dev has addressed the security concern but the behavior is still odd. After completing the one-page checkout (Journal 3 - not my choice!) and clicking to confirm the order I am pre...

Jump to post
  • Wed May 26, 2021 5:27 am
  • Replies 8
  • Views 499
Re: Paypal Express Checkout Error {token: "EC-78N34447T0947380A"}

My opencart version is 3.0.3.2. I set the paypal express checkout in live mode,but when customer clicks the paypal checkout button,it pops up a page with one line of text which looks something like {token: "EC-78N34447T0947380A"},then failed to pay. How to fix the problem?Can anybody help? Do you s...

Jump to post
  • Wed May 26, 2021 2:19 am
  • Replies 2
  • Views 162

Search found 1906 matches