Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: How to enable only one shipping method to some products?

    Quote Originally Posted by Ajeh View Post
    You could add a new field to products such as products_is_fragile

    Then you can test the cart to see if there are any fragile products in it ...

    From that result, you can then enable or disable a shipping module ...

    Or get the count on how many are fragile and adjust accordingly on the price ...
    This is great. Any direction on how to do this? I think it is supposed to be difficult.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to enable only one shipping method to some products?

    One way to do it is to find a similar field to what you are trying to make ...

    You want to make a field such as:
    product_is_fragile

    And that would be added to the products table as a: tinyint 1

    To find a similar field to "trace" and follow the pattern of, you could use:
    product_is_call

    Note: this field has "functionality" as well ... so some places are not necessary to duplicate this field ...

    But using this field, you could use the Developer's Tool Kit and see where it is referenced in the admin for the purpose of adding/editing ...

    Once you can add/edit the products with this new field, you can then use it in the catalog, such as in a shipping module to manage when they should show or not show ...

    Zen Cart is made of patterns ... so cloning something similar to what you need is usually a matter of finding the "keys" to the "pattern" ...

    product_is_call
    products_is_call

    Should bring up all text defines and field usage for this field ...

    At first it will appear overwhelming ...

    Don't let that throw you ...

    Remember with Product Types, Zen Cart has 5 sets of files ... so you will more or less be seeing 5 times what you might actually need to work with ...

    NOTE: The admin is not overrideable ... so you will want to save your original files and your custom files for future upgrades ...

    NOTE: if you are not already v1.3.6 ... it would be a good time to get there first, before building in your custom code ...

    Take your time, this is not as bad as a looks ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: How to enable only one shipping method to some products?

    Quote Originally Posted by Ajeh View Post
    One way to do it is to find a similar field to what you are trying to make ...

    You want to make a field such as:
    product_is_fragile

    And that would be added to the products table as a: tinyint 1

    To find a similar field to "trace" and follow the pattern of, you could use:
    product_is_call

    Note: this field has "functionality" as well ... so some places are not necessary to duplicate this field ...

    But using this field, you could use the Developer's Tool Kit and see where it is referenced in the admin for the purpose of adding/editing ...

    Once you can add/edit the products with this new field, you can then use it in the catalog, such as in a shipping module to manage when they should show or not show ...

    Zen Cart is made of patterns ... so cloning something similar to what you need is usually a matter of finding the "keys" to the "pattern" ...

    product_is_call
    products_is_call

    Should bring up all text defines and field usage for this field ...

    At first it will appear overwhelming ...

    Don't let that throw you ...

    Remember with Product Types, Zen Cart has 5 sets of files ... so you will more or less be seeing 5 times what you might actually need to work with ...

    NOTE: The admin is not overrideable ... so you will want to save your original files and your custom files for future upgrades ...

    NOTE: if you are not already v1.3.6 ... it would be a good time to get there first, before building in your custom code ...

    Take your time, this is not as bad as a looks ...
    Thanks for the detailed direction. I will try this later. But now I have another more urgent problem to deal with. After I installed the SEO URL mod, I could not access my admin page. I already posted this in proper forum, but please help me if you have any idea about this. Thanks.
    Cuts N Knots - Chinese Folk Arts and Crafts Store

 

 

Similar Threads

  1. Is it possible to enable a shipping method for only a certain customer group?
    By sacotechnology in forum Built-in Shipping and Payment Modules
    Replies: 37
    Last Post: 26 Dec 2010, 06:52 PM
  2. Shipping to Canada but using only ONE method?
    By magneteye in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Nov 2008, 06:03 AM
  3. When I enable Featured products, only one product is displayed.
    By creativearc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 May 2008, 01:30 AM
  4. Free Shipping Method Only One Working
    By tabbykiki in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 27 Oct 2007, 03:38 AM
  5. Display Only ONE Shipping Method
    By marcusflores in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 26 Jan 2007, 06:01 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