Jump to content
dmGremlin

[contribution] individual product shipping prices

Recommended Posts

This mod is exactly what I need for my site, however I just can't seem to get the page to load back up after installing.

 

I'm using an install of CRELoaded 6.2 Standard and put in the individual shipping mod (excellent contribution) found as the update to V2.0 MS2.2 by Rob Fisher.

 

The install was extremely straight forward with only one database command being needed to add the field products_ship_price to PRODUCTS along with uploading 7 files in their respective places in the directory structure.

 

The problem comes in as although it looks like it was a smooth install on my admin page, (module is there, can add prices to products, etc.), I no longer can view any of the pages on my site. (www.mydomain.com/catalog/......)

 

All I am getting is a blank white page for the website despite the admin pages looking like it was a clean install. :'(

 

Any thoughts? I'm willing to Paypal $25 to whomever can help me get this straightened out. :thumbsup:

 

The first error I received was

Cannot redeclare  
tep_get_configuration_key_value()

 

After renaming the function and where it is called, I receive an error not even related to the files in the install.

 

I've even gone through the configuration stuff in my database and removed any dups.

 

Any help you folks can provide is definitely appreciated.

 

Thanks,

Ted

Share this post


Link to post
Share on other sites

Hello,

 

i am from Germany

very nice contribution thx.

 

 

I have 2 questions.

 

1. For what is the field ZIPCODE? Which has it thereby up itself.

2. in the Product_Info the code. I would like to get that there the number with tax indicated. At present it shows it without tax looks it in such a way:

 

 

(This item requires additional shipping of 10 Euro for the first item, and 5 Euro for each additional item.)

 

 

so it should be with tax

 

(This item requires additional shipping of 12 Euro for the first item, and 7 Euro for each additional item.)

 

 

This is the Code for Product Info:

 

// Individual Shipping Contrib
$extra_shipping_query = tep_db_query("select products_ship_price, products_ship_price_two from " . TABLE_PRODUCTS_SHIPPING . " where products_id = '" . (int)$products_id . "'");
if (tep_db_num_rows($extra_shipping_query)) {
$extra_shipping = tep_db_fetch_array($extra_shipping_query);
if($extra_shipping['products_ship_price'] == '0.00'){
echo '<i>(Free Shipping for this Item)</i>';
}else{
echo '<i>(This item requires additional shipping of
$' . $extra_shipping['products_ship_price'];
if (($extra_shipping['products_ship_price_two']) > 0) {
echo ' for the first item, and $' . $extra_shipping['products_ship_price_two'] . ' for each additional item + regular shipping costs.)</i>';
} else {
echo ' + regular shipping costs.)</i>';
}
}

Share this post


Link to post
Share on other sites

Hello,

 

I would like to show product's price and right below it the products price including individual shipping price, here's the 2 relevant code locks from my product_info.php:

 

   if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

 

and

 

	$products_ship_price = $currencies->display_price($product_info['products_ship_price']);

 

What code should I use in order to show the total product's price + shipping price?

 

Thanks for you time, any help would be appreciated.

Share this post


Link to post
Share on other sites

I have just installed thunderaces version of this module after not being able to get the latest contribution working. The individual product shipping rates are working just fine, but I have a unique problem and not the expertise to solve it.

 

Here is my scenario:

 

1. all products in order Individual Shipping prices: individual prices used – OK

2. all products in order no Individual Shipping prices uses Canada Post module shipping: Canada Post prices – OK

3. mixture: Individual Prices used

 

My problem is I want to have the Canada Post rates used in a combination order. I believe that this is determined in:

Includes/classes/shipping.php

Here:

 

// BOF: Individual Shipping Prices
// Show either normal shipping modules or Individual shipping module when Individual Shipping Module is On
	  // Show Individual Shipping Only
	  if (tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS') and $shiptotal) {
		$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');
	  } else {
	  // All Other Shipping Modules
		while (list(, $value) = each($this->modules)) {
		  $class = substr($value, 0, strrpos($value, '.'));
		  // Don't show Individual Shipping Module
		  if ($class != 'indvship')  {
			$include_modules[] = array('class' => $class, 'file' => $value);
		  }
		}
	  }
// EOF: Individual Shipping Prices

 

But I don’t know how to change it to how I need it. Can anyone help?

 

Thanx,

Ed

Share this post


Link to post
Share on other sites

I updated the file set to include a bug fix for the home country Indv Ship rate. I am not sure if this is the best way to fix it, but it works.... :thumbsup:

 

Ed

Share this post


Link to post
Share on other sites

Sorry if I have put this in the wrong place, I'm new to these things.

 

I'm using this contribution so I can add a shipping cost to each individual category in the store (one price for a tire, one for a brake pad etc). It is a really cool contribution.

 

To make it even easier though, does this contribution work hand in hand with easy populate? If it does, I can download the text file of the products, and add in the shipping all in one go!

 

If it does, what is the name of the column I should be altering to add the price.

 

Thanks for your help!

 

Bill.

Share this post


Link to post
Share on other sites

Hi there.

 

Im using this contribution , wich is great by the way, also with the contribution Of the "Local Delivery Option"

 

But im having little problem...

 

When i put the value of the shipping in the products it makes the other shipping option desapear from the Checkout_Shipping screen . What can the the problem or how can i make it allways show all options ?

 

Because i already did this on shipping.php :

 

//if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options

if ($class !='freeshipper') { // uncomment to show all ship options

 

and it says "This is currently the only shipping method available to use on this order. "

 

Thank you.

Share this post


Link to post
Share on other sites
Hi there.

 

Im using this contribution , wich is great by the way, also with the contribution Of the "Local Delivery Option"

 

But im having little problem...

 

When i put the value of the shipping in the products it makes the other shipping option desapear from the Checkout_Shipping screen . What can the the problem or how can i make it allways show all options ?

 

Because i already did this on shipping.php :

 

//if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options

if ($class !='freeshipper') { // uncomment to show all ship options

 

and it says "This is currently the only shipping method available to use on this order. "

 

Thank you.

 

Ok.

 

Seems to me i Just fixed this problem i had.

First things first ...

What i whant :

- Customer lifts his product in Store = $0 shipping (Local Delivery Option)

- Customer wants delivery = $x per product (This contribution)

 

The problem :

- As i put a price in shipping the contribution did not let me choose any other except the the Individual shipping..

 

Solved (@ least i think so :) ) :

 

.\catalog\includes\classes\shipping.php :

 

commented :

// start indvship

global $language, $PHP_SELF;

//global $language, $PHP_SELF, $cart;

//$products = $cart->get_products();// BOF: indvship prices

//$shiptotal = $this->get_shiptotal();

//$indvcount = $this->get_indvcount();// EOF: indvship prices

// end indvship

 

added :

 

if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0))

