close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I add a quick cart?

Thread began 9/30/2009 12:26 pm by Roxana | Last modified 10/07/2009 6:20 pm by Roxana | 2575 views | 6 replies |

Roxana

How do I add a quick cart?

Reading through threads I found the option to add a quick cart to a page. I would like to do that, but I can't find how to do that. A search in the documentation didn't bring up anything. Could anyone point me in the right direction? Can I use eCart to do that?

Sign in to reply to this post

Jimmy Wu

Yes, this would be done using eCart. You would do this by adding your eCart object first. Then you would use the Display Manager and change the Display type to Quick Cart. There are also a few other display types to choose from there if those would fit your needs better.

Sign in to reply to this post

Roxana

Thank you, Jimmy. I overlooked that.

I inserted a quick cart on a test page, which works excactly as I like it to. I then tried to copy the code to the template page, but once I save the template page, the top part of the php code is not copied to all the other pages with the result, that on all pages everything after the quick cart is gone.

Is there a way, other than pasting the code to every single page, to get the template page to carry the php changes over to all pages?

Sign in to reply to this post

Roxana

One more question

I think my question might have been overlooked.

I am using a template page, and I would like the quick cart to become part of that template page. But the php code is in the top section of the code (above the document type), and that part of the code is not copied to the pages that are attached to the template. Without that code everything on the page after the quick cart is gone.

Is there a way, other than pasting the php code for the quick cart to every single page, to get a template page to carry the php changes over to all pages?

Sign in to reply to this post

Jimmy Wu

The PHP code should be included in the template. How are you creating your template? If you open up your template page, make sure that the includes and PHP code are included at the top, then try applying the template to your page.

Sign in to reply to this post

Roxana

Hi Jimmy,

I have been using the template page for all pages in the site. I created the template page as a regular php page, and then made it template with insert - template objects.

I modified the template page to hold the quick cart (not the entire quick cart, I am just using the number of items and the amount), and this is the code that is added to the top:
<?php
//WA eCart Include
require_once("../WA_eCart/cartname_PHP.php");
?><?php
$cartname->GetContent();
?>
<?php
// WA eCart Redirect
if ($cartname->redirStr != "") {
header("Location: ".$cartname->redirStr);
}
?>

I had deleted the behaviors regarding the buttons.

Now, when I open a new page based on the template, the code appears at the top. But the existing pages do not have the code even though they were updated. Also applying the template does not get the code on the pages.

I don't have that many pages, so I decided to go ahead and paste the code to every page that does not have the code. The cart and the checkout pages have the code already.

Sign in to reply to this post

Roxana

I had opened a new thread, because I thought the question was overlooked. Eric suggested a solution that worked.

I moved the code right behind the html tag, which applied the change to all pages in the site. And it works, the quick cart looks good.

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...