Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] individual product shipping prices


Recommended Posts

i searched

 

checkout_confirmation.php

checkout_payment.php

includes/classes/shipping.php

includes/classes/shopping_cart.php

includes/classes/order.php

 

there's either no

require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping;

or it's been quoted out.

Sorry i m new to php.  Post a screen copy, maybe it could help....

 

test.gif[

 

did you get this work??

Link to comment
Share on other sites

did you get this work??

 

 

YES , I just got it work !!!

 

in the zip file, the "indivship.php" file was in the includes/languages/modules/shipping/ folder.

 

i copied it to the includes/languages/english/modules/shipping/ folder

 

problem solved!!

 

 

but then I got -TABLE_SHIPPING_METHODS error..

 

I followed crashwave's instruction, created the table, input the data 000000 ....and defined in the databaes_tables.php but the error was still there.

 

then I quoted out the //product shipping ........... in categories.php

 

it's finally working now!!

 

THANK YOU Crashwave for your great contribution!

Edited by fayenet
Link to comment
Share on other sites

but then I got -TABLE_SHIPPING_METHODS error..

 

didi you define in correct database file

 

 

 

Now i get the 1146 - Table 'store.table_products_shipping' doesn't exist

error

 

Make sure you define in your database files. also table_products_shipping that should be capitalized, don't know if you just wrote it like that :D

 

gonna go Watch a movie with boyfriend now "1M years BC" B) be back soon

q_|_|| _|9~~J >-o>-o q_|_|| )| q_|| )

Link to comment
Share on other sites

hey crashwave...everything seems to be working ok with the contribution EXCEPT for one thing...on my order confirmation page i am getting the following errors

 

Billing Information 

Billing Address (Edit) : Warning: Variable passed to reset() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 29

Payment Method (Edit): Warning: Variable passed to each() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 30

 

 

LINE 29 and 30 in ot_tax.php reads:

reset($order->info['tax_groups']);
    while (list($key, $value) = each($order->info['tax_groups'])) {

 

please help if you have any idea what is causing this

Link to comment
Share on other sites

didi you define in correct database file

Make sure you define in your database files. also table_products_shipping  that should be capitalized, don't know if you just wrote it like that  :D

 

gonna go Watch a movie with boyfriend now "1M years BC"  B) be back soon

 

Yes, i defined it in both database files and i also had it all capitalized.

Thanks for help, maybe somebody else has had this problem and sorted it?

 

Thanks,

Steve

Link to comment
Share on other sites

i had this problem what fixed was this:

put this in sql:

 

CREATE TABLE `TABLE_SHIPPING_METHODS` (

`methods_id` int(10) unsigned NOT NULL auto_increment,

`methods_name` varchar(32) NOT NULL default '',

`methods_module` varchar(32) NOT NULL default '',

`methods_handling_charge` decimal(5,2) NOT NULL default '0.00',

`methods_handling_per_box` tinyint(1) NOT NULL default '0',

`methods_tare_weight` decimal(4,2) NOT NULL default '0.00',

`methods_max_box_weight` tinyint(3) unsigned NOT NULL default '0',

`date_added` datetime default NULL,

`last_modified` datetime default NULL,

`ship_zipcode` varchar(32) NOT NULL default '',

PRIMARY KEY (`methods_id`)

) TYPE=MyISAM AUTO_INCREMENT=14;

 

 

