Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple shipping methods in one module not working


richms

Recommended Posts

Whatever they choose, its reverting to the first option from that module after the payment method

 

The array its returning looks like this -

 

Array
(
   [id] => byitem
   [module] => By item V2.0
   [methods] => Array
       (
           [0] => Array
               (
                   [id] => byitem
                   [title] => Calculated on the cart contents - Urban
                   [cost] => 4.5
               )

           [1] => Array
               (
                   [id] => byitem
                   [title] => Calculated on the cart contents - Rural
                   [cost] => 9.5
               )

       )

)

 

 

I have another method that returns about 10 options for different areas - urban and rural and it also always reverts to the top item in the list.

 

Is there something else it needs to return to make the items individually selectable? Is the ID supposed to be the same for all of them? I tried searching and found no documentation on writing a shipping module so just modified another one to do what I wanted.

Edited by richms
Link to comment
Share on other sites

  • 3 weeks later...

Anyone know at all? I cant find any documentation on what a cart is supposed to reurn, so I am assuming that I should have something else other than the same id for each array within the array so that it can tell the difference.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...