Using Frames

Modified on Sun, 24 Sep, 2023 at 4:47 PM

How do I make the shopping cart display within a frame of my web site?

After you add "Add to Cart" buttons to your product pages, this will happen automatically. The shopping cart will display in the same frame your product pages display.


How do I set up a "View Cart" button outside of the main content frame of my site?

You need to set the View Cart form's "target" attribute, so the shopping cart page appears in your site's main content frame. You also need to override the default action that sends your customers back to the page they came from. Below is the HTML needed to accomplish these tasks. This will create a "View Cart/Checkout" button.

<form method="post" action="http://www.ewebcart.com/105/cart" target="main">
<input type="hidden" name="return" value="URL">
<input type="submit" name="view" value="View Cart/Checkout">
</form>

Replace main with the name of your site's main content frame. Replace URL with a website address that points to a page on your website (e.g., a product index page). This page will always display in the main content window when a customer returns to your site after clicking the "Back to Shopping" button.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article