Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    2
    Plugin Contributions
    0

    Default Trouble getting custom shipping module options to pass to payment page

    I created a custom shipping module that allows me to set flat shipping rates per category and zone. Everything works great except that no matter what option I select the only the first shipping option in the list is passed to the payment checkout page. Here is the loop code. Does anyone know how I can get this to work? Thanks in advance. Using Zencart 1.39e

    The $count_poles variable is a check to see if the shipping method is allowed for the category and $check_zone verifies that it is valid for the customer's geo zone.

    Code:
    foreach $zone /* more code */ {
    
    if ($category == $count_poles && $check_zone == $order->delivery['zone_id']) {
    
    				$methods[] = array(
    
    				'id' => $this->code.'_0'.$i,
    				'title' => $shipping_title,
    
    				'cost' => $shipping_cost
    
    				);
    
    			}
    
    		}
    
    
    
    		$this->quotes = array(
    
    			'id' => $this->code,
    
    			'module' => $this->title,
    
    			'methods' => $methods,
    
    		);
    
    $this->quotes['methods'] = $methods;

  2. #2
    Join Date
    Apr 2005
    Posts
    2
    Plugin Contributions
    0

    Default Re: Trouble getting custom shipping module options to pass to payment page

    I did some checking and for some reason I haven't been able to figure out the shipping method data is not being saved to the $_SESSION and it is defaulting to the first method in the $quotes array. Any ideas?

 

 

Similar Threads

  1. v155 Trouble with shipping options
    By Miru in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 1 Aug 2016, 07:23 PM
  2. v151 Low order fee in trouble with custom payment module
    By ellivir in forum Addon Payment Modules
    Replies: 3
    Last Post: 27 Feb 2014, 03:32 PM
  3. v150 Shipping options for custom module
    By pjmorse in forum Addon Shipping Modules
    Replies: 0
    Last Post: 3 Apr 2012, 04:25 PM
  4. Trouble enabling a shipping options
    By triase in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 23 Jan 2010, 10:22 PM
  5. Having trouble getting my custom template working
    By gomoto in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Jan 2008, 07:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR