going directly to checkout after adding an item

General ShopSite user discussion

going directly to checkout after adding an item

Postby npinfotech » Tue Sep 16, 2008 4:25 pm

My apologies if this has already been asked in the forum.

I'd like to know if there is a way to skip the cart page altogether after initially adding an item by clicking "add to cart". I'd only like to skip the cart for 1 item, so I'm not really looking to make a global change.

Also, I read in the documentation that the "add to cart" button has an alignment property, but it is "not recommended". Why would it not be recomended? Is there another way I can center the "add to cart" button?

Any help would be greatly apreciated.
npinfotech
 
Posts: 6
Joined: Tue Sep 16, 2008 4:16 pm

Postby Jim » Tue Sep 16, 2008 6:05 pm

Do you mean you want to go from the Add to Cart button directly to the screen where the shopper enters their billing and shipping addesses? If so this is not possible. The shopping cart screen is where all calculations are done. It is also the screen that determines what fields for payment data will be displayed on the billing.cgi screen.


Where did you read the information about the alignment of the Add to cart button? I believe that it is part of the html specification that input images don't have alignment attributes. You can align the image by aligning the area where the image is displayed. for example if it is in a <td> you can set the td to have an align=center and valign=middle.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby npinfotech » Thu Sep 18, 2008 11:00 am

Yes, to go from the Add to Cart button directly to the screen where the shopper enters their billing and shipping addesses is what I emant.

The place where I saw the recomendation to not go with alignment is:

http://www.shopsite.com/help/9.0/en-US/ ... igure.html

it's under "Image Layout Defaults", "other attributes".

I was considering placing the add to cart button in a table cell (<td>), but realized that add to cart is not like a normal link or image. What would I put in the table cell to represent the add to cart button?

Again, thank you very much for your time.
npinfotech
 
Posts: 6
Joined: Tue Sep 16, 2008 4:16 pm

Postby Jim » Thu Sep 18, 2008 1:56 pm

As I mentioned there is no way to go directly from an add button to the billing address screen, you must go through the shopping cart screen.

As for the align attribute for images that was depreciated in the html 4.01 spec. See http://www.w3schools.com/tags/tag_IMG.asp The alignment should probably be done with a style or through the element that it is contained in (i.e. td tag)
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby npinfotech » Thu Sep 18, 2008 3:58 pm

Sorry about that; I wrote a much longer response before and when I hit post, I got a message that said there was some sort of error (the perils of using forums I guess). In that response, I had a line thanking you for saving me a ton of research.

I was able to solve the issue of centering ht ebutton by centering all of the content on the page. Would i be able to accomplish centering inside a table like this:

<td>
<center>
[-- STORE.AddToCart --]
</center>
</td>
npinfotech
 
Posts: 6
Joined: Tue Sep 16, 2008 4:16 pm

Postby Jim » Thu Sep 18, 2008 4:08 pm

Something like this:

<td align="center" valign="middle">

[-- STORE.AddToCart --]

</td>

Note, If you take a long time typing a message you will get an error when you click the submit button. To get around this just use the browser back button, then click Preview, then click the Submit button and it will submit the response.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby npinfotech » Fri Sep 19, 2008 7:29 am

Just dropping [-- STORE.AddToCart --] wouldn't put an "add to cart" button inside the tabel cell. What would?
npinfotech
 
Posts: 6
Joined: Tue Sep 16, 2008 4:16 pm

Postby Jim » Fri Sep 19, 2008 8:10 am

It depends on what type of add to cart is required. If you have order options, quantity, etc enabled then you need to have a form submit otherwise a a href can be used.

http://shopsite.com/help/9.0/en-US/sc/p ... oduct.html contains the necessary tags and examples of how you would use them.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby npinfotech » Wed Sep 24, 2008 11:34 pm

Thank you very much.
npinfotech
 
Posts: 6
Joined: Tue Sep 16, 2008 4:16 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 13 guests

cron