Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Skipping the product info and shopping cart pages

Skipping the product info and shopping cart pages

Locked

Started by jack7890 on 4 Apr 2009, 8:26 AM · Views: 1,676

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Apr 2009, 8:26 AM
#1
jack7890 avatar

jack7890

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Post #1 by jack7890

I run a website where I sell a single piece of software. Currently, if a user clicks on one of the "Order now" links I have throughout my site, they are directed to the software's product info page. On that page they click the button to add the software to the cart, at which point they are directed to the shopping cart page. And here they must select the checkout button. Nothing shocking here--this is all standard Zen Cart procedure.

I'd like to change my site so that when a user clicks on a "Order now" link he is directed DIRECTLY to the checkout page. This means I would bypass the product info and shopping cart pages. Because I only sell a single piece of software, these pages are superfluous.

How can I do this in Zen Cart? Is it possible to add something to to the shopping cart and direct the user to checkout all with one click?

4 Apr 2009, 11:08 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

Although you don't ask, provided you don't have attributes for your product, you can bypass the product page by using code similar to this (taken from a working site)

<a id="buyNowButton" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=buy_now&products_id=1') ?>"><?php echo zen_image_button('big_buy_now.gif', BUTTON_BUY_NOW_ALT) ?></a>

You could then bypass the shopping cart by including a redirect from the includes/modules/pages/shopping_cart/header_php.php straight to the shipping page```php
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));


You could then take this a step further by installing the Fast & Easy Checkout mod and redirecting to that instead to get the checkout on a single page, and even take away the need to create an account, since software package purchases are often one-off buys.

The only thing to watch out for with a process flow like this is whether it gets to abrupt. The visitor presses an order now button and suddenly is asked to enter personal information. Is that too soon. Does he or she still need a page in between to get comfortable with their decision to purchase. I can't say, but it may be worth testing to see.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

20 Apr 2009, 5:22 PM
#3
jack7890 avatar

jack7890

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Post #3 by jack7890

kuroi, thanks for your excellent advice. It works perfectly, with only one issue. I'd like to use the zen_href_link(FILENAME_SHOPPING_CART, 'action=buy_now&products_id=1') link for a product that has an attribute. It is a downloadable software product, so I don't think I can get rid of the attribute, even though there is only one version of the software.

Is there any way to still bypass product info page?

14 May 2009, 9:37 AM
#4
incredibody_com avatar

incredibody_com

New Zenner

Join Date:
May 2007
Posts:
42
Plugin Contributions:
0

Post #4 by incredibody_com

kuroi:

Although you don't ask, provided you don't have attributes for your product, you can bypass the product page by using code similar to this (taken from a working site)

<a id="buyNowButton" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=buy_now&products_id=1') ?>"><?php echo zen_image_button('big_buy_now.gif', BUTTON_BUY_NOW_ALT) ?></a>


Where would this code go?
14 May 2009, 10:37 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #5 by kuroi

jack7890:

kuroi, thanks for your excellent advice. It works perfectly, with only one issue. I'd like to use the zen_href_link(FILENAME_SHOPPING_CART, 'action=buy_now&products_id=1') link for a product that has an attribute. It is a downloadable software product, so I don't think I can get rid of the attribute, even though there is only one version of the software.

Is there any way to still bypass product info page?Yes, but it's more complicated. What you would do is clone the form that surrounds the add to cart button and attributes on the product_info page and then pass the single-valued attribute as a hidden field.

I haven't tied this myself so can't be more specific on the details.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

14 May 2009, 10:38 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #6 by kuroi

IncrediBody.com:

Where would this code go?Into whatever page template you want the button inserted. For example I've put it on the home page by inserting it into a site's tpl_index_default.php file.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)