X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Mini-cart (or other functionality) on a non-xcart page (https://forum.x-cart.com/showthread.php?t=14443)

xsurf 04-06-2008 04:09 AM

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.

ewebartist 07-08-2008 05:38 AM

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?

microdaq 07-29-2008 11:05 AM

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

nam37 10-20-2008 12:40 PM

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?

microdaq 10-21-2008 05:28 AM

Re: Mini-cart (or other functionality) on a non-xcart page
 
I still don't have a solution.

nam37 10-21-2008 05:41 AM

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.

HVBiz 06-06-2010 09:07 AM

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.

HVBiz 06-06-2010 10:38 AM

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.

delphi 10-20-2011 07:12 PM

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

ARW VISIONS 09-17-2012 08:18 AM

Re: Mini-cart (or other functionality) on a non-xcart page
 
this would be nice fro 4.4 anyone??


All times are GMT -8. The time now is 04:28 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.