Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / creating a new shipping module

creating a new shipping module

Locked

Views: 2,115

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
1 Nov 2009, 12:10 PM
#1
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

creating a new shipping module

I would like to know how to create a new shipping module.

could anybody give me some clear guides to creating a new shipping module.

1 Nov 2009, 4:30 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: creating a new shipping module

It would help if you could give an idea of what it is you need the shipping module to base the shipping cost on ... :unsure:

1 Nov 2009, 4:36 PM
#3
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

basically the problem is that with the Tare value and with products of differents sizes and weight ,etc.
what i would like to do is add a shipping module similar to that of Ebay, where you have the items price and the shipping and postage shown seperatley.

1 Nov 2009, 4:40 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: creating a new shipping module

The Tare is added into the weight in the shipping class ...

The checkout is already broken down by Subtotal, Shipping and Total ...

What is the difference between shipping and postage ...

1 Nov 2009, 4:46 PM
#5
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

its kind of the same.

i just want it to show some thing like :
ie.- price: xxxx postage(shipping):yyy

also do you how to change under 'product view' where it says:
shipping weight: x lb(s) to 'shipping weight: x gr(s)

1 Nov 2009, 4:55 PM
#6
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

i suppose the coding is very similar to that of OSCommerce, you could say identical almost.

1 Nov 2009, 5:12 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: creating a new shipping module

Zen Cart started out as built from osC so you should find similarities in the code that just need to be translated ...

The lb and lbs are in the language files ...

To find text or code you can use the Tools ... Developers Tool Kit ... and in the bottom input box type in what you are looking for ...

Be aware when changing to smaller units on weight that weight is just a number ... the default Maximum Value of 50 is also, just number ... there isn't a conversion from one unit of weight to another ...

1 Nov 2009, 5:28 PM
#8
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

i did do the language files with the developer tool, i have the zen cart book, but the "shipping weight xxx lb(s) " is static text.

so which file would the product view be under?

1 Nov 2009, 5:31 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: creating a new shipping module

I'd look for:
lb
lbs
shipping weight:
weight:

I am not sure what URL you are looking at for the "product view" to be much more specific than that ...

1 Nov 2009, 6:00 PM
#10
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

i will show you what i mean, i have looked at most files, i have added a link to what i mean and highlighted exactly what i want to change.

http://i37.photobucket.com/albums/e57/ciwluke/screenshot.jpg

1 Nov 2009, 6:14 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: creating a new shipping module

Using the Tools ... Developers Tool Kit ... with a search in the bottom input box on:
shipping weight

and selecting Catalog ... and clicking SEARCH ... I come up with:

/includes/languages/english/product_info.php

Line #17 : define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');

Searching on:
lbs

I come up with:

/includes/languages/english.php

Line #391 : define('TEXT_PRODUCT_WEIGHT_UNIT','lbs');

Line #394 : define('TEXT_SHIPPING_WEIGHT','lbs');

See if those help you on using the templates and overrides to customize your site ... :smile:

4 Nov 2009, 9:24 AM
#12
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

the writing which i spoke about earlier is static content.

any ideas on that, although i will try what you said.

4 Nov 2009, 11:53 AM
#13
lukeciw avatar

lukeciw

New Zenner

Join Date:
Aug 2008
Location:
Hampshire-UK
Posts:
82
Plugin Contributions:
0

Re: creating a new shipping module

i worked correctly after installing a new template and working with that.
thank you all for your help.

:clap:

[solved]

to change all lb(s) to gr(s) it will only work when you work on your template.