close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Added quick cart in template - not displaying items on all pages

Thread began 7/14/2011 8:52 am by YellowCircleWeb | Last modified 7/15/2011 9:24 am by Jason Byrnes | 1283 views | 5 replies |

YellowCircleWeb

Added quick cart in template - not displaying items on all pages

I'm trying to include a quick cart on each page of a store I'm building. I've added the quick cart code into the site template and made sure the include file (WA_eCart/ycCart_PHP.php) is written in an locked region of the template so that it's included on every page, which it is.

However, every page in the site apart from one states that the cart is empty, even when there are products in it.

I've attached a zip file with the home page of the site (which doesn't display the cart total or item count) and the only page in the site that does display the cart total and item count.

I don't understand why it works on this one page, but no others, when I know the include file(WA_eCart/ycCart_PHP.php) is included on every page.

Any help is appreciated

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of one of the pages that does work and a copy of one that does not work so I can compare the two.

Sign in to reply to this post

YellowCircleWeb

Pages attached

I've attached the pages.

The index.php file is the one that doesn't work

Attached Files
shop pages.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the index page is missing the GetContent() function call:

php:
<?php

$ycCart
->GetContent();
?>




on the index page, change:

php:
<?php

//WA eCart Include
require_once("WA_eCart/ycCart_PHP.php");
?>



to:

php:
<?php

//WA eCart Include
require_once("WA_eCart/ycCart_PHP.php");
?>
<?php
$ycCart
->GetContent();
?>
Sign in to reply to this post

YellowCircleWeb

Thank you - that fixed it, all my pages are displaying the quick cart now.

Is there a list of variables used by e-Cart I can reference for outputting data onto a web page? In the quick cart it displays the variable GrandTotal which includes shipping, but I'd like to be able to display the total excluding shipping too if possible?

Sign in to reply to this post

Jason ByrnesWebAssist

to find the list of variable see the bindings panel, and expand the cart binding group.


the subtotal binding will give you the price without shipping:
<?php echo $yourCart->TotalColumn("TotalPrice"); ?>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...