Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Low order Fee Exception for selected Master Category, coding help needed

    I have Zen Cart 155d with the standard green responsive template.

    I have the Low order Fee implemented but I want to block this for on-sale items.
    All on-sale items have the Master Category = 102.

    I want to customize the Order Total module:
    /includes/modules/order_total/ot_loworderfee.php

    I wrote some code with my primitive skills, unusually for me it did not crash my web site or generate error logs!
    It also does not block the Low order Fee.

    Around line 64, I added the following code from BOF to EOF after the gift voucher check:

    Code:
      // check to see if everything is gift voucher, if so - skip the low order fee.
                  $charge_it = 'false';
                  if ((($cart_content_type == 'virtual') and MODULE_ORDER_TOTAL_LOWORDERFEE_VIRTUAL == 'false')) {
                    $charge_it = 'true';
    								
                  }
                }
    		
    			}
            
    				// BOF Try to stop low order fee for sale items	MH					
    						
    						 if ($_Session['master_categories_id'] == "102")  {
    						 $charge_it = 'false';
    						 }
    						 // EOF
    						 
              if ($charge_it == 'true') {
    Thanks for any advice

  2. #2
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Low order Fee Exception for selected Master Category, coding help needed

    Quote Originally Posted by marton_1 View Post
    I have Zen Cart 155d with the standard green responsive template.

    I have the Low order Fee implemented but I want to block this for on-sale items.
    All on-sale items have the Master Category = 102.

    I want to customize the Order Total module:
    /includes/modules/order_total/ot_loworderfee.php

    I wrote some code with my primitive skills, unusually for me it did not crash my web site or generate error logs!
    It also does not block the Low order Fee.

    Around line 64, I added the following code from BOF to EOF after the gift voucher check:

    Code:
      // check to see if everything is gift voucher, if so - skip the low order fee.
                  $charge_it = 'false';
                  if ((($cart_content_type == 'virtual') and MODULE_ORDER_TOTAL_LOWORDERFEE_VIRTUAL == 'false')) {
                    $charge_it = 'true';
    								
                  }
                }
    		
    			}
            
    				// BOF Try to stop low order fee for sale items	MH					
    						
    						 if ($_Session['master_categories_id'] == "102")  {
    						 $charge_it = 'false';
    						 }
    						 // EOF
    						 
              if ($charge_it == 'true') {
    Thanks for any advice
    Maybe I need to define $_Session['master_categories_id'] somehow, somewhere?

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Low order Fee Exception for selected Master Category, coding help needed

    Tried some different code that seems to work OK

    Code:
      
    				// BOF Try to stop low order fee for sale items	MH					
    						 if ($_SESSION['cart']->in_cart_check('master_categories_id','102') > 0) {
    						 $charge_it = 'false';
    						 }
    						 // EOF

 

 

Similar Threads

  1. Low order Fee exception for walk in store?
    By sparkbook in forum General Questions
    Replies: 3
    Last Post: 29 Sep 2010, 06:23 AM
  2. Apply Low Order Fee for only the difference missing
    By dimsumgurl in forum Managing Customers and Orders
    Replies: 2
    Last Post: 3 Sep 2010, 04:54 AM
  3. Low Order Fee for Group Discount members only
    By vandiermen in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 20 Apr 2010, 01:15 AM
  4. Help needed - master category
    By sgallasch in forum General Questions
    Replies: 1
    Last Post: 8 May 2009, 04:53 AM
  5. Eliminating low-order fee for certain products
    By bblinn in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 14 Nov 2008, 02:42 PM

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