Jump to content
nrlatsha

EZier New Fields

Recommended Posts

Fist of all, thanks for your hard work on this great contribution.

 

I just installed the contribution and I think it works fine except one thing.

 

I changed includes/languages/english.php files

// EZier new fields
define('TEXT_PRODUCTS_RETAIL_PRICE_INFO', '<br>Retail Price: ');
define('TEXT_PRODUCTS_PRICE_INFOS', '<br><strong><font color="#827AE9">Your Price: ');
define('TEXT_PRODUCTS_SAVE_INFO', '<br><strong><font color=red>You Save: ');
define('TEXT_PRODUCTS_RETAIL_PRICE', 'Products Retail Price:');
//EZier new fields end

 

in order to make 'Your Price' look better.

 

But, the color of the product description text is also changed.

 

This is exactly I see on my product_info.php page.

 

 

Retail Price: $200

Your Price: $100

You Save: 50%

 

Regional Code: 2 (Japan, Europe, Middle East, South Africa).

Languages: English, Deutsch.

Subtitles: English, Deutsch, Spanish.

Audio: Dolby Surround 5.1.

Picture Format: 16:9 Wide-Screen.

Length: (approx) 114 minutes.

Other: Interactive Menus, Chapter Selection, Subtitles (more languages).

 

 

When I don't change english.php file, and set it as default(which is black color), the product description is black as well.

 

I followed your instruction and had no problem with that..

 

Except Step 5

===========
STEP 5
===========

catalog/admin/includes/languages/english/categories.php

ADD (Where ever you want)

// EZier new fields
define('TEXT_PRODUCTS_RETAIL_PRICE', 'Products Retail Price:');
//EZier new fields end

 

Because this code is already there from step 1.

 

 

Please, help me with this problem..

 

 

and I'm really happy to see the updated version of this contribution.

 

Thanks again.

Share this post


Link to post
Share on other sites

And I have an opinion for your next update.

 

When you go to products_new.php page, it looks like this.

 

A Bug's Life

Date Added: Monday 24 May, 2004

Manufacturer: Warner

Our Price: $35.99

 

If possible, it would look better if Retail Price goes underneath Manufacturer line.

 

A Bug's Life

Date Added: Monday 24 May, 2004

Manufacturer: Warner

Retail Price: $100

Our Price: $35.99

 

 

Hope it will help you come out a better solution.

Share this post


Link to post
Share on other sites

This is really good contrib.

I've using it well

 

but, I'd like to change its font size larger..

 

like this.

 

Retail Price: $100

Your Price: $42

You Save: 58%

 

How do I increase a font size?

 

Thanks for your help.

Share this post


Link to post
Share on other sites
just a little "template" problem, if i insert the retail price in admin for a products the catalag/product_info.php page it seams normal with the correct indication of the sale, but, if i don't insert the retail price the "structure" of this page is totally wrong, can you help me?

I am having the same issue. Were able to figure out what needed to be changed to correct the display issue?

Share this post


Link to post
Share on other sites

Actualy the problem accurs either when there is no retail price OR when there is no image. If both the image and retail pricing was entered it displays fine. Also the display problem is different when there is no image to when there is no retail price.

 

Maybe this can help you figure out where the coding is causing this.

 

just a little "template" problem, if i insert the retail price in admin for a products the catalag/product_info.php page it seams normal with the correct indication of the sale, but, if i don't insert the retail price the "structure" of this page is totally wrong, can you help me?

I am having the same issue. Were able to figure out what needed to be changed to correct the display issue?

Share this post


Link to post
Share on other sites

I do have the same problem.. but i guess it's ok as long as I input both values.

 

But How about other issues such as font size and color schemes.

Edited by jjanguda

Share this post


Link to post
Share on other sites

Sorry for the late replies everyone, I was on vacation :)

 

I think everyone's questions can be answered with this:

 

