Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can you skip the Buy Now page?


Badadz

Recommended Posts

Posted

Hi All,

 

Great program and I am actually building my second shop and am becoming a huge fan. Haven't had to bother you all till now. I have thoroughly checked for the answer before posting.

 

I am looking for a way to skip the buy now page that comes up after clicking on a category. I would like the customer to be taken a similar page to the buy now page but one which shows the description and product Attribute boxes all on the one page.

 

At the moment the customer clicks onto a category and then buy now and because I have product attributes, they are taken to the detailed product page where they have to click "Add to Cart" (A bit too long and possible loss of customer sales).

 

This isn't an easy request to describe and I suspect it might have been asked before but I just cannot find it.

 

Thanks in advance

 

The site I am modifying at the moment is located:

 

 

www.aussiedecals.com/newsiteindex.html

 

This isn't actually live yet but please do not complete checkout for any items. (This link will go dead when I launch it for real)

 

Thankyou in advance

 

Adam

Posted

Way cool Linda! What mode does that?

 

deb

[no external urls in signatures please, kthanks]

Posted

Combination of something a few of us tossed together one night on the forum ...

 

Search on addcart and most the code is on that thread.

 

If I get some time, I will try to put together all of the changes I made to the code so that it has everything we did that night and any enhancements I might have added since then.

Posted

oopss ... :shock:

 

Make that a search on addtocart.php or addtocart

 

silly me ... :D

Posted

Thanks! Looking forward to it. I will bookmark this and search later, trying to actually get some work done! haha, that won't last!

[no external urls in signatures please, kthanks]

Posted

Thanks Linda,

 

My situation is similar to "The Matrix" item in that test shop. Because it has an attribute you have to go into the actual item detail and select the attribute before adding it to the cart.

 

I might just change my "Buy Now" button to "Select Color". This will buy me some time while I experiment with trying to get the attribute appearing on the categories page.

 

Thanks Anyway

 

Adam

Posted

Afraid not.

 

Like I said in my original post, It is a hard thing to explain. I have found a contribution which I think describes my requirement. Its a little vague for a newb like me to follow but I will give it a try. I'm also not sure if this will work with the current snapshot..

 

How To Display Products In Full Instead Of Text Link

References in the forum:

http://www.theexchangeproject.org/communit...d/i,7543/t,7543

 

 

There is a way to get the products to display in full once you have clicked on a category instead of a text link to the product.

 

In product_list.php, change the following:

 

case 'PRODUCT_LIST_NAME':

if ($HTTP_GET_VARS['manufacturers_id']) {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO,

'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' .

$listing_values['products_id'], 'NONSSL') . '">' .

$listing_values['products_name'] . '</a>';

} else {

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO,

'cPath=' . ($HTTP_GET_VARS['cPath'] ? $HTTP_GET_VARS['cPath'] :

tep_get_product_path($listing_values['products_id']) ) . '&products_id=' .

$listing_values['products_id'], 'NONSSL') . '">' .

$listing_values['products_name'] . '</a> ';

}

break;

 

 

To:

 

case 'PRODUCT_LIST_NAME':

if ($HTTP_GET_VARS['manufacturers_id']) {

$lc_text = '<b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO,

'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' .

$listing_values['products_id'], 'NONSSL') . '">' .

$listing_values['products_name'] . '</a></b><br><br><text-indent:"5px">' .

$listing_values['products_description'];

} else {

$lc_text = '<b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' .

($HTTP_GET_VARS['cPath'] ? $HTTP_GET_VARS['cPath'] :

tep_get_product_path($listing_values['products_id']) ) . '&products_id=' .

$listing_values['products_id'], 'NONSSL') . '">' .

$listing_values['products_name'] .

'</a></b> <br><br><text-indent:"5px">' .

$listing_values['products_description'];

}

 

 

In default.php you have to include the field products_description in the sql

queries. Just look for $listing_sql and make the necessary changes to the select queries:

 

Replace the following:

 

$listing_sql = "select " . $select_column_list . " p.products_id,

p.manufacturers_id, p.products_price, s.specials_new_products_price,

IFNULL(s.specials_new_products_price,p.products_price) as final_price from "

. TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " .

TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left

join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where

p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and

m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "' and

p.products_id = p2c.products_id and pd.products_id = p2c.products_id and

pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" .

$HTTP_GET_VARS['filter_id'] . "'";

 

 

To:

 

$listing_sql = "select " . $select_column_list . " p.products_id,

p.manufacturers_id, pd.products_description, p.products_price,

s.specials_new_products_price,

IFNULL(s.specials_new_products_price,p.products_price) as final_price from "

. TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " .

TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left

join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where

p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and

m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "' and

p.products_id = p2c.products_id and pd.products_id = p2c.products_id and

pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" .

$HTTP_GET_VARS['filter_id'] . "'";

 

 

All following $listing_sql queries that have to select products have to be

changed.

 

Hopefully this will do the job... I'll try and post the result 8>) Thanks

 

Adam

Posted

I will try to put together the peices and parts into a contribution as it is not hard to load.

 

Documentation will be sparse ... :shock:

 

But ... it can be installed easily. :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...