If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / removal of three periods after product description

removal of three periods after product description

Started by joshuabaer23 on 11 Dec 2010, 7:57 AM · Views: 604

Results 1 to 6 of 6
11 Dec 2010, 7:57 AM
#1
joshuabaer23 avatar

joshuabaer23

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Post #1 by joshuabaer23

Can someone tell me what file contains the three periods after product description on the product listings page (for when you set it to display only a certain amount of characters.) Or maybe a spot within the admin area? I simply want to get rid of them.
Example:
item1 is a blue color with a...

11 Dec 2010, 8:15 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Um ... why?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Dec 2010, 3:42 PM
#3
joshuabaer23 avatar

joshuabaer23

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Post #3 by joshuabaer23

DrByte:

Um ... why?
I have a heavily modified products list. And on the products list, I wish for only the first 3 characters to show, and then on the product description, a full description to show.
Well, on my heavily modified products list, those three periods clash with the effect I am attempting.
Observe on the link I provided.

11 Dec 2010, 8:22 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

So, you're saying that your product name is just "2..."?
That's the only elipsis I see in that product list.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Dec 2010, 12:41 AM
#5
joshuabaer23 avatar

joshuabaer23

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Post #5 by joshuabaer23

DrByte:

So, you're saying that your product name is just "2..."?
That's the only elipsis I see in that product list.
There is only one elipsis, because I set that up for you as a display, to give you an example. Eventually, a majority of the products will be like that. '2' is the blow up diagram ID#, and 'Screw' is the product name. The '2' is in the product description area.

I originally needed an extra column to display the number from the blow up machine displayed above the parts list. The blow up identification number is essential. So I modified the product description to be the first display, and placed the blow up ID there. I limited the display to three characters, and the rest of the description shows on the product page itself. See example.
This was my only solution I could come up with. And during the construction of this idea, I became fairly familiar with the necessary files, but the elipsis (3 periods) has stumped me.

I figure there must be a language file somewhere that I can simply remove the dots from, and all will be fine. I still want to maintain the function (display 3 characters, and then a full descrip on product page) that is there, I just want the elipsis gone. And again, the elipses is in the description section.

12 Dec 2010, 1:39 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

You're likely preparing that for display by calling zen_trunc_string() with 2 parameters: the long description, and the number of chars to return. If you add a 3rd parameter of FALSE it will skip the elipsis.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.