FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 8 posts ] 
 
Author Message
 Post subject: Shop Widget jCard
 Post Posted: Mon Jul 09, 2012 2:33 pm 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
hi

I am trying to create a module with the jCard extension. The problem that I have now is the integration. You will see a WARNING include_once ():

I include it as follows:
Code:
<?php
include_once(BASE_URL.THEME_DIR.THEME.'/jcart/jcart.php');
?>
<?php if (!defined('CMS')) exit; ?>
<?php echo $this->doctypeDeclaration(); ?>
<html<?php echo $this->htmlAttributes(); ?>>
<head>


What am I doing wrong?

Best regards
Jules


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Mon Jul 09, 2012 2:41 pm 
Offline
Project Manager

Joined: Wed Nov 25, 2009 9:40 am
Posts: 421
It depends on the error you receive. It's hard to guess what's wrong.

Blindly I may say that you should change constant BASE_URL to BASE_DIR. BASE_URL is a path that starts with "http://". And you want to include files from local directories. BASE_DIR is file path to your installation.


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Tue Jul 10, 2012 5:03 am 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
That's it!!!

Best regards
Jules


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Thu Jul 12, 2012 7:11 pm 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
Hi

I have a problem with the session.

When i go for the first time on the shop navigation point is the error.
Then you click home and again the shop the error is away.

http://kurzurl.net/vb8Qw

Here is the link too jCard:
http://conceptlogic.com/jcart/


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Thu Jul 12, 2012 8:48 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
I don't see any error. Which error are you talking about? Could you please copy / paste, provide screenshot?


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Mon Jul 16, 2012 9:27 am 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
hi maskas

here you see the problem:

http://www.mandelgenuss.ch/new/de/shop/


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Mon Jul 16, 2012 9:40 am 
Offline

Joined: Tue Feb 21, 2012 8:22 am
Posts: 47
jules wrote:
hi maskas

here you see the problem:

http://www.mandelgenuss.ch/new/de/shop/


I have this error too. I try integrate it to catalog module. :)


Top 
 Profile  
 
 Post subject: Re: Shop Widget jCard
 Post Posted: Mon Jul 16, 2012 8:46 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
About session_start();

jCart docummentation says, that it should be initialized before session_start. Try to put this code in ip_config.php

// If your page calls session_start() be sure to include jcart.php first
include_once('jcart/jcart.php');


Then it will be executed before session_start. I havent' tested. Hope jCart guys know what they are doing and they will not mess up session for ImpressPages.

I can't comment on other warnings as they don't seems to be related to ImpressPages. I believe they could be related to first issue.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 8 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron