Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to setup a methods array?


romantix

Recommended Posts

Hi,

 

I am trying to offer the customer 2 different shipping options:

 

 

1. regular $9.95

 

2. slow $4.99 for shipping 7-10 business days

 

 

Someone suggested setting up a methods array:

 

$methods = array();

$methods[] = array('id' => $type1,

'title' => $title1,

'cost' => ($cost1);

 

$methods[] = array('id' => $type2,

'title' => $title2,

'cost' => ($cost2);

 

 

$this->quotes['methods'] = $methods;

 

 

I am now trying to figure out where to paste this code into? Also - is there an easier way to do this?

 

 

 

Thank you so much for all your help,

 

 

 

Jan Mares :rolleyes:

Link to comment
Share on other sites

Hi,

 

I am trying to offer the customer 2 different shipping options:

1. regular $9.95

 

2. slow $4.99 for shipping 7-10 business days

Someone suggested setting up a methods array:

 

$methods = array();

$methods[] = array('id' => $type1,

'title' => $title1,

'cost' => ($cost1);

 

$methods[] = array('id' => $type2,

'title' => $title2,

'cost' => ($cost2);

$this->quotes['methods'] = $methods;

I am now trying to figure out where to paste this code into? Also - is there an easier way to do this?

Thank you so much for all your help,

Jan Mares :rolleyes:

try the contributions. Here is one that might work:

http://www.oscommerce.com/community/contributions,1446

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...