Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Php Echo

Asked Modified Viewed 3,860 times
S
SnakeEye
S
If it aint broke...Don't fix it!
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions
asked
Junior Member

I don't usually post problems but this one has me stumped. I don't like the TWB shopping cart because it doesn't work well with all the different themes so I installed Maian Cart and edited it to have the same look and feel as the rest of the site and it works great. You can see it at http://chateaunovelties.mywebteks.net

When you add something to the cart, you will see that in the left side of the shopping cart it shows how many items you have in your cart and the image that is linked to View Cart. I am trying to create a panel that will pull that same info into a panel on the main page of the site but can't seem to get the code right and wondering if anybody can help me. Here is what I have so far

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: viewcart_panel.php
| Author: Bobby Bridgewater
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."viwcart_panel/locale/English.php";
}

openside($locale['vc_001']);
echo "<div align='left'>";
echo "<div align='left'><?php echo $this->shop/VIEW_CART; ?></div>";
echo "</div>";
closeside();
?>

You will need to add something to the cart to see what I am talking about.
Edited by SnakeEye on 21-03-2011 02:10,
0 replies

4 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Ask Bobby Bridgewater, he should know. ;)
0 replies
M
MarcusG
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Quote


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: viewcart_panel.php
| Author: Bobby Bridgewater
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION"wink) { die("Access Denied"wink; }

if (file_exists(INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php"wink) {
include INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."viewcart_panel/locale/English.php";
}

openside($locale['vc_001']);
echo "<div align='left'>";
echo "<div align='left'>";
echo $this->shop/VIEW_CART;
echo "</div>";

echo "</div>";
closeside();
?>
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Here is what to do...

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Name: viewcart_panel.php
| Author: Bobby Bridgewater
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."viewcart_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."viewcart_panel/locale/English.php";
}

openside($locale['vc_001']);
echo "<div align='left'>";
echo "<div align='left'>";
echo $this->shop/VIEW_CART;
echo "</div>";
echo "</div>";
closeside();
?>
0 replies
— 2 months later —
S
SnakeEye
S
If it aint broke...Don't fix it!
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions
answered
Junior Member

ahhhh got it thanks. And I am Bobby Bridgewater :)
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
M
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
S
S
If it aint broke...Don't fix it!
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet