Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Sep 2009
    Posts
    18
    Plugin Contributions
    0

    Default How can I restrict shipping choices based on kinds of products in the cart?

    OK, not sure if this is in the right topic, but hope I get some help here. I am attempting to modify the logic of the shopping cart shipping information. On a per product basis I have modified the products table to include two new boolean fields, one for canada post and one for UPS. When the user checksout I wish to check all cart items to see if which methods of shipping pertain to each and present to the user true totals as some of their orders may be split shipping (case in point, Canada Post will not ship Ammunition, only UPS will...user has 3 ammunition products in cart and another item that can go either or...we need to give the user the option to split this up). Anyhow, I'll deal with that later...for now my issue is this. I find tracking down the functions and methods somewhat difficult in Zen. Right now I am trying to determine what array element names exist in the array $product (foreach ($productArray as $product) ) which is used in the tpl_shoppingcartdefault file. Attempting to output array elements by key position does nothing $product[6] for instance). I've determined through a count that their are 19 positions in the array, but I need to know how to acccess each without knowing their element reference names!! I need the productid for each item in the array, and of course productid, product_id and the obvious don't seem to exist. In what file is the Session variable 'cart' created?? I can't seem to find that in the obvious places. Also, does there exist a dev manual for zen cart? Is there a way to view all current session variables at any given time, like a session var page??
    Last edited by bladerogers; 13 Sep 2009 at 06:58 PM.

 

 

Similar Threads

  1. v139h Restrict Products in Cart Based on Other Products in Cart
    By lindasdd in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 2 Nov 2013, 03:26 PM
  2. Replies: 0
    Last Post: 17 Sep 2012, 09:33 PM
  3. Restrict Products based on Country
    By ultra_mao in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 19 Jun 2010, 11:01 PM
  4. HOW CAN I AUTO-SELECT SINGLE-ATTRIBUTE CHOICES DURING ADD-TO-CART process?
    By wweyland in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 1 Dec 2009, 02:06 AM
  5. Payment Choices based on Shipping
    By Bootyrat in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 30 Aug 2006, 02:32 PM

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