{

ADDED ---> $include_modules[] = array('class'=> 'dly', 'file' => 'dly.php');

$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');

}

 

.\catalog\includes\classes\order.php :

 

commented this and just added :

 

//start indvship

//echo "->" . $shipping['id'] . " = " . indvship_indvship ;

//exit();

$shipping_cost = $shipping['cost'];

$shipping_title = $shipping['title'];

 

//** COMENTADO POR NBRETES

//if($shipping['id']==indvship_indvship)

//{

// $shipping_cost = $shipping['cost'];

// $shipping_title = $shipping['title'];

//}

//else

//{

// $shipping_cost = $shipping['cost'] + $shipping['invcost'];

// if ($shipping['invcost'] > 0) {

// $shipping_title = $shipping['title']. ' Plus Flat Rate Shipping';

// } else {

// $shipping_title = $shipping['title'];

// }

//}

// end indvship

 

 

 

Hope everything is here.

If someone has the same problem and this didnt solved, just tell me and ill try to help

 

Thank you :)

Share this post


Link to post
Share on other sites

I have a problem. It seems that the only shipping module that seems to be working is the Individual Shipping Prices.

 

What i basically have the the individual Shipping prices intalled - this is to be used for the US only

I'm want to use antoher shipping model for the rest of the world.

For this is have zones setup. One zone is the US, the other zone is the rest of the world.

I have Individual Shipping setup for the US zone and it shows up with no problem. But not matter what i do i can't get any shipping method to show up for the rest of the world. I can however switch Individual Shipping to the world zone and it works fine.

 

Is there something in the individual shipping module that is over riding the other methods? I found this is the shipping.php file:

 

// BOF: Individual Shipping Prices
// Show either normal shipping modules or Individual shipping module when Individual Shipping Module is On
	  // Show Individual Shipping Only
	  if (tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS') and $shiptotal) {
		$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');
	  } else {
	  // All Other Shipping Modules
		while (list(, $value) = each($this->modules)) {
		  $class = substr($value, 0, strrpos($value, '.'));
		  // Don't show Individual Shipping Module
		  if ($class != 'indvship')  {
			$include_modules[] = array('class' => $class, 'file' => $value);
		  }
		}
	  }
