osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Custom Shipping Mod...Shipping choice not saving.

This is a discussion on Custom Shipping Mod...Shipping choice not saving. within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I have built a custom shipping mod to pull quotes from DHL. I added the code to do this in ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-30-2005, 08:57 PM
Lurker
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
superdad_05
Default Custom Shipping Mod...Shipping choice not saving.

I have built a custom shipping mod to pull quotes from DHL. I added the code to do this in includes\modules\shipping\table.php. I'm kind of new to OSC and I think that's not the place it should have gone, but I'm not sure where to change what file it uses to pull shipping info. I didn't think it looked like it mattered as far as functionality goes. Anyway, I have everything working, it goes out gets the right quotes and puts them as radio buttons on the checkout_shipping.php page.

The problem I'm having is regardless of which radio button is selected, when I continue with the checkout process on the confirmation page, the shipping method that shows up is the first item in the list. I haven't altered any of the code that does this, it seems silly to think the code would just work, but when I read through it, it seems like it should. Am I missing something? I hope there is someone out there who has some experience with this, I have been working on this for several days with no luck. I have very little hair left to pull out!

Thanks for your time! If you need anything else to help please let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-03-2005, 09:22 PM
Lurker
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
superdad_05
Default RE: Custom Shipping Mod...Shipping choice not saving.

wow, 4 days and not a single person has a clue?

I've moved the entire custom shipping code and moved it to the correct place (the DHL module)

I'm still not getting the shipping option saved. No matter if I choose Ground or next day or whatever, it just uses the first option...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-04-2005, 09:09 AM
Lurker
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
superdad_05
Default

Ok, I've come a long way over the last week. I'm getting close. I am working in Checkout_Shipping.php right now in the "process the selected shipping method" part.

My problem I'm running into is that in the Checkout_Shipping.php, I need to know which of the shipping methods were chosen from a list of radio buttons (ground, next day, express, etc.). Can I access this list somehow from the Checkout_Shipping page?

This is what I tried but it apparently isn't working...lol...I'm guessing I can't access the form object from this page?

var radio = form.elements['shipping'];

for (var x=0; x<radio.length; x++)
{
if (radio[x].checked == true)
{
$shipping = array('id' => $shipping,
'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][x]['title'] . ')'),
'cost' => $quote[0]['methods'][x]['cost']);

}
}

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYME NT, '', 'SSL'));
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Product Description not Saving toddw osCMax v2 Installation issues 1 01-29-2006 06:58 PM
Need Custom Shipping Help ericcech osCommerce 2.2 Modification Help 0 01-16-2006 03:54 PM
Shipping Options/Individual Shipping Anonymous osCMax v1.7 Discussion 0 04-01-2004 01:10 PM
Free Shipping/flat rate shipping in zone cvc505 osCommerce 2.2 Installation Help 2 07-21-2003 09:29 AM
UPS mod package (UPS Choice v1.5) dated 2003/01/05 Mark1 osCommerce 2.2 Modification Help 3 05-29-2003 05:03 AM


All times are GMT -8. The time now is 08:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax