Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

displaying shipping costs on shipping.php


Guest

Recommended Posts

i am trying to get a list of all of my shipping rates on shipping.php

 

i tried using the contribution "Shipping Costs as Table" but it only selects the cheapest method and displays a list of countries.

 

i would like my list to be outlined by the prices only. (my shipping rates are configured to be based on price)

 

anyone know of a way to achieve this?

Link to comment
Share on other sites

Table rate contribution class has a function quote.

It returns return $this->quotes which is an array.

 

Now You can call this on Your shipping page by creating an instance of this module and then once You have this array with some simple coding get it displayed.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

steps:

<?php

 

$table_cost = split("[:,]" , MODULE_SHIPPING_TABLE_COST);

$size = sizeof($table_cost);

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

 

echo "Upto :" ;

echo $table_cost[$i];

echo " Cost is";

echo $table_cost[$i+1];

}

 

?>

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

I would like to know this also. I am trying to add shipping cost to the column_right but do not know how to code it. I only use table rate shipping module. Any help would be great.

create a shippin_box.php file paste the code I stated in the above comments.

Place this file in the box folder.

Now in right column.php look at other code how box files are included.

 

That should do.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

satish, it just displays:

Upto :MODULE_SHIPPING_TABLE_COST Cost is

on the shipping page.

 

i tried adding:

require(DIR_WS_MODULES . 'shipping/table.php');

require(DIR_WS_CLASSES . 'object_info.php');

no luck

Link to comment
Share on other sites

This implies that table rate is not installed on Your site.

As the value for MODULE_SHIPPING_TABLE_COST is in the datbase.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

i only use table rates on my website, but i use several different ones (to offer different rates to local and overseas, etc).

 

the rates are calculated by cart subtotal and customer shipping address

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

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