Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Mini-cart (or other functionality) on a non-xcart page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 04-06-2008, 04:09 AM
 
xsurf xsurf is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 56
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

I may be wrong but it sounds to me as though where you are hosted possibly does not allow connecting to your db from a different domain/IP, as a security measure. Then again, there is also the "undefined" function part... That's something else I guess. Maybe you're just gettig your paths wrong.
__________________
X-cart Gold 4.1.12
One Page Checkout
CDSEO Pro
Smart Search
PHP 5.2.5
FreeBSD
Reply With Quote
  #32  
Old 07-08-2008, 05:38 AM
 
ewebartist ewebartist is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 55
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

Works great on 4.1.10... thanks!

Sorry to go off topic, but just wondering if there are any Joomla experts out there.. I am trying to integrate my x-cart site with Joomla.. I am 90% there and have identical skins for both, so the major work is done.

Next, I was trying to include the login/minicart in the header of my Joomla page.. and I get the following errors (the same 2 errors repeated multiple times):

Quote:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in E:\xampp\htdocs\shop\prepare.php on line 235

Warning: in_array() [function.in-array]: Wrong datatype for second argument in E:\xampp\htdocs\shop\prepare.php on line 232


The login/minicart scripts work perfectly when they reside on an external page outside of joomla, but as soon as you include them in a joomla page, everything goes haywire...

Any Joomla/X-cart Sessions experts out there have any ideas?
__________________
Cool.

X-Cart v 4.1.8 (Live Site - Slowly dying)
X-Cart v 4.1.11 (In Development- Being born)

Joomla 1.5.6 + X-cart 4.1.11 Integration complete Killer combination!
Reply With Quote
  #33  
Old 07-29-2008, 11:05 AM
 
microdaq microdaq is offline
 

Senior Member
  
Join Date: Jan 2006
Location: New Hampshire
Posts: 109
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

Hello,

I am installing on minicart on a non-cart page using the code on this thread, yet I am getting the following error:

Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in /path/to/cart/include/sessions.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in cart/include/sessions.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in cart/include/sessions.php on line 83
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in /cart/include/sessions.php on line 84
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in /cart/include/sessions.php on line 91
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in /cart/include/func/func.core.php on line 1591
Warning: Cannot modify header information - headers already sent by (output started at /path/to/file.php:7) in /cart/include/get_language.php on line 154


Anybody encounter this issue? And know what changes I need to make to resolve them?


Thanks
Steve
__________________
Steve J Racicot
X-Cart Consultant Version 4 and 5
Reply With Quote
  #34  
Old 10-20-2008, 12:40 PM
 
nam37 nam37 is offline
 

Newbie
  
Join Date: Jan 2004
Posts: 7
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

Quote:
Originally Posted by ewebartist
Works great on 4.1.10... thanks!

Sorry to go off topic, but just wondering if there are any Joomla experts out there.. I am trying to integrate my x-cart site with Joomla.. I am 90% there and have identical skins for both, so the major work is done.

Next, I was trying to include the login/minicart in the header of my Joomla page.. and I get the following errors (the same 2 errors repeated multiple times):



The login/minicart scripts work perfectly when they reside on an external page outside of joomla, but as soon as you include them in a joomla page, everything goes haywire...

Any Joomla/X-cart Sessions experts out there have any ideas?
I'm seeing the same thing. Did you come up with a solution for this?
__________________
Version 4.0.13
Reply With Quote
  #35  
Old 10-21-2008, 05:28 AM
 
microdaq microdaq is offline
 

Senior Member
  
Join Date: Jan 2006
Location: New Hampshire
Posts: 109
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

I still don't have a solution.
__________________
Steve J Racicot
X-Cart Consultant Version 4 and 5
Reply With Quote
  #36  
Old 10-21-2008, 05:41 AM
 
nam37 nam37 is offline
 

Newbie
  
Join Date: Jan 2004
Posts: 7
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

Quote:
Originally Posted by microdaq
I still don't have a solution.
Yeah.. me neither. If just going to use an iframe I think.
__________________
Version 4.0.13
Reply With Quote
  #37  
Old 06-06-2010, 09:07 AM
 
HVBiz HVBiz is offline
 

Newbie
  
Join Date: Apr 2010
Posts: 2
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

I am trying to use this script on 4.3.1 Gold and I ran into the same directory problem the first guy did.

My store is not at root level Wordpress is and I want the mini-cart to be on the wordpress pages.

The store is at:
/hvbiz/

if I put the script in /hvbiz/ it works fine with no errors, if I put it in the root directory I get the warning:

ERROR: Can not initiate application! Please check configuration.

Since the auth.php file has changed some since this was first used I'm hoping someone can point me in the right direction to get this work in the root directory.
__________________
X-Cart Gold v4.3.1
Reply With Quote
  #38  
Old 06-06-2010, 10:38 AM
 
HVBiz HVBiz is offline
 

Newbie
  
Join Date: Apr 2010
Posts: 2
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

I used pcarcares tip for the auth.php to add;

@include_once $_SERVER['DOCUMENT_ROOT'] . "/store/top.inc.php";
@include_once "../top.inc.php";
@include_once "../../top.inc.php";

and this is what is causing the header output error messages although it does make the script run outside of the x-cart directory. But even if you could suppress the errors the other problem i ran into is the cookies dont work outside of the x-cart directories so the mini-cart would keep clearing.

If someone could figure this out this would be an awesome mod as more and more people are using ecommerce with Wordpress and other CMS type programs.
__________________
X-Cart Gold v4.3.1
Reply With Quote
  #39  
Old 10-20-2011, 07:12 PM
 
delphi delphi is offline
 

Senior Member
  
Join Date: Jul 2004
Posts: 185
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

Quote:
Originally Posted by HVBiz
I used pcarcares tip for the auth.php to add;

@include_once $_SERVER['DOCUMENT_ROOT'] . "/store/top.inc.php";
@include_once "../top.inc.php";
@include_once "../../top.inc.php";

and this is what is causing the header output error messages although it does make the script run outside of the x-cart directory. But even if you could suppress the errors the other problem i ran into is the cookies dont work outside of the x-cart directories so the mini-cart would keep clearing.

If someone could figure this out this would be an awesome mod as more and more people are using ecommerce with Wordpress and other CMS type programs.

Sorry for digging up this old post again but I am in exactly problem. I use the codes above to display mincart on a none x-cart php page and it seems that the cookies erased everytime page is load.

Does anyone have any solution? I am using x-cart version 4.4.4

Thanks
__________________
X-Cart Gold version 4.4.4
X-Cart directory /home/web/u/ugchweb/cart
PHP 5
MySQL server 5
Reply With Quote
  #40  
Old 09-17-2012, 08:18 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Mini-cart (or other functionality) on a non-xcart page

this would be nice fro 4.4 anyone??
__________________
xcart 5.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:42 PM.

   

 
X-Cart forums © 2001-2020