Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    35
    Plugin Contributions
    0

    Default display a new price with discount

    Hi, i have a little problem with tpl_product_info.

    My problem is that i want to display in product info a new price with 3% of discount (for who buy with moneyorder).

    can see on http://www.sospcshop.com/store/nb-as...-w-p-4142.html

    so i wish show 2price..

    (if you buy by cod is the 1° price, if buy by moneyorder is 2° price)

    1 normal price; the second is the price of first - 3%

    I have try to do it but does not work correctly... (put many decimal and for prices > 999 show 0.ecc,)

    I have added
    zen_get_products_display_price((int)$_GET['products_id'])/1.03

    can someone help me?

    Thanks...

    bye !

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: display a new price with discount

    You could use an Orders Total module to allow the discount on the total of the order when Money Order is used ...

    You might look into the Global Discount module that dreamscape made and add a condition to only allow it to apply based on the Payment Module that is picked ...
    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: v1.5.5]
    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. #3
    Join Date
    Mar 2005
    Posts
    35
    Plugin Contributions
    0

    Default Re: display a new price with discount

    thanks Ajeh ..

    I have alredy done a module that make discount based on payment module (adapted from cod_fee).

    I wish a more symple thing..
    I want to see in product info both the normal price and the price with the discount..

    "regular price" €10.00Euro if buy with moneyorder -3% €9.70

    I hope you understand my English...

    many thanks !!

    Bye !

  4. #4
    Join Date
    Mar 2005
    Posts
    35
    Plugin Contributions
    0

    Default Re: display a new price with discount

    I see that nobody knows how to do it !!!

    pazienza...

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: display a new price with discount

    This would take quite a bit of coding if this is the 2nd item purchased when only Money Order is used ...

    What happens if they buy 3? 4? 27?

    Or are you saying 2nd price is because of Money Order on full order so it is total order - 3% when Money Order is used?

    If so, then just use the module I suggested before and adapt it to only work on Money Order ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Mar 2005
    Posts
    35
    Plugin Contributions
    0

    Default Re: display a new price with discount

    Hi

    I have found a similar problem in forum and solved so:

    Normal price..


    and after...

    $withtax=zen_get_products_display_price((int)$_GET['products_id']);
    $withtax=ereg_replace(',','',$withtax);//removes commas from thousands

    echo '<br />'.'<span style="font-size:14px">';
    printf ("%01.2f", round($withtax -(($withtax * 3)/100),2));
    echo 'EUR'.'</span>'
    ?>
    <span class="Stile49"> -3% (Pagamento anticipato) </span>

    Thanks for interesting.

    Bye !

 

 

Similar Threads

  1. v150 Qty Discount price display question
    By rufusclc in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Sep 2013, 04:47 AM
  2. v150 On Product Display Page add text before Price when using Qty Discount & change Price
    By rufusclc in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Jun 2013, 08:04 PM
  3. Display Extended Price on Discount Table
    By lmax401 in forum General Questions
    Replies: 9
    Last Post: 13 May 2009, 05:57 PM
  4. Quantity Discount Table Display Price.
    By lmax401 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Sep 2008, 01:40 AM
  5. Show Attribute Price with % Discount new Column
    By ramblas in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Aug 2008, 01:44 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