and define it in the database files. I guess you can leave it blank or add you methods like so

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (1, 'Fedex', 'fedex1', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (2, 'Flat Rate', 'flat', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (3, 'Free Shipping', 'freeshipper', 0.00, 0, 0.00, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (4, 'Individual Shipping', 'indvship', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (5, 'Per Item', 'item', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (6, 'Percent', 'percent', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (7, 'Table Rates', 'table', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (8, 'UPS', 'ups', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (9, 'UPSXML', 'upsxml', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (10, 'USPS', 'usps', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (11, 'Zone Based', 'zones', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (12, 'Zonesworld', 'zonesworld', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (13, 'Regions', 'regions', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

Edited by jiqqaman
Link to comment
Share on other sites

Who is this asnwer directed to?

 

 

i had this problem what fixed was this:

put this in sql:

 

CREATE TABLE `TABLE_SHIPPING_METHODS` (

`methods_id` int(10) unsigned NOT NULL auto_increment,

`methods_name` varchar(32) NOT NULL default '',

`methods_module` varchar(32) NOT NULL default '',

`methods_handling_charge` decimal(5,2) NOT NULL default '0.00',

`methods_handling_per_box` tinyint(1) NOT NULL default '0',

`methods_tare_weight` decimal(4,2) NOT NULL default '0.00',

`methods_max_box_weight` tinyint(3) unsigned NOT NULL default '0',

`date_added` datetime default NULL,

`last_modified` datetime default NULL,

`ship_zipcode` varchar(32) NOT NULL default '',

PRIMARY KEY  (`methods_id`)

) TYPE=MyISAM AUTO_INCREMENT=14;

and define it in the database files. I guess you can leave it blank or add you methods like so

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (1, 'Fedex', 'fedex1', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (2, 'Flat Rate', 'flat', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (3, 'Free Shipping', 'freeshipper', 0.00, 0, 0.00, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (4, 'Individual Shipping', 'indvship', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (5, 'Per Item', 'item', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (6, 'Percent', 'percent', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (7, 'Table Rates', 'table', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (8, 'UPS', 'ups', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (9, 'UPSXML', 'upsxml', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (10, 'USPS', 'usps', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (11, 'Zone Based', 'zones', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (12, 'Zonesworld', 'zonesworld', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

INSERT INTO `TABLE_SHIPPING_METHODS` VALUES (13, 'Regions', 'regions', 0.00, 0, 0.00, 50, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

Link to comment
Share on other sites

Thank You Very Much...

Your a Gent!

 

That solved the problem.

 

Thanks again,

Steve

 

 

Sorry I thought you already did that http://www.oscommerce.com/forums/index.php?sho...ndpost&p=566919 and it is new instructions http://www.oscommerce.com/forums/index.php?sho...ndpost&p=566990

q_|_|| _|9~~J >-o>-o q_|_|| )| q_|| )

Link to comment
Share on other sites

hey crashwave...everything seems to be working ok with the contribution EXCEPT for one thing...on my order confirmation page i am getting the following errors

 

Billing Information 

Billing Address (Edit) : Warning: Variable passed to reset() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 29

Payment Method (Edit): Warning: Variable passed to each() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 30

LINE 29 and 30 in ot_tax.php reads:

reset($order->info['tax_groups']);
? ? while (list($key, $value) = each($order->info['tax_groups'])) {

 

please help if you have any idea what is causing this

 

You didn't edit your order.php file correctly

q_|_|| _|9~~J >-o>-o q_|_|| )| q_|| )

Link to comment
Share on other sites

I don't know anything about Shipping rate per product v2.0. Also that is from 23 Nov 2002 . I don't think you should use two different shipping per product. If you already have Shipping rate per product v2.0 and it works for you leave it. Individual shipping is probably totally different.

shipping per http://www.oscommerce.com/community/contributions,367

individual shipping http://www.oscommerce.com/community/contributions,1333

Edited by crashwave

q_|_|| _|9~~J >-o>-o q_|_|| )| q_|| )

Link to comment
Share on other sites

ok so i uninstalled Shipping rate per product v2.0 and installed Individual shipping and im getting the same error..crashwave you said i didnt edit my order.php correct...i have gone ove rthis a few times and all looks good..if possible someone please post your order.php so i can see if there are diffrences

 

 

Warning: Variable passed to reset() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 29

Warning: Variable passed to each() is not an array or object in /usr341/home/e/v/everspee/public_html/includes/modules/order_total/ot_tax.php on line 30

Link to comment
Share on other sites

I had everything working on my staging server but now on my live site when I checkout on the shipping page it only shows

"This is currently the only shipping method available to use on this order." with no options below it. I'm using all of the same files that were on my staging server???

 

I'm lost :(, any help would be appreciated.

BTW, thank you for the great contribution.

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.
Note: Your post will require moderator approval before it will be visible.

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...