Page 1 of 1
want to skip intermediary page when adding to basket
Posted: Tue Jun 17, 2008 2:56 am
by rkoshi
Hello,
When a customer goes to the main page that describes an item on our site and clicks add to cart, I would like the item to be added to the basket and an intermediary page skipped that describes the item.
Example:
Current Situation:
1. Buyer goes to
http://www.tijeras.net.vhost.zerolag.co ... e-C26.aspx
2. Buyer clicks on add to cart button (
http://www.tijeras.net.vhost.zerolag.co ... h-P52.aspx)
3. Buyer is taken to product specific page (
http://www.tijeras.net.vhost.zerolag.co ... h-P52.aspx)
4. Buyer selects quantity and clicks add to cart
5. item is added to buyers basket
What I want:
1. Buyer goes to
http://www.tijeras.net.vhost.zerolag.co ... e-C26.aspx
2. Buyer clicks on add to cart button (
http://www.tijeras.net.vhost.zerolag.co ... h-P52.aspx)
3. item is added to buyers cart (cart location is :
http://www.tijeras.net.vhost.zerolag.com/Basket.aspx)
EDIT:
I saw the post at
viewtopic.php?f=42&t=6717&p=27639#p27639 and noticed how it was suggested that the AddToCart user control be used to allow for a html reference to Basket.aspx with a parameter passed along with the url... but I researched the AddToCart user control and didn't find out much about it.. can anyone help?
Re: want to skip intermediary page when adding to basket
Posted: Tue Jun 17, 2008 7:49 am
by jmestep
Normally that happens only when a product has options, but it might happen if there are other fields involved that I haven't worked with yet. Do you have templates or custom field on that product? What category display and product display page are you using?
Re: want to skip intermediary page when adding to basket
Posted: Tue Jun 17, 2008 2:12 pm
by rkoshi
Hello,
Thanks for responding.
I just checked and the product does not have any custom options - I went to the product page on the Admin section (I beleve it's called ablenet or something ... not sure). Also just to let you know I am using AC 7.
The main site, located at
http://www.tijeras.net.vhost.zerolag.co ... er-C3.aspx (for the 12 oz clary hair shampoo product) uses custom html for everything. I don't use templates for this portion of the site. The category display page should be similar to Category.aspx, and Product.aspx for the products (I believe).
The goal is to transition from the main site directly to the cart when a user clicks the add to cart button on the main site.
You know, I was looking up some other posts, and it was stated that there may be a way for an external link to add items to a shopping cart (quantity included), given the SID, product id, and quantity field. The syntax is something like
http://www.anythingxtreme.com/basket.as ... ion0=12095 (that you used in the post
viewtopic.php?f=36&t=2692&hilit=+basket+aspx). I tried this and it didn't quite work for me (even when I removed the option0 tag from the url). I was thinking maybe there's just some small textual error with this syntax, and maybe there really is a way to get this external add to cart functionality working? If I can get this, it will help me get quantities for products and solve the "deletion" of the intermediary page by circumventing it altogether.. I would like so much if this worked.
Re: want to skip intermediary page when adding to basket
Posted: Tue Jun 17, 2008 5:18 pm
by jmestep
The problem might be that you are using custom html. In the default AC7 code, it doesn't happen that way.
On the add to cart link you asked about, that was in a previous version of Able -- 5.5.
This link might help, but the code referred to in the link in the last post won't work if the product has options.
viewtopic.php?f=42&t=6151&p=29927&hilit ... ink#p29927
Re: want to skip intermediary page when adding to basket
Posted: Tue Jun 17, 2008 8:49 pm
by rkoshi
Hello,
I see.. I saw the post and tried out the yoururl/BuyProduct.ashx?p=# example but it didn't end up adding anything to the cart, but it did bring me to the cart site. If only there was a way for this url to work..
I will try looking into Basket.aspx. Do you know of all the locations and references to Basket.aspx and any location where I can get the raw code for everything related to arguments passed to Basket.aspx?
Thanks a lot by the way.. just the help is giving me ideas to solve the problem.
Rohin
Re: want to skip intermediary page when adding to basket
Posted: Wed Jun 18, 2008 7:46 am
by jmestep
You might try switching your category page to a normal Able display page to make sure it is your custom code doing it. On the normal page, there is logic for going to the basket if there are no options, or going to the product page if there are options.
Re: want to skip intermediary page when adding to basket
Posted: Wed Jun 18, 2008 7:52 am
by jmestep
I just looked at your page again, and if you hover over the Add to Cart button for the 12 oz bottle, you can see that the link goes to the product page. Once you get to that page, if you go down to the bottom and hover over the cart button on one of those items, you can see that the url/code is completely different and they work as they should.
Re: want to skip intermediary page when adding to basket
Posted: Wed Jun 18, 2008 6:52 pm
by rkoshi
jmestep wrote:You might try switching your category page to a normal Able display page to make sure it is your custom code doing it. On the normal page, there is logic for going to the basket if there are no options, or going to the product page if there are options.
Do I change this in the on-site switcher:
or on the /Admin AbleCommerce site (that I log into):
or somewhere else?
Just wanted to make sure. I will try this.
Re: want to skip intermediary page when adding to basket
Posted: Thu Jun 19, 2008 8:23 am
by jmestep
You can do it either way. If you use the on-page edit, change the display page in the top Themes and Display Page section, then click Update Themes. You will probably see a change in the Content displayed in the dropdown in the Editor Zone. If you change anything in the Editor Zone underneath, it changes for that display page and that change will be reflected in all the categories that use that display page.
changedisplay.gif
Re: want to skip intermediary page when adding to basket
Posted: Thu Jun 19, 2008 5:40 pm
by rkoshi
thanks. i'll check it out