Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Location
    Derby UK
    Posts
    99
    Plugin Contributions
    0

    Default 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:&nbsp;'); 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!

    Many thanks.
    Crazy



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

    Default 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 ...
    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
    Sep 2006
    Location
    Derby UK
    Posts
    99
    Plugin Contributions
    0

    Default 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!
    Crazy



 

 

Similar Threads

  1. Help with a little bit of PHP coding for discounting ....
    By plymgary1 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 Jan 2012, 03:46 PM
  2. Some coding help please
    By malc in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 8 Jun 2011, 08:17 AM
  3. A little help for some
    By yoyoben in forum General Questions
    Replies: 0
    Last Post: 9 Apr 2008, 08:02 AM

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