Page 2 of 5

Re: OpenCart 3.0.0.0 Released

Posted: Wed Jun 21, 2017 9:34 pm
by slavib
Does anyone know how this is written in the new * .twig
<?php $var= "111111111111" ; ?>
At the moment it gives it to me as a comment, not as a php

Re: OpenCart 3.0.0.0 Released

Posted: Wed Jun 21, 2017 9:37 pm
by gogoweb
Try something like this
{% set foo = 'bar' %}

Read more here
https://twig.sensiolabs.org/doc/2.x/tags/set.html

Re: OpenCart 3.0.0.0 Released

Posted: Wed Jun 21, 2017 9:38 pm
by raikage
the file twig was developed for support new php 7, so if u want develope in twig u just need to know the php 7 code.

Re: OpenCart 3.0.0.0 Released

Posted: Wed Jun 21, 2017 11:11 pm
by slavib
gogoweb wrote:
Wed Jun 21, 2017 9:37 pm
Try something like this
{% set foo = 'bar' %}

Read more here
https://twig.sensiolabs.org/doc/2.x/tags/set.html
Thanks a lot of useful information

I'm trying to load the exsample.html file from a folder catalog/view/theme

In the file: catalog/view/theme/*/template/common/header.twig
{{ include( '../../../exsample.html') }}

I can not
The goal is to be independent of the theme.
Maybe elsewhere to be
So he can work on all the theme

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 12:20 am
by swguy
@slavib note that twig does offer an include directive:
https://twig.sensiolabs.org/doc/2.x/tags/include.html

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 12:22 am
by swguy
OpenCart 3.0 is noticeably slower that OpenCart 2.3. Has any profiling been done to determine the areas that should be targeted for improvement?

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 12:56 am
by Johnathan
We need a new 3.0-specific sub-forum for bug reports, but for now please post them in this topic.

The bug I've found so far: USPS is not working in 3.0.0.0. The fix is as follows:

Code: Select all

IN:
/catalog/model/extension/shipping/usps.php

REPLACE ALL INSTANCES OF:
$this->config->get('usps_

WITH:
$this->config->get('shipping_usps_

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 2:23 am
by DannyM
admin/model/setting/extension.php on line 77

Remove it
public function getExtensionPathsByExtensionInstallId($extension_install_id) {
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "extension_path` WHERE `extension_install_id` = '" . (int)$extension_install_id . "' ORDER BY `date_added` ASC");

return $query->rows;
}
}nstall_id . "' ORDER BY `date_added` ASC");

return $query->rows;
}
}

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 5:50 am
by swguy
@DannyM: That code is not in a fresh download - you may have accidentally added that yourself.

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 5:53 am
by swguy
3.0.0.0 Bug Report: Admin files missing change from "token" to "user_token":

Code: Select all

./controller/marketplace/openbay.php:			$this->response->redirect($this->url->link('extension/openbay/orderList', 'token=' . $this->session->data['token'], true));
./controller/marketplace/openbay.php:		$this->response->redirect($this->url->link('extension/openbay/orderList', 'token=' . $this->session->data['token'], true));
./controller/extension/openbay/amazonus.php:            $this->response->redirect($this->url->link('extension/openbay/amazonus/bulklinking', 'token=' . $this->session->data['token'], true));
./controller/extension/openbay/amazon.php:            $this->response->redirect($this->url->link('extension/openbay/amazon/bulklinking', 'marketplace=' . $marketplace_code . '&token=' . $this->session->data['token'], true));

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 2:29 pm
by slavib
swguy wrote:
Thu Jun 22, 2017 12:20 am
@slavib note that twig does offer an include directive:
https://twig.sensiolabs.org/doc/2.x/tags/include.html
That's what I use but it does not work.
{{ include('../example.html') }}
Gets the following error
Fatal error: Uncaught Twig_Error_Loader: Looks like you try to load a template outside configured directories (../example.html) in "default/template/common/header.twig" at line 40. in

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 2:57 pm
by DannyM
swguy wrote:
Thu Jun 22, 2017 5:50 am
@DannyM: That code is not in a fresh download - you may have accidentally added that yourself.
yes, sure I'm blind and I'm not opencart dev. :laugh:

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 3:42 pm
by MarketInSG
I see a 3.0.0.1 beta coming...so everyone may want to wait a little while more before doing more tests.

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 3:51 pm
by phinq1910
Opencart 3.x will not support vQmod, right?

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 8:51 pm
by labeshops
Well I finally got it unzipped properly. Apparently the format the zip file is in does not like winopener that comes with windows10. I had to download winzip that I haven't used in years and got it to unzip.

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 9:17 pm
by labeshops
First thing I've noticed is the new filters for product do not search for partials. Tested on model and price and if you search for "15" it will not find "Product 15" for example. Changed a price to "100.50" and searching for "50" doesn't find it.
I haven't added customers or sales yet to test those filters, but I am assuming it also wouldn't work on partials?

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 9:18 pm
by raikage
opencart 3 support vqmod, but seems have some problems about file.twig, this last not work whit vqmod

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 9:33 pm
by Sjanne
Congratulations on OpenCart 3!

We wrote a article about the new version in Dutch is somebody is interested: https://www.comercia.nl/opencart-3-0 O0

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 9:44 pm
by labeshops
Getting " Signature hash does not match! " when I try to look at purchased extensions. I added the api information generated from opencart.com but still get this error.

Also, I am not seeing any way to filter by version in the marketplace section in admin - am I missing something?

Re: OpenCart 3.0.0.0 Released

Posted: Thu Jun 22, 2017 9:44 pm
by DannyM
We have to wait till 3.0.5 or 3.1 because now it's a lot of errors there