Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Jrox Zen Integration - how do I skip commissions if group discounts apply?

    Quote Originally Posted by kehrli View Post
    if ($group_pricing_amount == 0)
    {
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src="/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script>
    }
    I would expect that the concept you originally suggested should work fine.
    I've copied it below, with a small correction.

    Basically, using the original JAM-supplied code, just replace this:
    Code:
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src="/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
    
    </table>";
    with this:
    Code:
    if ($group_pricing_amount == 0)
    {
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src="/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
    
    </table>";
    }
    NOTE: This will end up with two lines at the end containing just a brace: }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Jrox Zen Integration - how do I skip commissions if group discounts apply?

    Thanks, but I tried that before posting. I just tried it again to be sure. I got the following:

    Code:
    Parse error:  syntax error, unexpected '=' in /home/linksslc/public_html/fuelsaver-mpg/store/includes/templates/soft_blue/checkout_success/tpl_footer.php on line 90
    Line 90 is the line with the echo statement. I haven't a clue why that line doesn't work after making the change. But it didn't throw an error before the change.

    The modified code (that is throwing the error) is as follows:

    Code:
      $commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);
      $commissionable_order = number_format($commissionable_order,2,'.','');
      if ($group_pricing_amount == 0)
      {
      echo "<script language=\"JavaScript\" type=\"text/javascript\" src="/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
      
      </table>";
      }
    }

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Jrox Zen Integration - how do I skip commissions if group discounts apply?

    Code:
    src="/affiliates/sale.php
    change that by adding another backslash:
    Code:
    src=\"/affiliates/sale.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Jrox Zen Integration - how do I skip commissions if group discounts apply?

    Ok, that's got it now. Thank you very much. Group members don't generate commissions and non-members do. Thanks a lot.

    Now if I can just figure out why the commissions are exactly 1/2 what they should be... (not meant to be answered, haven't looked into it much yet).

 

 

Similar Threads

  1. JROX - Pay Multiple Commissions On One Order?
    By skustes in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Oct 2011, 09:23 PM
  2. Group Discount - How to NOT apply other discounts?
    By jplanet in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 14
    Last Post: 9 Mar 2010, 03:16 PM
  3. JROX working without commissions
    By helpme in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 7 Oct 2009, 02:20 PM
  4. How to make sales/specials not apply to customers who receive group discounts?
    By lauriek in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 16 Sep 2009, 08:29 AM
  5. Setting up JROX/Jam commissions by category?
    By lyricwings in forum General Questions
    Replies: 12
    Last Post: 5 Jan 2009, 01:44 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