Zen Cart Logo
Forums / General Questions / A little help with some coding required!

A little help with some coding required!

Locked

Views: 1,114

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 Apr 2007, 10:40 PM
#1
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

A little help with some coding required!

Hey Guys, could do with some help!

I've been making some slow progress in modifying the way that specials display as you can see here: http://www.appliancesfirst.co.uk/

What I am trying to do now is change the way in which the prices are displayed to try and make them more readable. What I am trying to achieve is the following:

Was: £This Price
Now: £This Price
Saving: This%

On three lines, and adding the words Was: and Now:

Two things: I am getting a little worried as the mods I am making are not "Zen-like". And also, my lack of php skills means that I am having trouble finding where to insert the "Now" text AND the following colons.

So, I have been modifying functions/functions_prices.php [can someone confirm that the overrides system does not work in this folder] On line 224 have changed this code

$show_normal_price = '<span class="salesText">' . Was .' ' . '</span>'.'<span class="normalprice">'

How do I display the : , I've tried just about everything I can think of but just keep generating errors!

Where do I insert the Now: , same question applies about the :

And where do I put the <br>'s. As you can see I've added one in /languages/my_template/english.phpin define('PRODUCT_PRICE_DISCOUNT_PREFIX','<br> Save: '); for the save: text.

I've been playing code detective all day - by 7:30am I was way out of my depth, its now 23:34 and the water is getting very deep! :blush:

Many thanks.

12 Apr 2007, 3:23 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: A little help with some coding required!

There is a function in the functions_prices.php that controls 95% of all price displays ...

If you look at some of your files to see which function and how it is called it would probably help you out in customizing to your needs ...

NOTE: there are not overrides for function files ...

NOTE: really take your time in reading how that function works ... it is a nightmare from ... umm ... well ... you know ... :eek:

12 Apr 2007, 5:13 AM
#3
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

Re: A little help with some coding required!

Hi Linda, thanks for your help.

I think that is the function I have been playing with, but I will take a fresh look at it later today. To be honest I am struggling with following the code most of the time - my php begins and ends at "Hello World".

Shame the overrides don't work on the functions folder, I will just have to remember when its upgrade time!

Sure I will be back sometime soon!