If this is your first visit, check our documentation. To post, register or login.

Different order of prices in Specials

Locked

Started by zeli on 1 Sep 2006, 9:08 PM · Views: 1,368

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
1 Sep 2006, 9:08 PM
#1
zeli avatar

zeli

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #1 by zeli

Hi!
I'd like to change the preset order in SPECIALS from: Normal price_New price <BR> Saving of x%
TO
New price <BR> Normal (old) price <BR> Savings...

I tried it by myself but I got wrapped up in PHP's links If, Else,... :no:
Thanks in advance!!! :P

1 Sep 2006, 9:34 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

You would have to rewrite the function that displays the price to change this at this time ...

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!

1 Sep 2006, 9:42 PM
#3
zeli avatar

zeli

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #3 by zeli

Well, I know:smartass:
That must be done quite easy just by swapping a few lines?..
I only wanted to know which lines :blush:

1 Sep 2006, 9:46 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Look in the /includes/functions/functions_prices.php

Find the function zen_get_products_display_price($products_id)

Build the $final_display_price the way you want it to appear ...

Note: there is no override for function files ... be sure to backup the original and your changed file for future upgrades ...

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!

1 Sep 2006, 9:57 PM
#5
zeli avatar

zeli

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #5 by zeli

Thanks, that was a quick one!
After this "moving" there's no space between New price and Normal price.. I don't need space, rather kind of a <BR> tag instead:D
Which can I find ... where? :lamo:
Really grateful!!! :wink2:

1 Sep 2006, 9:59 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

What ever that function returns is exactly what you get ...

You want:

$something . '<br />' . $something_else

You have to write it that way ...

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!

1 Sep 2006, 10:06 PM
#7
zeli avatar

zeli

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #7 by zeli

Thanks!!! It's as I wished it to be:lol:

1 Sep 2006, 10:18 PM
#8
zeli avatar

zeli

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #8 by zeli

One last question..
This is the View-source of selected TD..

<td class="productListing-data" right>** **<span class="productSpecialPrice">5.391 Kc</span><br /><span class="normalprice">5.990 Kc </span><span class="productPriceDiscount"><br />Discount 10%</span>

Space in bold looks strange.. Again - where?..

I'm really sorry to bother you, but the whole structure is a bit confusing for me...

2 Sep 2006, 12:21 AM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

Look in the same function for where the special price is built ... you will find an  

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!