Search found 22 matches

Search found 22 matches

Need Help About Twig

I really feel noob about twig, had reading the documentation but still not understand completely how it works
I had a code below which working fine in OC1 and OC2

Code: Select all

<?php echo ${'jne_reguler_' . $geo_zone['geo_zone_id'] . '_rate'}; ?>
I need to change the code to twig, anyone can help ?

Jump to post
  • Sun Apr 29, 2018 10:22 pm
  • Replies 1
  • Views 114
Re: Customer cant login

Everything working fine now
It's seem the current version of OC 3 only worked for PHP 7+
After changing the PHP version to 7+ everything working fine

Thank you for helping me @straightlight :)

Jump to post
  • Wed Apr 11, 2018 2:24 am
  • Replies 31
  • Views 3842
Re: Customer cant login

You're right but still i dont know what make it not work
Every time I try to login as a customer when being redirect to account/account, it's being redirected back to account/login

There is no error log at all, just like looking needle on the swamp

Jump to post
  • Sat Apr 07, 2018 4:17 am
  • Replies 31
  • Views 3842
Re: Customer cant login

The server running latest cpanel, apache 2.4 with MPM Worker, PHP 5.6 as default and PHP 7 as additional PHP also nginx as the reverse proxy for apache Or it will be worked on php 7 ? The original code from model/account/customer.php $this->db->query("INSERT INTO " . DB_PREFIX . "customer SET custom...

Jump to post
  • Sat Apr 07, 2018 3:52 am
  • Replies 31
  • Views 3842
Re: Customer cant login

Na, the problem before is because the salt is not added to the database I had making a modification so when a customer register the salt are added to the database and not empty When checking under phpmyadmin using the query i had post above its worked and showing me the result, not empty result Anyw...

Jump to post
  • Sat Apr 07, 2018 3:38 am
  • Replies 31
  • Views 3842
Re: Customer cant login

It's worked now, I had change the sql query on register so the salt are added to the database but i got new error messages below now Notice: Undefined property: Proxy::addLogin in /home/marketplace/public_html/original/catalog/controller/account/login.php on line 43 line 43 if ($this->customer->isLo...

Jump to post
  • Sat Apr 07, 2018 3:24 am
  • Replies 31
  • Views 3842
Re: Customer cant login

forgot to mention this
the customer register model generate salt from function token(9), where I can find that function ?

Jump to post
  • Sat Apr 07, 2018 1:43 am
  • Replies 31
  • Views 3842
Re: Customer cant login

got new debug again even when trying to running the sql query through phpmyadmin the result is empty look at this code if ($override) { $customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(utf8_strtolower($email)) . "' AND status = '...

Jump to post
  • Sat Apr 07, 2018 1:07 am
  • Replies 31
  • Views 3842
Re: Customer cant login

I got the problem bro
It's seem on function isLogged does not parsing customer_id and it's seem the customer_id is empty
the file is on system/library/cart/customer.php

when I'm trying to change it to character its worked so the problem must be on the login function that not parsing the customer_id

Jump to post
  • Sat Apr 07, 2018 12:50 am
  • Replies 31
  • Views 3842
Re: Customer cant login

after trying to debug the session that responsible to the login function which is $this->session->data['customer_id'] that being used by isLogin function, I got the error below ... Notice: Undefined index: customer_id in /home/marketplace/public_html/original/catalog/controller/account/account.php o...

Jump to post
  • Fri Apr 06, 2018 1:12 pm
  • Replies 31
  • Views 3842
Re: Customer cant login

your code above will means the condition for checking user login or not will be ignored, am i right ? the code $this->response->redirect($this->url->link('account/login', '', true)); is inside the condition where user is not login will be redirect to the login page when he/she trying accessing the a...

Jump to post
  • Fri Apr 06, 2018 1:04 pm
  • Replies 31
  • Views 3842
Re: Customer cant login

still same the page is going redirected again to route=/account/login after reaching route=/account/account based on the code at account.php it's seem the code can't validate if the user already login or not this one below is from 3.0.2.0 OC if (!$this->customer->isLogged()) { $this->session->data['...

Jump to post
  • Fri Apr 06, 2018 1:31 am
  • Replies 31
  • Views 3842
Re: Customer cant login

I guess the problem is with the session but the main live site is running well using OC 1
marketplace.doki.co.id is using the same server configuration with the live site

Jump to post
  • Fri Apr 06, 2018 12:00 am
  • Replies 31
  • Views 3842
Re: Customer cant login

ah sorry, it's seem the International Connection from the data center is limited anyway i had try to compare with standard theme and standard installation and the problem is still happened as you can see on the attachment i had attach, after doing login post method, it was redirect back to login pag...

Jump to post
  • Thu Apr 05, 2018 11:24 pm
  • Replies 31
  • Views 3842
Re: Customer cant login

there is no error log and that's weird
can you please help me looking at the site http://marketplace.doki.co.id

thank you in advance for your help :)

Jump to post
  • Thu Apr 05, 2018 11:15 am
  • Replies 31
  • Views 3842
Re: Customer cant login

had trying everything to make customer login working but it's seem no clue about the error

Jump to post
  • Wed Apr 04, 2018 10:23 am
  • Replies 31
  • Views 3842
Re: Customer cant login

how to uninstall all installed modules ?
I know how to do it in version 1.5 but i dont know in version 3.0.2.0, it was a big chance and make me confused

Jump to post
  • Mon Mar 05, 2018 10:15 pm
  • Replies 31
  • Views 3842
Re: Customer cant login

sorry i'm forgot to mention the opencart detail version
I'm using opencart 3.0.2.0

Jump to post
  • Mon Mar 05, 2018 12:10 am
  • Replies 31
  • Views 3842
Customer cant login

Hello,

I just trying to use oc3 but there is a problem when trying to login to the customer area even the data is there on the database
Is there anyone here getting same problem too ?

Jump to post
  • Thu Mar 01, 2018 1:49 pm
  • Replies 31
  • Views 3842

Search found 22 matches