catalog/product_info.php, look for:

 

	<?php  
 echo TEXT_PRODUCTS_RETAIL_PRICE_INFO . $retail; 
 echo TEXT_PRODUCTS_PRICE_INFO . $our; 
 echo TEXT_PRODUCTS_SAVE_INFO . $save . '%</font>'; }  
} else { ?>

 

If you change this area to the font/size you want like so:

 

	<?php  
 echo '<font size=3>' . TEXT_PRODUCTS_RETAIL_PRICE_INFO . '<s><font color = "#827AE9">' . $retail . '</s></font></font>'; 
 echo TEXT_PRODUCTS_PRICE_INFO . $our; 
 echo TEXT_PRODUCTS_SAVE_INFO . $save . '%</font>'; }  
} else { ?>

 

You can see from the above example, you can change whatever you like, or use your stylesheet. I modified retail price there...

 

 

minuteago - I'll take a look at that for the next release. I had planned on getting that out before I left, but ran out of time. Look for it in the next couple of weeks. Oh, and remove the part you added into the english file...

 

duvys - I'll take a look at adding something in there for no pic, but with all the picture contribs out there, it might prove difficult...


9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Share this post


Link to post
Share on other sites

nrlatsha

i'd like to change "Your Save: x %" to "Your Save: $10 (50%)"

 

I want to make sure that there's one letter space between $10 and (50%).

 

Which code should I change?

 

 

Furthermore,

 

on the "What's New" page,

 

it says like this:

 

Date Added: Monday 24 May, 2004

Manufacturer: Warner

Our Price: $35.99

 

I've changed "Manufacturer" to "Retail Price" for the time being.

But, I don't know how to add retail price that I've already added from admin page instead of Warner in this case so that it looks like

 

Retail Price: $50

Our Price: $35.99

 

Can I do that? (I think I probably have to modify whats_new.php file)

 

Can you help me on this?

 

 

Thanks for all your support!!

Edited by minuteago

Share this post


Link to post
Share on other sites

thanks, nrlatsha.

 

I also expect to see the next upgrade version of EZ Fileds.

 

Furthermore, I think minuteago's idea is good though. I'd like to know how we can adjust manufacturer part.

Share this post


Link to post
Share on other sites

Ahhh, the highly anticipated new version... I started that a while ago, but didn't finish it due to time constraints. I'll start working on it as soon as I complete the upgrade to fancy page navigation, which I am currently working on.

 

Expect to see:

 

Retail Price and savings on product listing pages (category search pages - Both stock and column contrib)

Retail Price on Whats new info box

Retail Price on Whats new page

Retail Price on new products for month info box

Retail Price on new products for month page

 

From those changes I started a while ago, I think that accomplishes what you guys are asking for?

 

I'll also take a look at doing a Save: 15% | $15 or both $15 (15%)

 

Plus, as a bonus feature if you act now, everything configurable through admin!

 

Good Ideas?

 

Sorry I haven't gotten it out sooner, I've been very busy the last month and didn't have time to code the rest of the features. I'm hoping to get this released by the end of tomorrow. But don't hold me to that.

 

Any other ideas?


9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Share this post


Link to post
Share on other sites

As minuteago mentioned above, it is a good idea to replace a manufacturaer field value with retail price since there's a our price already dispalyed.

 

how about this?

Share this post


Link to post
Share on other sites

Perhaps I missed the fix for this prob in the thread (will look again) but was wondering if anyone noticed the bug with Specials? When I set an item to Special, it shows the original price as $0.00. Don't know why this mod would even effect it, but the problem has only occurred since I installed this great mod.

Share this post


Link to post
Share on other sites

New Version just released:

******************************

 

EZier New Fields 4.0

 

******************************

 

Lots of new features:

 

(1) Added functionality to use this in the display results and search box

(2) Added more language file additions.

(3) New mods for the whats new box and file, specials box and file and new products box.

 

Basically anything with a price has retail price attached to it somewhere.

 

Get it here: http://www.oscommerce.com/community/contributions,1310

 

Hope everybody enjoys!

 

Acheron - This is compatible with specials. Does it show the price of 0.00 in both the new field and the normal place at the top right? If so, I imagine a variable is getting stepped on somewhere. Upgrade to 4.0 and see if that takes care of it.

 

minuteago and jjanguda - I left the manufacturer in there and just added another field for retail. If you want manufacturer to be gone, you can comment it out in the code.

Edited by nrlatsha

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Share this post


Link to post
Share on other sites

thanks for your updated contribution..

I really love it.. Thanks...

 

I got rid of manufacturer line on what's new list..

But, I don't know how to remove that empty space.

 

Now it looks like

 

A Bug's Life

Date Added: Monday 24 May, 2004

 

 

Retail: $20.29

Your Price $35.99

 

 

But I want a model number right on previous manufacturer spot so.. it should look like this.

 

A Bug's Life

Date Added: Monday 24 May, 2004

Model: 222121

Retail: $20.29

Your Price $35.99

 

 

 

I found a little bug here..

There's no ":" between Your Price and actual price(in this case $35.99)

 

 

Another thing I really want to modify is the color on product_info.php

 

echo TEXT_PRODUCTS_SAVE_INFO . '$' . $save2 . ' (' . $save . '%)</font>';  

 

 

I tried to add '<font size=4 font color = "red" font face="Tahoma">' . between echo and TEXT, but I don't know what to add at the end..

If I don't add something at the end, all my description text will be changed like

TEXT_PRODUCTS_SAVE_INFO(in this case red.)

 

Please help me ..

Share this post


Link to post
Share on other sites

I found another bug(?)

 

on the products_new.php page,

 

 

it says

 

 

Date Added: Tuesday 29 June, 2004

Manufacturer: Canon

 

Retail: 1232.00

Your Price: $121.00

 

There's no $ sign between Retail: and 1232.00

 

As I've asked below, I want to change Manufactuerer line to product model number and want to get rid of empty space between manufactuerer and Retail price.

 

Please help me ..

 

 

Thank you.

Share this post


Link to post
Share on other sites

On a clean install osc and coy across the files from this contrib I get this error below, it seems I need to install ccgvdc to get the copy across to work out of the box.

 

Warning: main(includes/languages/add_ccgvdc_english.php): failed to open stream: No such file or directory in /home/sites/supaosc.com/public_html/supasites/supadownloads/includes/languages/english.php on line 335

 

Fatal error: main(): Failed opening required 'includes/languages/add_ccgvdc_english.php' (include_path='.:/usr/share/pear') in /home/sites/supaosc.com/public_html/supasites/supadownloads/includes/languages/english.php on line 335


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites

Perhaps this section of the instructions should be modified to reflect the error, the quote below is from the install file in the contrib v4

 

You can also copy and paste the files included if you haven't made changes to them.

 

4. Total of 4 files must be changed, the rest are optional:

 

catalog/includes/languages/english.php

catalog/admin/includes/languages/english/categories.php

catalog/admin/categories.php

catalog/product_info.php

 

And add 1 statement to database

 

5. You can copy and paste the enclosed files for these mods, but they will overwrite any changes you have made to the files.


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites

Sorry its taken a while to get back to you guys, I've been extremely busy with some development customers...

 

minuteago - I'm working on gettig you specific instructions right now, you should see something in a couple of hours (Barring any unforeseen circumstances) I'll take care of those issues you found also.

 

j0ker - The quick fix for that is to open catalog/includes/languages/english.php at the bottom find:

 

require(DIR_WS_LANGUAGES . 'add_ccgvdc_english.php');  // ICW CREDIT CLASS Gift Voucher Addittion

 

and delete that line.


9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Share this post


Link to post
Share on other sites

Thanks for your help.

 

Another thing I want to add is special price on the product_info.php page.

 

Right now it says

 

Retail Price: $39

Your Price: $29

You Save: $10.99 (27%)

 

(even on a special item, which means nothing different from a regular item in terms of displaying a different type of price.)

 

For a special item, can you do like this?

 

Retail Price: $39

Your Price: $30

Speical Price: $29

You Save: $10.99 (27%)

 

It doesn't have to be appeared on every item, but a special item.

 

I want to make them look differently.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×