close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Convert view cart to a quick cart using ecart

Thread began 2/19/2010 2:03 pm by jenkolaka19379118 | Last modified 2/24/2010 4:09 pm by jenkolaka19379118 | 6018 views | 5 replies

Eric Mittman

You should think of this as a regular html edit. You should get it the display looking the way you want it first, then you can add in any links and the code to show the items and total.

You can change the register to be the MyAccount link and get rid of the others. Then craft your cart display the way you would like it. Where you would like to see the number of items in the cart or the total you will need to use the php cart code for this. Here is the code that you will use to display the number of items in the cart:

php:
<?php echo $WA_Store_Cart->TotalColumn("Quantity"); ?>



For the total of the cart use this code:

php:
<?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GrandTotal()); ?>



For the view cart and the checkout you should just add in links to these pages, the links would look like this:

<a href="cart.php">view cart</a>
<a href="checkout.php">checkout</a>

If you just use the php code for the carts number of items and total the rest is just html and css. This code should work on any page, it just needs the eCart include at the top of the page to work.

You will need to make this update on your Templates > Main.dwt.php and on the index page as well.

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