Post by lightball » Fri Dec 30, 2011 1:44 am

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

Newbie

Posts

Joined
Thu Dec 08, 2011 8:27 am

Post by straightlight » Fri Dec 30, 2011 1:49 am

You would need to go to your catalog/controller/common/header.php file to define a:

Code: Select all

$this->data['fbconnect_url'] = your_fb_object;
Change: your_fb_object to what your facebook object would originally points to.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by lightball » Fri Dec 30, 2011 2:45 am

Thank you ! That worked . Any idea about the search issue?

Newbie

Posts

Joined
Thu Dec 08, 2011 8:27 am

Post by Xsecrets » Fri Dec 30, 2011 5:03 am

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


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by lightball » Fri Dec 30, 2011 12:01 pm

I was searching many times in the forums but unfortunately I just couldn't find any result, but one regarding the old version of OC (1.4.0).
If you could help me, that would be cool.

Thank you,
Lightball

Newbie

Posts

Joined
Thu Dec 08, 2011 8:27 am

Post by straightlight » Fri Dec 30, 2011 12:51 pm

but one regarding the old version of OC (1.4.0).
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. :)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by lightball » Sat Dec 31, 2011 7:00 am

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.

Newbie

Posts

Joined
Thu Dec 08, 2011 8:27 am

Post by merhaba » Mon Apr 23, 2012 6:54 am

<?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 ?

Newbie

Posts

Joined
Sun Apr 22, 2012 8:58 am

Post by rostom » Sun Oct 06, 2013 12:32 am

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.

Newbie

Posts

Joined
Sun Oct 06, 2013 12:23 am
Who is online

Users browsing this forum: No registered users and 19 guests