// EOF: Individual Shipping Prices

 

Does this have something to do with it? I've been searching for days, but just can't seem to figure it out..

 

P.S. When i saw shows up i mean on the shipping page during the shipping checkout..

Share this post


Link to post
Share on other sites

After taking a look at the code posted by Jaegger it gave me an idea. I modified my files a bit.

 

// BOF: Individual Shipping Prices	  
//	 $shiptotal = $cart->get_shiptotal();
// EOF: Individual Shipping Prices

 

 

// BOF: Individual Shipping Prices
// Show either normal shipping modules or Individual shipping module when Individual Shipping Module is On
	  // Show Individual Shipping Only

$include_modules[] = array('class'=> 'item', 'file' => 'item.php');
		$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');
	// } else {
	   //All Other Shipping Modules
	  //  while (list(, $value) = each($this->modules)) {
		//  $class = substr($value, 0, strrpos($value, '.'));
		  // Don't show Individual Shipping Module
		// if ($class != 'indvship')  {
	   //	$include_modules[] = array('class' => $class, 'file' => $value);
		// }
// }
 //   }
// EOF: Individual Shipping Prices

 

I hope this helps people in the future that run into this problem..

Share this post


Link to post
Share on other sites

i am trying to remove this contribution... i have replaced all my pre-modified files (so i thought at least) but i get the following errors when checking out...

 

what do i need to remove to get rid of this reference to the indvship.php ?

 

 

Warning: shipping(includes/languages/english/modules/shipping/indvship.php) [function.shipping]: failed to open stream: No such file or directory in /home/worldbil/public_html/store/includes/classes/shipping.php on line 36

 

Warning: shipping(includes/languages/english/modules/shipping/indvship.php) [function.shipping]: failed to open stream: No such file or directory in /home/worldbil/public_html/store/includes/classes/shipping.php on line 36

 

Warning: shipping() [function.include]: Failed opening 'includes/languages/english/modules/shipping/indvship.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/worldbil/public_html/store/includes/classes/shipping.php on line 36

 

Warning: shipping(includes/modules/shipping/indvship.php) [function.shipping]: failed to open stream: No such file or directory in /home/worldbil/public_html/store/includes/classes/shipping.php on line 37

 

Warning: shipping(includes/modules/shipping/indvship.php) [function.shipping]: failed to open stream: No such file or directory in /home/worldbil/public_html/store/includes/classes/shipping.php on line 37

 

Warning: shipping() [function.include]: Failed opening 'includes/modules/shipping/indvship.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/worldbil/public_html/store/includes/classes/shipping.php on line 37

 

Fatal error: Cannot instantiate non-existent class: indvship in /home/worldbil/public_html/store/includes/classes/shipping.php on line 39

 

----

i'm no php expert so it may be something simple. thanks in advance!

Share this post


Link to post
Share on other sites

Hi

 

I have this installed and it works fine. As in it adds the amount to the end total.

 

BUT i also have 'City Delivery' installed, which gives local customers free postage, which again works well for my needs.

 

But after checkout i am getting the Extra shipping charge added to the total, which obviously i don't want it to.

 

Anyone sorted a fix that would clear this error for me?

 

 

Cheers

 

Richard

Share this post


Link to post
Share on other sites

Please can someone tell me if the following source is problem free:

 

<?php

