Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

another shipping method


Guest

Recommended Posts

Posted

Hi

 

I want to add a customer pickup shipping method to the checkout_shipping.php page

 

I have tried all 2.2. add ons and they dont work

 

I even tried copying the flat rate module and changing it to be for store pickup but that didnt work

 

Can someone please help me

 

I have got oscommerce 2.3.1

 

Thank you

 

Ian

Posted

Hi multimixer

 

I copied the flat rate file and then changed it to storepickup and then all the words flat in the flat rate php file, i changed the words to storepickup

 

and then uploaded the copied file

 

All i can think off is that the flat rate is not being used correctly

 

The coding below is from the checkout_shipping.php page if it helps and I have just pasted the part about the shipping method that is there already

 

<h2>Shipping Method</h2>

 <div class="contentText">
   <div style="float: right;">
  <strong>Please Select</strong>    </div>
   Please select the preferred shipping method to use on this order.  </div>

 <div class="contentText">
   <table border="0" width="100%" cellspacing="0" cellpadding="2">

  <tr>
    <td><strong>Free UK Delivery</strong> </td>
  </tr>
  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">
    <td style="padding-left: 15px;">Free UK Delivery on all orders<input type="hidden" name="shipping" value="free_free" /></td>
  </tr>

   </table>
 </div>

 

Dunno if you can tell from that if the flat rate is being used because to get that part to say free delivery on all orders, I changed it to say that in the english.php file in define languages in the admin side of the site

 

Thanks

 

Ian

Posted

To add a new shipping method, there is nothing to do on the checkout_shipping.php page.

 

Restore anything you've done there and go on as follows

 

- Find file includes/modules/shipping/flat.php, make a copy and name it eg spu.php

- Find the corresponding language file in folder includes/languages/english/modules/shipping/flat.php and do the same

- in in each of the 2 spu.php files that you have now, change any word "flat" to "spu"

examples

 class flat {

to be

 class spu {

and

  $this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE;

to be

  $this->title = MODULE_SHIPPING_SPU_TEXT_TITLE;

 

In the text file, you can of course change the actual text to be displayed as you like

 

- Upload the files and enable them in admin>modules>shipping

 

That's it

Posted

Hi

 

I did everything you said and it dont show up

 

All i got showing up under shipping method is this

 

 

Shipping Method

Free UK Delivery

Free UK Delivery on all orders

 

 

Also it has a name delivery options in the admin - modules - shipping when i went to install it

 

I think something is not right

 

I dont know what to do - See the link

 

http://www.irhmedia.co.uk/checkout_shipping.php

 

Thank you

 

Ian

Posted

Also rather it being called spu it is called delivery options in the admin - modules - shipping

 

I dont get it

 

Thanks

 

Ian

Posted

I have removed the free uk delivery option

 

so i got nothing now

 

I installed the delivery options named module and it comes back with the free uk delivery on all orders again

 

and wont add other methods

 

Thanks

 

Ian

  • 4 weeks later...
Posted

Hi, I'm also trying to duplicate the flat rate module. I've followed the instruction above, when I go to admin>modules>shipping it says there are 3 modules available to install but when I actually click on the "+ install module" there are only 2 modules there, not the new one I've created. Pretty weird I dont know what I've done wrong.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...