mushindo Posted July 12, 2003 Share Posted July 12, 2003 We currently have a client who needs some customization done on the cart infobox, and was curious if any existing contributions exist that we have not seen. The entire customization would revolve around the concept that if the customer spends $50+ they get free shipping. This portion is already within the core system to display on the checkout page "FREE shipping" if their order total is above $50. The additions are simple text and php if statements ideally. What the customer would like to see is the following: 1. Within the cart infobox if they have not spent $50 yet, it would display "Spend $X more and we pay for shipping!" above the cart contents, where the $X would be the only dynamic variable. 2. If the customer has selected $50+ in products, then instead it would say "You have qualified for free shipping." This would obviously be a static statement. Pointing us in the right direction or any help you can provide is greatly appreciated. Thanks in advance! :) Sincerely, Bruce 19 contributions submitted Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 There is that contribution, click on downloads, then contributions on the left , have a nice day Link to comment Share on other sites More sharing options...
mushindo Posted July 13, 2003 Author Share Posted July 13, 2003 Thanks for the input. Can you tell me where this is at? I could not locate this contribution when I browsed through the contribution pages. Thanks. Sincerely, Bruce 19 contributions submitted Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2003 Share Posted July 13, 2003 Here it is http://www.oscommerce.com/community/contributions,146 Link to comment Share on other sites More sharing options...
mushindo Posted July 13, 2003 Author Share Posted July 13, 2003 Thanks for the location. This works for displaying on the checkout page, but ideally we are looking for something to display directly within the shopping cart box dynamically that would say: "Spend $x more and receive free shipping!" Then upon hitting the $50 it woudl say: "You have qualified for free shipping." Thanks. Sincerely, Bruce 19 contributions submitted Link to comment Share on other sites More sharing options...
Rumble Posted July 13, 2003 Share Posted July 13, 2003 in boxes/shopping_cart.php place the find the following code almost the last line new infoBox($info_box_contents); and insert the following code before that line $cart_total_string = ''; if ($cart->show_total() < 50) { $limit = 50 - $cart->show_total(); $cart_total_string .= 'Spend ' . $currencies->format($limit) . ' more and we pay for shipping!'; } else { $cart_total_string .= 'FREE shipping'; } $info_box_contents[] = array('align' => 'left', 'text' => $cart_total_string ); Should be what you're looking for! Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.