/*

$Id: shipping.php,v 1.23 2003/06/29 11:22:05 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

class shipping {

var $modules;

 

// class constructor

function shipping($module = '') {

 

// start indvship

// global $language, $PHP_SELF;

global $language, $PHP_SELF, $cart;

$products = $cart->get_products();// BOF: indvship prices

$shiptotal = $this->get_shiptotal();

$indvcount = $this->get_indvcount();// EOF: indvship prices

// end indvship

 

if (defined('MODULE_SHIPPING_INSTALLED') && tep_not_null(MODULE_SHIPPING_INSTALLED)) {

$this->modules = explode(';', MODULE_SHIPPING_INSTALLED);

 

$include_modules = array();

 

if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) {

$include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));

} else {

reset($this->modules);

 

// start indvship

//while (list(, $value) = each($this->modules)) {

// $class = substr($value, 0, strrpos($value, '.'));

// $include_modules[] = array('class' => $class, 'file' => $value);

//}

//}

// if($indvcount==sizeof($products)){

if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) {

$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');

}

// } else {

// if(sizeof($products)>$indvcount){

while (list(, $value) = each($this->modules)) {

$class = substr($value, 0, strrpos($value, '.'));

if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options

//if ($class !='freeshipper') { // uncomment to show all ship options

$include_modules[] = array('class' => $class, 'file' => $value);

}

}

}

// }

//}

// end indvship

 

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {

include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);

 

$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];

}

}

}

 

function quote($method = '', $module = '') {

global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

 

$quotes_array = array();

 

if (is_array($this->modules)) {

$shipping_quoted = '';

$shipping_num_boxes = 1;

$shipping_weight = $total_weight;

 

if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {

$shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;

} else {

$shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);

}

 

if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes

$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);

$shipping_weight = $shipping_weight/$shipping_num_boxes;

}

 

$include_quotes = array();

 

reset($this->modules);

while (list(, $value) = each($this->modules)) {

$class = substr($value, 0, strrpos($value, '.'));

if (tep_not_null($module)) {

if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) {

$include_quotes[] = $class;

}

} elseif ($GLOBALS[$class]->enabled) {

$include_quotes[] = $class;

}

}

 

$size = sizeof($include_quotes);

for ($i=0; $i<$size; $i++) {

$quotes = $GLOBALS[$include_quotes[$i]]->quote($method);

if (is_array($quotes)) $quotes_array[] = $quotes;

}

}

 

return $quotes_array;

}

 

//start indvship

function get_shiptotal() {

global $cart, $order;

$this->shiptotal = '';

$products = $cart->get_products();

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

if (tep_not_null($products[$i]['products_ship_price'])) {

$products_ship_price = $products[$i]['products_ship_price'];

$products_ship_price_two = $products[$i]['products_ship_price_two'];

$products_ship_zip = $products[$i]['products_ship_zip'];

$qty = $products[$i]['quantity'];

if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_two)){

$this->shiptotal += ($products_ship_price);

if ($qty > 1) {

if (tep_not_null($products_ship_price_two)) {

$this->shiptotal += ($products_ship_price_two * ($qty-1));

} else {

$this->shiptotal += ($products_ship_price * ($qty-1));

}

}/////////////NOT HERE <<------------

}

}

}// CHECK TO SEE IF SHIPPING TO HOME COUNTRY, IF NOT INCREASE SHIPPING COSTS BY AMOUNT SET IN ADMIN/////////////move back here <<------------

if (($order->delivery['country']['id']) != INDIVIDUAL_SHIP_HOME_COUNTRY) {

if(INDIVIDUAL_SHIP_INCREASE > '0' || $this->shiptotal > '0') {

$this->shiptotal *= INDIVIDUAL_SHIP_INCREASE;

} else {

$this->shiptotal += INDIVIDUAL_SHIP_INCREASE * $this->get_indvcount();

}

return $this->shiptotal;

// not sure why this is needed, but it now works correctly for home country - by Ed

} else {

$this->shiptotal *= 1;

return $this->shiptotal;

}

}

 

function get_indvcount() {

global $cart;

$this->indvcount = '';

$products = $cart->get_products();

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

if (tep_not_null($products[$i]['products_ship_price'])) {

$products_ship_price = $products[$i]['products_ship_price'];//}

$products_ship_price_two = $products[$i]['products_ship_price_two'];

if(is_numeric($products_ship_price)){

$this->indvcount += '1';

}

}

}

return $this->indvcount;

}

 

// end indvship

 

function cheapest() {

if (is_array($this->modules)) {

$rates = array();

 

reset($this->modules);

while (list(, $value) = each($this->modules)) {

$class = substr($value, 0, strrpos($value, '.'));

if ($GLOBALS[$class]->enabled) {

$quotes = $GLOBALS[$class]->quotes;

for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) {

if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) {

$rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'],

'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',

'cost' => $quotes['methods'][$i]['cost']);

}

}

}

}

 

$cheapest = false;

for ($i=0, $n=sizeof($rates); $i<$n; $i++) {

if (is_array($cheapest)) {

if ($rates[$i]['cost'] < $cheapest['cost']) {

$cheapest = $rates[$i];

}

} else {

$cheapest = $rates[$i];

}

}

 

return $cheapest;

}

}

}

?>

Share this post


Link to post
Share on other sites
Ok.

 

Seems to me i Just fixed this problem i had.

First things first ...

What i whant :

- Customer lifts his product in Store = $0 shipping (Local Delivery Option)

- Customer wants delivery = $x per product (This contribution)

 

The problem :

- As i put a price in shipping the contribution did not let me choose any other except the the Individual shipping..

 

Solved (@ least i think so :) ) :

 

.\catalog\includes\classes\shipping.php :

 

commented :

// start indvship

global $language, $PHP_SELF;

//global $language, $PHP_SELF, $cart;

//$products = $cart->get_products();// BOF: indvship prices

//$shiptotal = $this->get_shiptotal();

//$indvcount = $this->get_indvcount();// EOF: indvship prices

// end indvship

 

added :

 

if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0))

{

ADDED ---> $include_modules[] = array('class'=> 'dly', 'file' => 'dly.php');

$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');

}

 

.\catalog\includes\classes\order.php :

 

commented this and just added :

 

//start indvship

//echo "->" . $shipping['id'] . " = " . indvship_indvship ;

//exit();

$shipping_cost = $shipping['cost'];

$shipping_title = $shipping['title'];

 

//** COMENTADO POR NBRETES

//if($shipping['id']==indvship_indvship)

//{

// $shipping_cost = $shipping['cost'];

// $shipping_title = $shipping['title'];

//}

//else

//{

// $shipping_cost = $shipping['cost'] + $shipping['invcost'];

// if ($shipping['invcost'] > 0) {

// $shipping_title = $shipping['title']. ' Plus Flat Rate Shipping';

// } else {

// $shipping_title = $shipping['title'];

// }

//}

// end indvship

Hope everything is here.

If someone has the same problem and this didnt solved, just tell me and ill try to help

 

Thank you :)

 

 

Look at my shipping.php at the same section. I had the same problem and I took out some of the if statements to correct it. The only reason I'm posting it here is to see if anyone will see a bug that may appear from it.

 

Regards

 

Itai Etzman

Share this post


Link to post
Share on other sites
Ok.

 

Seems to me i Just fixed this problem i had.

First things first ...

What i whant :

- Customer lifts his product in Store = $0 shipping (Local Delivery Option)

- Customer wants delivery = $x per product (This contribution)

 

The problem :

- As i put a price in shipping the contribution did not let me choose any other except the the Individual shipping..

 

Solved (@ least i think so :) ) :

 

.\catalog\includes\classes\shipping.php :

 

commented :

// start indvship

global $language, $PHP_SELF;

//global $language, $PHP_SELF, $cart;

//$products = $cart->get_products();// BOF: indvship prices

//$shiptotal = $this->get_shiptotal();

//$indvcount = $this->get_indvcount();// EOF: indvship prices

// end indvship

 

added :

 

if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0))

{

ADDED ---> $include_modules[] = array('class'=> 'dly', 'file' => 'dly.php');

$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');

}

 

.\catalog\includes\classes\order.php :

 

commented this and just added :

 

//start indvship

//echo "->" . $shipping['id'] . " = " . indvship_indvship ;

//exit();

$shipping_cost = $shipping['cost'];

$shipping_title = $shipping['title'];

 

//** COMENTADO POR NBRETES

//if($shipping['id']==indvship_indvship)

//{

// $shipping_cost = $shipping['cost'];

// $shipping_title = $shipping['title'];

//}

//else

//{

// $shipping_cost = $shipping['cost'] + $shipping['invcost'];

// if ($shipping['invcost'] > 0) {

// $shipping_title = $shipping['title']. ' Plus Flat Rate Shipping';

// } else {

// $shipping_title = $shipping['title'];

// }

//}

// end indvship

Hope everything is here.

If someone has the same problem and this didnt solved, just tell me and ill try to help

 

Thank you :)

 

 

Look at my shipping.php at the same section. I had the same problem and I took out some of the if statements to correct it. The only reason I'm posting it here is to see if anyone will see a bug that may appear from it.

 

Regards

 

Itai Etzman

Share this post


Link to post
Share on other sites

I have a slight problem with this shipping module. No matter what I set my shipping price to, every time you go to check out it will display a shipping price of $0.00 I am hoping someone else out there has had this problem and knows a quick fix. Thanks for any help!

Share this post


Link to post
Share on other sites

Hi all - not only am I having the same problem of having $0.00 for shipping, but I also cannot get past the second stage (the checkout_shipping.php part). I also cannot see the payment options (in my case, PayPal). Yet, when I remove the individual shipping module, it works fine.

 

Anyone else had this problem and knew how to solve it?

Edited by Op999

Share this post


Link to post
Share on other sites

Hey guys,

 

I had this contrib working a beaut for quite some time.

 

Then when I updated osCommerce to the most recent version, and reinstalled the contrib, it no longer works?

 

Sam

Share this post


Link to post
Share on other sites
Hi all - not only am I having the same problem of having $0.00 for shipping, but I also cannot get past the second stage (the checkout_shipping.php part). I also cannot see the payment options (in my case, PayPal). Yet, when I remove the individual shipping module, it works fine.

 

Anyone else had this problem and knew how to solve it?

 

I am having the same $0.00 shipping price problem, and the same checkout_shipping.php problem. Can't get any further than that. I am passed deadline, and fear I have no choice but the remove this module and revert to backups. >_< I really wanted this to work, but I'm out of time. Please let me know if you find an answer for future reference. Thank you

Share this post


Link to post
Share on other sites

For the past 5 hours, I've been trying to do a simple modification to shipping.php to suit my needs but no luck.

 

Could somebody help me please, I've zero knowledge in php, & some elementary knowledge in basic programming.

 

 

The default setup is:

When customer buys light weight products == Shipping by individual product shipping prices

When customer buys heavy products, or heavy + light weight products == Shipping by other shipping method (whichever is installed)

 

I want to customize it as:

When customer buys light weight products, or light weight + heavy products == Shipping by individual product shipping prices

When customer buys heavy products == Shipping by other shipping method (whichever is installed)

 

 

I suspect this is a very simple mod, but it's just beyond my reach.

 

Anyone, help me please..... I will really appreciate it.

 

Paul

Share this post


Link to post
Share on other sites
For the past 5 hours, I've been trying to do a simple modification to shipping.php to suit my needs but no luck.

 

Could somebody help me please, I've zero knowledge in php, & some elementary knowledge in basic programming.

The default setup is:

When customer buys light weight products == Shipping by individual product shipping prices

When customer buys heavy products, or heavy + light weight products == Shipping by other shipping method (whichever is installed)

 

I want to customize it as:

When customer buys light weight products, or light weight + heavy products == Shipping by individual product shipping prices

When customer buys heavy products == Shipping by other shipping method (whichever is installed)

I suspect this is a very simple mod, but it's just beyond my reach.

 

Anyone, help me please..... I will really appreciate it.

 

Paul

 

To add:

 

Light weight products == The 3 fields (TEXT_PRODUCTS_ZIPCODE, Indv. Shipping Price and Each Additional Price) in product setup is filled

 

Heavy weight products - The 3 fields (TEXT_PRODUCTS_ZIPCODE, Indv. Shipping Price and Each Additional Price) in product setup is left blank

 

Thank you!

Share this post


Link to post
Share on other sites

I went through all the installation instructions without problems. Now I try to make a new product and I get this.

 

 

1146 - Table 'db212567135.TABLE_PRODUCTS_SHIPPING' doesn't exist

SELECT * FROM TABLE_PRODUCTS_SHIPPING WHERE products_id = 137

[TEP STOP]

 

 

I went through the MySql instructions to run the table and it says it was successful.

Any help would be appreciated. Or at least know what the problem could be.

Share this post


Link to post
Share on other sites
I went through all the installation instructions without problems. Now I try to make a new product and I get this.

1146 - Table 'db212567135.TABLE_PRODUCTS_SHIPPING' doesn't exist

SELECT * FROM TABLE_PRODUCTS_SHIPPING WHERE products_id = 137

[TEP STOP]

I went through the MySql instructions to run the table and it says it was successful.

Any help would be appreciated. Or at least know what the problem could be.

 

-----------------------------------FIXED-----------------------------------

 

 

New Error when trying to checkout. This is directly after checkout.

 

Fatal error: Call to undefined method: shipping->get_shiptotal() in /homepages/20/d211569956/htdocs/store2/includes/classes/shipping.php on line 24

Edited by stng2nv

Share this post


Link to post
Share on other sites
-----------------------------------FIXED-----------------------------------

New Error when trying to checkout. This is directly after checkout.

 

Fatal error: Call to undefined method: shipping->get_shiptotal() in /homepages/20/d211569956/htdocs/store2/includes/classes/shipping.php on line 24

 

During installation did you ever get:

 

"Internal Server Error" when trying to access the categories section of the admin panel. After reviewing my error log, it seems that my categories.php was somehow corrupted. I'll continue to try and figure it out but I'm not much of a coder. Any help would be appreciated.

 

BTW, I'm using this on a RC1 installation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×