Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Info


joshlee

Recommended Posts

Posted

I have been working on our site, and I have recently added to the admin/categories.php page an extra value called "Regular Price" and have changed "Price" to "Sales Price".

 

I am able to add and update the DB with these modifications and call the values in the DB properly.

 

What I want to do is add one more column to the products.php (I believe this is the correct page that I should modify - I have tried modifying the index.php page as well) page - to include the "Regular Price" and "Sales Price".

 

being new to php, I am unable to determine what I need to change to display this column.

 

Currently the table shows the following:

 

EXAMPLE URL: http://store.dreamstudio9.com////index.php...8e9759db31bb6ff

 

<IMAGE> <PRODUCT NAME> <PRICE> <BUY NOW>

 

Followed by the list of products.

 

Can anyone point me in the right direction so I can make the products. display in the following way:

 

<IMAGE> <PRODUCT NAME> <REGULAR PRICE> <SALES PRICE> <BUY NOW>

 

Any assistance is greatly appreciated.

 

Thanks

 

Josh

Posted

The file that you need to edit is includes/modules/product_listing.php

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Posted

Hello Natewlew

 

Thanks for the pointer. I was wondering if you can help me out a little bit further. I apologize for all of these questions.

 

I added the following code into the following page:

 

<!-- MODIFIED //-->

case 'PRODUCT_LIST_REG_PRICE':

$lc_text = TABLE_HEADING_REG_PRICE;

$lc_align = '';

break;

<!-- MODIFIED //-->

 

I also edited /includes/languages/english/index.php to include "TABLE_HEADING_REG_PRICE;"

 

define('TABLE_HEADING_REG_PRICE', 'Regular Price'); /* MODIFIED */

 

Going further down in the code, I am at a lost? My PHP skills are lacking some what, any further assistance, please let me know.

 

Your assistance is greatly appreciated.

 

Josh

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...