PropioWeb Posted August 15, 2005 Share Posted August 15, 2005 I am trying to provide our customers on one of our sites with shipping rates before they register and purchase one of our items and I think I figured out a way but I, not being a PHP guru by any means, need some help. Ok, First, right now I'm in the process of entering individual shipping prices to our gift baskets at newenglandcountrygifts.com, Ground, 2 Day, and Next Day. The contribution I'm using for osCommerce had me add fields to the product table which are ofcourse what I'm filling out in the add product page of the admin, they are then called during checkout to charge the person the correct amount for shipping. That is all working fine. Second, what I need help with is adding a snippet of php code in the osC code that will call the shipping amounts from the table when a customer is on each individual baskets page. For example if you go here http://www.newenglandcountrygifts.com/prod...products_id=268 at the bottom of the description you will see it says "Weight: 10 lbs. Shipping: Free Ground Shipping" I wrote all this in by hand in the add product page. I don't want to continue doing that as you may see it is very tedious. So if I could have like an echo that calls the weight and three shipping prices it would make everything a lot easier. You guys understand what I mean? All I have so far is this: function quote($method = '') { global $order, $cart; $shiptotal3 = $cart->get_shiptotal3(); $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_INDVSHIP3_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_INDVSHIP3_TEXT_WAY, 'cost' => $shiptotal3))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } I grabbed this from the module that osC calls for when the customer is looking at the cost of shipping. Is this what I need? How do I modify it so I can add it to the page that builds the individual product pages? Thanks in advance. Samuel Mateo, Jr. osC 2.2 MS2 Installed Mods: WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.