Badadz Posted February 18, 2003 Posted February 18, 2003 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
Ajeh Posted February 19, 2003 Posted February 19, 2003 Would something like this work: http://www.thewebmakerscorner.com/snap_att....php?cPath=3_10
loxly Posted February 19, 2003 Posted February 19, 2003 Way cool Linda! What mode does that? deb [no external urls in signatures please, kthanks]
Ajeh Posted February 19, 2003 Posted February 19, 2003 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.
Ajeh Posted February 19, 2003 Posted February 19, 2003 oopss ... :shock: Make that a search on addtocart.php or addtocart silly me ... :D
loxly Posted February 19, 2003 Posted February 19, 2003 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]
Badadz Posted February 19, 2003 Author Posted February 19, 2003 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
Ajeh Posted February 19, 2003 Posted February 19, 2003 So I take it that was not what you are looking for, eh? :(
Badadz Posted February 19, 2003 Author Posted February 19, 2003 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 LinkReferences 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
Skate Posted February 20, 2003 Posted February 20, 2003 Would something like this work: http://www.thewebmakerscorner.com/snap_att....php?cPath=3_10 Linda, this is exactly what I am looking to do. I can't wait to have this contribution installed. YOU GUYS ARE AWESOME!!! Rich
Ajeh Posted February 20, 2003 Posted February 20, 2003 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
itbejared Posted February 20, 2003 Posted February 20, 2003 i always seem to find something great i can incorperate into my site! thanks you guys!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.