Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories?

Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories?

Locked

Started by blackorchidcouture on 18 Jun 2010, 9:03 PM · Views: 8,361

Results 61 to 70 of 70
This thread is locked. New replies are disabled.
2 Aug 2010, 5:38 PM
#61
almost_done avatar

almost_done

New Zenner

Join Date:
Sep 2009
Posts:
18
Plugin Contributions:
0

Post #61 by almost_done

HELP I can not figure out how to add a new post so I am just replying to this one.

My customer called and my site is sending the message "not shipping to your area at this time" I tested the site and it does this to me also. I have not touched the site except to add products. I have 1.39e. I charge a flat rate for shipping and taxes are based on the store=MN. I set all my products as 0 rate so that they go to the flat rate shipping. This worked fine and is now not working. I have the zone turned off. I looked in book and can not find anything. Please I am not real versed in computer language so keep it simple. LOL

3 Aug 2010, 3:40 AM
#62
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Post #62 by mortalwombat

Okay so that part is working fine to charge the correct amounts based on those two manufacturers_id values ...

The $50 that the cart charges for 1 product from manufacturers_id 1 and 1 product from manufacturers_id 2 should just be $35.

If you add 1 Product to the order that is not in manufacturers_id 1 or 2 what is the amount?

$3

If you add 2 Product to the order that is not in manufacturers_id 1 or 2 what is the amount?

$6

If you add 1 Product to the order that is not in manufacturers_id 1 or 2 and add 1 Product from manufacturers_id 1 what is the amount?

$18

If you add 2 Product to the order that is not in manufacturers_id 1 or 2 and add 1 Product from manufacturers_id 1 what is the amount?

$21 (this one and the one above should remain $15, as I do not charge shipping for items I stock when combined with drop-shipped products.)

3 Aug 2010, 4:30 AM
#63
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #63 by ajeh

Okay ...

Are you saying ...

if the cart contains 1 or more Product from manufactures_id 2 charge $35, regardless of any other product in the cart?

if the cart contains 1 or more Product from manufactures_id 1 (and none from manufacturers_id 2) charge $15, regardless of any other product in the cart?

And if the cart contains any number of Products from any thing and none from manufacturers_id 1 or 2 then charge the $3 per Item?

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 Aug 2010, 5:35 AM
#64
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Post #64 by mortalwombat

Ajeh:

Okay ...

Are you saying ...

if the cart contains 1 or more Product from manufactures_id 2 charge $35, regardless of any other product in the cart?

if the cart contains 1 or more Product from manufactures_id 1 (and none from manufacturers_id 2) charge $15, regardless of any other product in the cart?

And if the cart contains any number of Products from any thing and none from manufacturers_id 1 or 2 then charge the $3 per Item?

Yes, that's what I'd like. Sorry if how I worded it was confusing.

Again, thanks heaps for your help :bigups:

3 Aug 2010, 5:52 AM
#65
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #65 by ajeh

That is very different from what it sounded like you wanted ...

Start over with the Item Rate item shipping module and try the code as:

// class methods
    function quote($method = '') {
      global $order, $total_count;

    // check if manufacturer 1 or 2 is in cart
        global $cart;
        $chk_manufacturers_id1 = $_SESSION['cart']->in_cart_check('manufacturers_id', '1');
        $chk_manufacturers_id2 = $_SESSION['cart']->in_cart_check('manufacturers_id', '2');

        $chk_shipping_charges = 0.00;

        switch(true) {
        case ($chk_manufacturers_id2 > 0):
          $chk_shipping_charges = 35.00;
          break;
        case ($chk_manufacturers_id1 > 0):
          $chk_shipping_charges = 15.00;
          break;
        }


      // adjusted count for free shipping
      $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                     'cost' => ($chk_shipping_charges > 0 ? $chk_shipping_charges : ((MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING) ) )));

      if ($this->tax_class > 0) {

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 Aug 2010, 7:23 AM
#66
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Post #66 by mortalwombat

It works perfectly :clap: Thanks so much.

I just have a couple of final questions that are a little off-topic...

First - I mentioned earlier that I ship internationally, and therefore have the Zone Rates shipping mod installed. The only thing is that it shows on the shipping estimator when it is set to national shipping (which is Australia), saying "No shipping available to the selected country".

Is there any way to get it to hide completely unless a customer specifies a country other than Australia?

Second is the same as above, except reversed. So is there a way to hide the Per Item shipping module when a customer specifies an international country?

Once more, I appreciate everything you've done and I'll be sending a cup of coffee your way (I'm going to have to ask you how I go about that, though).

3 Aug 2010, 1:41 PM
#67
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #67 by ajeh

Build a Zone for the Rest of the World and add it to the Item Rate item shipping module ...

What are your settings on the Zone Rate zones shipping module? It sounds like you do not have a setting correct on it ...

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!

4 Aug 2010, 3:03 AM
#68
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Post #68 by mortalwombat

Build a Zone for the Rest of the World and add it to the Item Rate item shipping module ...

After checking, I found I hadn't set up my Zone Definitions properly. Now that I've fixed them, the Per Item mod no longer displays internationally.

What are your settings on the Zone Rate zones shipping module? It sounds like you do not have a setting correct on it ...

Again, looking over the settings, I found I had overlooked the Skip Countries option on the Zone Rates mod :oops:

So I think everything is sorted out now.

As always, thanks for everything, and if you could give me the details I need to pay you, a well-earned cup of coffee will be on its way :smile:

4 Aug 2010, 5:43 AM
#69
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #69 by ajeh

Thanks for the update that all is working properly now ...

The link for coffee and donuts to the Zen Cart Team is in my signature ... :cool:

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!

10 Aug 2010, 9:23 AM
#70
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Post #70 by mortalwombat

Hi Linda

It seems I overlooked one aspect of my shipping when I was discussing it with you...

I have just now realised that I have some small accessories available from manufacturer 1, but which ship at a separate price.

I managed to incorporate the shipping prices for them just fine using a table rate (up to 2 accessories for $5 and up to 10 for $10), but now I can't hide that module when the regular items from manufacturer 1 are in the cart.

So, I want the Per Item module to show as before, when regular items from manufacturer 1 are in the cart, but to have it hide and the Table Rate module to show when accessories from manufacturer 1 are in the cart (each are listed in separate categories).

I've tried to alter some of the codes you've given previously, but I've had no luck with it.

This is what I had hoped would work:

if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','4') > 0)) && (('manufacturers_id','1') > 0)) {
          $this->enabled = true;
      } else {
    $this->enabled = false;
  }

I'd really appreciate it (again!) if you could show me what I need to change to get it to work :smile:

Thanks,
Tija