Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

increasing the description length


Guest

Recommended Posts

Hi,

any ideas how I can increase the product description length for each item in the index page, its set to about 70 characters or so at the moment and cuts ofF important information. Perhaps I could show the full description for each item for sale...any ideas?

 

Kind Regards.

KB

Link to comment
Share on other sites

Hi,

any ideas how I can increase the product description length for each item in the index page, its set to about 70 characters or so at the moment and cuts ofF important information. Perhaps I could show the full description for each item for sale...any ideas?

 

Kind Regards.

KB

 

 

 

Try to connect you to you mysql

 

table products_description, and fix the lenght to the right value for products_name or the others fields

 

;)

Link to comment
Share on other sites

Try to connect you to you mysql

 

table products_description, and fix the lenght to the right value for products_name or the others fields

 

;)

 

 

Very fast reply, thanks for that I'll give it a go - many thanks. KB

Link to comment
Share on other sites

Try to connect you to you mysql

 

table products_description, and fix the lenght to the right value for products_name or the others fields

 

;)

 

 

Hi JK,

tried to change the fields but still not expanding on the index page - here is the extract from the database:

 

 

 

Field Type Attributes Null Default Extra Action

products_id int(11) No auto_increment

language_id int(11) No 1

products_name varchar(64) No **** changed this to 255 and to varchant - no effect ***

products_description text Yes NULL *** changed this to 255 and to varchant - no effect ***

products_url varchar(255) Yes NULL

products_viewed int(5) Yes 0

 

 

Any ideas?

 

Kind Regards.

KB

Link to comment
Share on other sites

Hi JK,

tried to change the fields but still not expanding on the index page - here is the extract from the database:

Field Type Attributes Null Default Extra Action

products_id int(11) No auto_increment

language_id int(11) No 1

products_name varchar(64) No **** changed this to 255 and to varchant - no effect ***

products_description text Yes NULL *** changed this to 255 and to varchant - no effect ***

products_url varchar(255) Yes NULL

products_viewed int(5) Yes 0

Any ideas?

 

Kind Regards.

KB

 

 

index.php is showing to you the newest products, and this is this description that you would like to increase ?

 

Try to see in your catalog/includes/modules/new_products.php

Link to comment
Share on other sites

index.php is showing to you the newest products, and this is this description that you would like to increase ?

 

Try to see in your catalog/includes/modules/new_products.php

 

Hi JK,

I have looked at the catalog/includes/modules/new_products.php and found this part of the code which read 80, I have increased it to 120 but it still does not increase the discription on products that are already listed, maybe I should add another product to see if it changes anything.

 

$product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'</div>';

 

 

The site is http://www.freshisbest.co.uk/index.php it's locked out to the public until it goes live so feel free to view exactly what I mean - the descriptions cut short.

 

Kind Regards.

KB.

Link to comment
Share on other sites

Hi JK,

I have looked at the catalog/includes/modules/new_products.php and found this part of the code which read 80, I have increased it to 120 but it still does not increase the discription on products that are already listed, maybe I should add another product to see if it changes anything.

 

$product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'</div>';

 

 

The site is http://www.freshisbest.co.uk/index.php it's locked out to the public until it goes live so feel free to view exactly what I mean - the descriptions cut short.

 

Kind Regards.

KB.

 

 

templatemonster ;)

 

includes/modules/products_news.php is the right file. I think with this template You will have to make a hack:

 

1st possibility:

- with the header tags module and replace 'product description' by 'products_head desc'.

 

2nd choise:

 

- replace

 $product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'

 

- by

 $product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'...

 

just add the '...' it s more profesionnal

 

 

 

:thumbsup:

Link to comment
Share on other sites

templatemonster ;)

 

includes/modules/products_news.php is the right file. I think with this template You will have to make a hack:

 

1st possibility:

- with the header tags module and replace 'product description' by 'products_head desc'.

 

2nd choise:

 

- replace

 $product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'

 

- by

 $product_info_str .= '<div class="productBox_prod_discr">'.substr($product['products_description'], 0, 120).'...

 

just add the '...' it s more profesionnal

:thumbsup:

 

 

Many thanks JK,

I used the 120 and the ...more - however will have to use short descriptions of upto the give 120 charactor length followed by the full information when anyone clicks on the product page.

Again thanks for your time and effort. :thumbsup:

 

Kind Regards.

KB :)

Link to comment
Share on other sites

hey kroggy you site was really nice i want the categories box of my site to be exatly like yours. can you tell me how did you do that. thanks

 

Just pm'd you!

Link to comment
Share on other sites

Just pm'd you!

Kroggy, your site is absolutely beautiful. I also loved how you did the boxes. Is it too much if I too ask you to know how did you do it ? :wub:

 

Thank you!

Link to comment
Share on other sites

Kroggy, your site is absolutely beautiful. I also loved how you did the boxes. Is it too much if I too ask you to know how did you do it ? :wub:

 

Thank you!

 

Sorry I don't, it's just part of the template I bought from Algozone.

If I new which area to look for (the template system is really confusing) then I would help - but to be fair it would not just be one single page more like half a dozen including the css file.

You would then need to intergrate into your site which may end up wrong and not working.

 

KB

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...