Hello,
I came to support forums as I have 2 issues with my personal opencart 1.5.1 shop.
One of them is as follows:
I have a module (Facebook Connect) that parses an URL into its template (fbconnect.tpl) in this way: <?php echo $fbconnect_url; ?>
If i echo this structure in my "header.tpl" for instance, it won't work.
Any ideas how can I make it parse in that template?
And another issue is with my top search. When I click the magnifier icon, it works, but when I press "Enter" key, it doesn't.
Can you help me to fix this?
Any help is greatly appreciated.
Kind regards,
Lightball
I came to support forums as I have 2 issues with my personal opencart 1.5.1 shop.
One of them is as follows:
I have a module (Facebook Connect) that parses an URL into its template (fbconnect.tpl) in this way: <?php echo $fbconnect_url; ?>
If i echo this structure in my "header.tpl" for instance, it won't work.
Any ideas how can I make it parse in that template?
And another issue is with my top search. When I click the magnifier icon, it works, but when I press "Enter" key, it doesn't.
Can you help me to fix this?
Any help is greatly appreciated.
Kind regards,
Lightball
You would need to go to your catalog/controller/common/header.php file to define a:
Change: your_fb_object to what your facebook object would originally points to.
Code: Select all
$this->data['fbconnect_url'] = your_fb_object;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I don't remember the fix, but it is a known problem. If you search the forums you should be able to find a thread that tells how to fix the search with enter.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Could you specify where exactly is this feature release ? Even for OC 1.4.0, it still be can be adapted with 1.5.x releases with a few modifications.but one regarding the old version of OC (1.4.0).

Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Here: http://forum.opencart.com/viewtopic.php?t=10966
My header.tpl does not contain any javascript for search key, that's what I mean.
My header.tpl does not contain any javascript for search key, that's what I mean.
<?php
class ControllerModulefbconnect extends Controller {
protected function index($setting) {
$this->language->load('module/fbconnect');
$this->data['heading_title'] = $this->language->get('heading_title');
if(!$this->customer->isLogged()){
if(!isset($this->fbconnect)){
require_once(DIR_SYSTEM . 'vendor/facebook-sdk/facebook.php');
$this->fbconnect = new Facebook(array(
'appId' => $this->config->get('fbconnect_apikey'),
'secret' => $this->config->get('fbconnect_apisecret'),
));
}
$this->data['fbconnect_url'] = $this->fbconnect->getLoginUrl(
array(
'scope' => 'email,user_birthday,user_location,user_hometown',
'redirect_uri' => $this->url->link('account/fbconnect', '', 'SSL')
)
);
if($this->config->get('fbconnect_button_' . $this->config->get('config_language_id'))){
$this->data['fbconnect_button'] = html_entity_decode($this->config->get('fbconnect_button_' . $this->config->get('config_language_id')));
}
else $this->data['fbconnect_button'] = $this->language->get('heading_title');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/fbconnect.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/fbconnect.tpl';
} else {
$this->template = 'default/template/module/fbconnect.tpl';
}
$this->render();
}
}
}
?>
controller> my header
catalog view > header
<?php echo $fbconnect_url; ?> not working ?
class ControllerModulefbconnect extends Controller {
protected function index($setting) {
$this->language->load('module/fbconnect');
$this->data['heading_title'] = $this->language->get('heading_title');
if(!$this->customer->isLogged()){
if(!isset($this->fbconnect)){
require_once(DIR_SYSTEM . 'vendor/facebook-sdk/facebook.php');
$this->fbconnect = new Facebook(array(
'appId' => $this->config->get('fbconnect_apikey'),
'secret' => $this->config->get('fbconnect_apisecret'),
));
}
$this->data['fbconnect_url'] = $this->fbconnect->getLoginUrl(
array(
'scope' => 'email,user_birthday,user_location,user_hometown',
'redirect_uri' => $this->url->link('account/fbconnect', '', 'SSL')
)
);
if($this->config->get('fbconnect_button_' . $this->config->get('config_language_id'))){
$this->data['fbconnect_button'] = html_entity_decode($this->config->get('fbconnect_button_' . $this->config->get('config_language_id')));
}
else $this->data['fbconnect_button'] = $this->language->get('heading_title');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/fbconnect.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/fbconnect.tpl';
} else {
$this->template = 'default/template/module/fbconnect.tpl';
}
$this->render();
}
}
}
?>
controller> my header
catalog view > header
<?php echo $fbconnect_url; ?> not working ?
hello
I have tried to use this solution. It didn't work
I still don't know what to put instead of " You_fbconnect_object" in header.php
$this->data['fbconnect_url']= (what to insert here?) ---> where to redirect??
i tried. it didn't work :-( please help. I am looking for solution for 4 days!! and the developer doesn't respond.
I have tried to use this solution. It didn't work
I still don't know what to put instead of " You_fbconnect_object" in header.php
$this->data['fbconnect_url']= (what to insert here?) ---> where to redirect??
i tried. it didn't work :-( please help. I am looking for solution for 4 days!! and the developer doesn't respond.
Who is online
Users browsing this forum: No registered users and 19 guests