Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Offer flat rate for 1 item...?

Offer flat rate for 1 item...?

Views: 4,896

Results 21 to 33 of 33
14 Apr 2012, 6:34 PM
#21
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Offer flat rate for 1 item...?

Vodka or Beer?????

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

14 Apr 2012, 6:39 PM
#22
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Ah, sorry! :( Thought we got somewhere then.

14 Apr 2012, 6:40 PM
#23
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

haredo:

Vodka or Beer?????

Whiskey

14 Apr 2012, 6:42 PM
#24
ajeh avatar

ajeh

Oba-san

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

Re: Offer flat rate for 1 item...?

Definitely da whiskey ... makes da coding go so much ... umm ... :lamo:

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!

14 Apr 2012, 6:50 PM
#25
ajeh avatar

ajeh

Oba-san

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

Re: Offer flat rate for 1 item...?

Okay ... change this code between the code in BLACK ...

[B]      // calculate cost of master_categories_id 319[/B]
      for ($i=0, $n=sizeof($products); $i<$n; $i++) {
        // calculate price and quantity master_categories_id 42, 59, 100
//echo 'Product id: ' . $products[$i]['id'] . ' master: ' . $products[$i]['category'] . '<br>';
// master_categories_id 42
        if ($products[$i]['category'] == 42) {
          $chk_cost += $products[$i]['final_price'];
          $chk_count += $products[$i]['quantity'];
        }
// master_categories_id 59
        if ($products[$i]['category'] == 59) {
          $chk_cost += $products[$i]['final_price'];
          $chk_count += $products[$i]['quantity'];
        }
// master_categories_id 100
        if ($products[$i]['category'] == 100) {
          $chk_cost += $products[$i]['final_price'];
          $chk_count += $products[$i]['quantity'];
        }
      }

[B]// set extra_charge_amount for UK - GB[/B]

If there are more master_categories_id that need to be added, follow the pattern ...

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!

14 Apr 2012, 7:10 PM
#26
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Excellent, so I then just change the 319, 42, 59, 100 then add extra ones for more catogories?

Thanks
A

14 Apr 2012, 7:17 PM
#27
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Ill just show you what im doing before I bongle it up! Gonna change the ones in red

  // calculate cost of master_categories_id 319
  for ($i=0, $n=sizeof($products); $i<$n; $i++) {
    // calculate price and quantity master_categories_id 42, 59, 100

//echo 'Product id: ' . $products[$i]['id'] . ' master: ' . $products[$i]['category'] . '<br>';
// master_categories_id 42
if ($products[$i]['category'] == 42) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
// master_categories_id 59
if ($products[$i]['category'] == 59) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
// master_categories_id 100
if ($products[$i]['category'] == 100) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
}

// set extra_charge_amount for UK - GB

14 Apr 2012, 7:51 PM
#28
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Left 319 as it is...

IT WORKS! THANKYOU! I would offer you some whiskey but you are too far away. :hug:

Thankyou
A:clap:

14 Apr 2012, 10:14 PM
#29
ajeh avatar

ajeh

Oba-san

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

Re: Offer flat rate for 1 item...?

Thanks for the update that this is now working for you ... :smile:

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!

23 Apr 2012, 8:44 PM
#30
xoxomeowmixoxo avatar

xoxomeowmixoxo

New Zenner

Join Date:
Apr 2010
Location:
Pasadena, CA
Posts:
24
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Hi,

I have similar problem. For example, for Category 1, I offer shipping by USPS, but for Category 2, I offer shipping based on the weight.
Items in Category 1 are less than 1 lb, if they customer choose the "best way" during check out, usually the shipping cost shows less than $1.
However, for Category 2, these are over sized items and we charge a flat rate of $130.

I would like to know if: 1, how to turn off "per Unit" module when customer purchases items from Category 1 so they can only see the rate from USPS?
2. how to turn off "USPS" module when customer purchases items from Category 2 so they can only see the $130 rate?

Please help.

23 Apr 2012, 10:31 PM
#31
xoxomeowmixoxo avatar

xoxomeowmixoxo

New Zenner

Join Date:
Apr 2010
Location:
Pasadena, CA
Posts:
24
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

Let me reverse my question. How do I hide "per unit" module for category 1 items? and can I have two categories to hide? > xoxomeowmixoxo:

Hi,

I have similar problem. For example, for Category 1, I offer shipping by USPS, but for Category 2, I offer shipping based on the weight.
Items in Category 1 are less than 1 lb, if they customer choose the "best way" during check out, usually the shipping cost shows less than $1.
However, for Category 2, these are over sized items and we charge a flat rate of $130.

I would like to know if: 1, how to turn off "per Unit" module when customer purchases items from Category 1 so they can only see the rate from USPS?
2. how to turn off "USPS" module when customer purchases items from Category 2 so they can only see the $130 rate?

Please help.

24 Apr 2012, 12:56 AM
#32
xoxomeowmixoxo avatar

xoxomeowmixoxo

New Zenner

Join Date:
Apr 2010
Location:
Pasadena, CA
Posts:
24
Plugin Contributions:
0

Re: Offer flat rate for 1 item...?

figured out the answer.

xoxomeowmixoxo:

Let me reverse my question. How do I hide "per unit" module for category 1 items? and can I have two categories to hide?

24 Apr 2012, 1:14 AM
#33
ajeh avatar

ajeh

Oba-san

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

Re: Offer flat rate for 1 item...?

What was the solution that worked for you ... don't be shy, now? :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!