Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    Bootyrat,

    Thanks very much for posting your update, this works nicely for me, too, in 1.3.5.

    ---Diana

  2. #12
    Join Date
    Jun 2006
    Location
    Oz
    Posts
    31
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    Glad to help!

  3. #13
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    Quote Originally Posted by Bootyrat View Post
    Hi all... I have reworked this for 1.3.5

    In
    /includes/modules/order_totals/ot_group_pricing.php

    find this line
    Code:
    $this->output[] = array('title' => $this->title . ':',
    			'text' => '-' . $currencies->format($od_amount['total'], true, $order->info['currency'], $order->info['currency_value']),
    			'value' => $od_amount['total']);

    and replace with this
    Code:
    $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    			$group_discount = $db->Execute("select group_name from " . TABLE_GROUP_PRICING . " where group_id = '" . (int)$group_query->fields['customers_group_pricing'] . "'");
    			  
    			$this->output[] = array('title' => $this->title . ' - ' . $group_discount->fields['group_name'] . ':',
    			'text' => '-' . $currencies->format($od_amount['total'], true, $order->info['currency'], $order->info['currency_value']), 'value' => $od_amount['total']);
    Don't know if this is true to Zen culture, but it works well for me and I thought I'd share it.
    Cheers
    i'm using version 1.2.6 which line should i edit to make this work for me?

  4. #14
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    Quote Originally Posted by 6plus5 View Post
    i'm using version 1.2.6 which line should i edit to make this work for me?
    That's an old unsupported version of Zen Cart. I don't think anyone would encourage you to spend energy working on it. It would be best by far for you to upgrade, and you probably need to remake your template completely, and base it on the default template in the new 1.3.x. Upgrading will take several hours and the best thing to do is to create the new site in parallel, with a brand new Zen Cart installation. Do new installation, get template looking good, overwrite new database with a copy of your old database [lock down the store while this is going on] and then apply the patches in sequence, from 1.2.7 --> 1.3.6. That's the procedure, and it really isn't so terrible. What's hard is testing and fixing all your custom code that worked in 1.2.6 and is broken in 1.3.6. I started ZC with 1.2.6 in August 2005. I'm using 1.3.6 now and it's MUCH better.

    It's a reality: software is never done. You can't just put up a website and leave it in stasis, it gets really old, really fast, and any vulnerabilities it may have can be exploited.

    ---Diana

  5. #15
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    i am using 1.3.7 and i cannot find this code... is it different in the latest version????

  6. #16
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    It should be around line 45. Make sure you're looking at the right file. The latest version should say
    @version $Id: ot_group_pricing.php 4601 2006-09-24 18:48:43Z wilt $
    in the header.

  7. #17
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Change the Group Discount label

    Found it... thanks for the help.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Change Invoice Wording from "Group Discount" to "Customer Discount"
    By OLD MAN in forum Customization from the Admin
    Replies: 1
    Last Post: 21 Oct 2011, 06:58 PM
  2. Set max discount for Group Discount + Discount + etc.
    By KEnik in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 16 Jun 2010, 05:39 PM
  3. MySQL query to change discount pricing group
    By Ells in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 19 Feb 2009, 08:33 PM
  4. How to change the button label?
    By zaira in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Jan 2009, 03:12 AM
  5. When is the group discount gets applied to the total?
    By yellow1912 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 21 Sep 2008, 06:29 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