Guest Posted June 20, 2003 Posted June 20, 2003 Most of these are to reduce 'click depth', and make my site generally nicer looking. [*]I want to put a checkout button in the shopping cart box. any idea how? [*]I want to build a navigation doodah in flash. Is it OK to just write the links as I see them in my browser minus the web address eg. like default.php?cPath=10 [*]the small product images on the website appear to be just the large images displayed with smaller dimensions (ie the same file) is that correct? Can I specify my own small and large images? how? [*]I want to specify rollover images for all the buttons (eg add to cart, continue etc). Is this possible? how do I do it? [*] Is there an easy way to put the product descriptions in the category listing page? The product image could then link to the enlarged image rather than the description page. [*]right, where's the coffee...8)
Midnght Posted June 20, 2003 Posted June 20, 2003 Mos tof the stuff you need you cna find here http://wiki.oscommerce.com
Guest Posted June 20, 2003 Posted June 20, 2003 i just started work a few hours agoa at 4 am but oh well. :lol: That's about the time I finished work yesterday. hence the grump. grumpiness is tempered by the reason I'm working so late - I getting as much done as poss b4 going on a well-deserved family holiday. :D
Midnght Posted June 20, 2003 Posted June 20, 2003 Most of these are to reduce 'click depth', and make my site generally nicer looking. [*]I want to put a checkout button in the shopping cart box. any idea how? [*]I want to build a navigation doodah in flash. Is it OK to just write the links as I see them in my browser minus the web address eg. like default.php?cPath=10 [*]the small product images on the website appear to be just the large images displayed with smaller dimensions (ie the same file) is that correct? Can I specify my own small and large images? how? [*]I want to specify rollover images for all the buttons (eg add to cart, continue etc). Is this possible? how do I do it? [*] Is there an easy way to put the product descriptions in the category listing page? The product image could then link to the enlarged image rather than the description page. [*]right, where's the coffee...8) [*] Um yes but i have to investigate the check out button code then tell ya where to put it in the box. Which handligns the boxes is fairly simple. [*]No it's not. You need to use the php code unless of course your links will never change which wont work I think becaus eof the bread crumb navigation. (Forgive me but i'm learning this stuff as fast as I can to. }:>) ) [*]Yes you can. What we found is we set the image sizes. in Cofiguration Images to the Size we want and we adhere to that size so it stops resizing. As none fo the image options seem to be disable resizing. }:>/ [*]IT is possible but a lot of work to do so and not somethign I have done. [*]Again i'm sure there is. but i'd have to look more as it's not a feature we cared about having. Sorry. [*]Hopefully int he coffee pot. }:>) If not try the cupboard.
Wizzud Posted June 20, 2003 Posted June 20, 2003 1. checkout button in shopping cart box At the bottom of includes/boxes/shopping_cart.php change if ($cart->count_contents() > 0) { $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'right', 'text' => $currencies->format($cart->show_total())); } new infoBox($info_box_contents); to if ($cart->count_contents() > 0) { $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'right', 'text' => $currencies->format($cart->show_total())); $cart_contents_string = '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; $info_box_contents[] = array('align' => 'center', 'text' => $cart_contents_string); } new infoBox($info_box_contents); This will only put the checkout button in the box if there are items in the cart. 4. Rollover buttons One option is to use flash buttons. See http://www.oscommerce.com/community/contributions,915 for more info. An option for implementation is to use a naming convention for your new flash buttons, eg. prefix them with 'flash_', and then modify the tep_image and tep_image_button functions in includes/functions/html_output.php to test for that prefix and call the corresponding flash function if found. I hope you find this of use. Regards, Wizzud "It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."
Guest Posted June 20, 2003 Posted June 20, 2003 thanks, wizzud. I just tried changing the code ( i copied it over to avoid typo's), but I get the following error message on the page: Parse error: parse error, unexpected T_STRING in /home/dan/public_html/catalog/includes/boxes/shopping_cart.php on line 57
Guest Posted June 20, 2003 Posted June 20, 2003 oops. didn't mean to post then. I hadn't thought of using flash buttons. Thanks. I think I'll go with that.
Guest Posted June 20, 2003 Posted June 20, 2003 hmm must stop answering meself! thinking about flash buttons. it might exclude customers, as not everyone has flash. also, more importantly there are issues sometimes with flash displaying properly in ie on Mac if it's inline with other content (rather than on its own.) I think I'd be better off leaving rollovers off for now. Unless anyones got a better idea? wizzud, I don't s'pose you've any idea why your code won't work have you? different distro? did you get the code from elsewhere in the site? If so I can copy over from the same place in my site, and see if that works... not a php wiz sorry.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.