OrderAnywhere / Add to Cart from WITHIN the cart?

General ShopSite user discussion

OrderAnywhere / Add to Cart from WITHIN the cart?

Postby Drew » Mon Jul 25, 2005 4:24 pm

Hello,

Is it by chance possible to use an OrderAnywhere link ON the Shopping
Cart page, so that it automatically adds the product to the cart?

In my attempt to do this, I am receiving an auth file error (even though
I am using the [-- STORE.ID --] tag as part of the OrderAnywhere link in
the Shopping Cart template).

Can products only be added to the cart from outside the Shopping Cart?

Thanks,

drew
Drew
 

Re: OrderAnywhere / Add to Cart from WITHIN the cart?

Postby Nikolaus Gruchot » Tue Jul 26, 2005 1:48 am

Hello Drew,

take a look at the source code of your shopping cart, you will see that
there is a <form> tag enclosing the main part of the page, it starts where
you find this line:

<form name="order" class="order"
action="http://www.yourdomain.com/cgi-bin/shopsite/sc/order.cgi"
method=post>

I would think that within this <form> </form> area you will not be able to
have an order anywhere link.

But you can try to put your order anywhere link in the -> Commerce setup ->
Order system -> Shopping cart -> Text at the top of the Shopping Cart screen
and/or -> Text at the bottom of the Shopping Cart screen.

The top of the page and the footer are outside the <form> tag and therefore
it should work. I have a search box at the top of the shopping cart screen
and it works.

Best regards from Germany,

Niko

"Drew" <drew@zoppdesign.com> schrieb im Newsbeitrag
news:MPG.1d4f229fa2fc1036989680@news.shopsite.com...
Hello,

Is it by chance possible to use an OrderAnywhere link ON the Shopping
Cart page, so that it automatically adds the product to the cart?

In my attempt to do this, I am receiving an auth file error (even though
I am using the [-- STORE.ID --] tag as part of the OrderAnywhere link in
the Shopping Cart template).

Can products only be added to the cart from outside the Shopping Cart?

Thanks,

drew
Nikolaus Gruchot
 

Re: OrderAnywhere / Add to Cart from WITHIN the cart?

Postby Gary » Tue Jul 26, 2005 6:55 am

Drew-

Take a look at our shopping cart page at www.freebears.com. If this what
you want to do, just add your code to the "text at bottom of screen" in
Commerce setup>order system>shopping cart. Remember there is no preview for
changes you make to your shopping cart page, so it will be live as soon as
you save any changes.

Gary

"Drew" <drew@zoppdesign.com> wrote in message
news:MPG.1d4f229fa2fc1036989680@news.shopsite.com...
Hello,

Is it by chance possible to use an OrderAnywhere link ON the Shopping
Cart page, so that it automatically adds the product to the cart?

In my attempt to do this, I am receiving an auth file error (even though
I am using the [-- STORE.ID --] tag as part of the OrderAnywhere link in
the Shopping Cart template).

Can products only be added to the cart from outside the Shopping Cart?

Thanks,

drew
Gary
 

Re: OrderAnywhere / Add to Cart from WITHIN the cart?

Postby Drew » Tue Jul 26, 2005 8:32 am

Niko,

That's exactly the problem -- I was putting it inside the form tag.
Doh!

Thanks!

drew

In article <dc4tdi$o7n$1@eval.shopsite.com>, gruchot@watersafety.net
says...
Hello Drew,

take a look at the source code of your shopping cart, you will see that
there is a <form> tag enclosing the main part of the page, it starts where
you find this line:

form name="order" class="order"
action="http://www.yourdomain.com/cgi-bin/shopsite/sc/order.cgi"
method=post

I would think that within this <form> </form> area you will not be able to
have an order anywhere link.

But you can try to put your order anywhere link in the -> Commerce setup -
Order system -> Shopping cart -> Text at the top of the Shopping Cart screen
and/or -> Text at the bottom of the Shopping Cart screen.

The top of the page and the footer are outside the <form> tag and therefore
it should work. I have a search box at the top of the shopping cart screen
and it works.

Best regards from Germany,

Niko

"Drew" <drew@zoppdesign.com> schrieb im Newsbeitrag
news:MPG.1d4f229fa2fc1036989680@news.shopsite.com...
Hello,

Is it by chance possible to use an OrderAnywhere link ON the Shopping
Cart page, so that it automatically adds the product to the cart?

In my attempt to do this, I am receiving an auth file error (even though
I am using the [-- STORE.ID --] tag as part of the OrderAnywhere link in
the Shopping Cart template).

Can products only be added to the cart from outside the Shopping Cart?

Thanks,

drew


Drew
 

Re: OrderAnywhere / Add to Cart from WITHIN the cart?

Postby Drew » Tue Jul 26, 2005 8:34 am

Hi Gary,

That's exactly what I was hoping to do... I was putting it in the
shopping cart template within the form tag, which was causing the
problem. Thanks for the example and the help!

drew

In article <dc5fcl$v1n$1@eval.shopsite.com>, glb2@poboxes.com says...
Drew-

Take a look at our shopping cart page at www.freebears.com. If this what
you want to do, just add your code to the "text at bottom of screen" in
Commerce setup>order system>shopping cart. Remember there is no preview for
changes you make to your shopping cart page, so it will be live as soon as
you save any changes.

Gary

"Drew" <drew@zoppdesign.com> wrote in message
news:MPG.1d4f229fa2fc1036989680@news.shopsite.com...
Hello,

Is it by chance possible to use an OrderAnywhere link ON the Shopping
Cart page, so that it automatically adds the product to the cart?

In my attempt to do this, I am receiving an auth file error (even though
I am using the [-- STORE.ID --] tag as part of the OrderAnywhere link in
the Shopping Cart template).

Can products only be added to the cart from outside the Shopping Cart?

Thanks,

drew


Drew
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 60 guests