| Author |
Message |
|
jules
|
Post subject: Shop Widget jCard Posted: Mon Jul 09, 2012 2:33 pm |
|
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
|
|
 |
|
 |
|
Audrius
|
Post subject: Re: Shop Widget jCard Posted: Mon Jul 09, 2012 2:41 pm |
|
 |
| 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.
|
|
 |
|
 |
|
jules
|
Post subject: Re: Shop Widget jCard Posted: Tue Jul 10, 2012 5:03 am |
|
Joined: Fri Nov 11, 2011 11:22 am Posts: 51
|
|
That's it!!!
Best regards Jules
|
|
 |
|
 |
|
jules
|
Post subject: Re: Shop Widget jCard Posted: Thu Jul 12, 2012 7:11 pm |
|
Joined: Fri Nov 11, 2011 11:22 am Posts: 51
|
|
 |
|
 |
|
maskas
|
Post subject: Re: Shop Widget jCard Posted: Thu Jul 12, 2012 8:48 pm |
|
 |
| 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?
|
|
 |
|
 |
|
jules
|
Post subject: Re: Shop Widget jCard Posted: Mon Jul 16, 2012 9:27 am |
|
Joined: Fri Nov 11, 2011 11:22 am Posts: 51
|
|
 |
|
 |
|
known
|
Post subject: Re: Shop Widget jCard Posted: Mon Jul 16, 2012 9:40 am |
|
Joined: Tue Feb 21, 2012 8:22 am Posts: 47
|
jules wrote: I have this error too. I try integrate it to catalog module. 
|
|
 |
|
 |
|
maskas
|
Post subject: Re: Shop Widget jCard Posted: Mon Jul 16, 2012 8:46 pm |
|
 |
| 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.
|
|
 |
|
 |
|