hujer Posted October 23, 2008 Share Posted October 23, 2008 Hello,please could you some one help me with it?I tryed modify AdminProducts in this line /* Check description short size without html */ where i changed 400 to 800, but didnt help.Thanks.Frantisek Link to comment Share on other sites More sharing options...
netlider Posted October 27, 2008 Share Posted October 27, 2008 Hello.You need to change value 400 to 800 in AdminProducts.php and Product.php Robert Link to comment Share on other sites More sharing options...
Paul C Posted October 27, 2008 Share Posted October 27, 2008 Have you also actually checked that the database field can handle this?????Do you NEED two descriptions that are long, or are you trying to just use the short description on it's own (and don't want the long description)? If the latter is the case, then just alter the theme to swap the descriptions around, and use the long description only....Paul Link to comment Share on other sites More sharing options...
netlider Posted October 27, 2008 Share Posted October 27, 2008 Hello.I needed longer short description in my shop www.automatyka-sterowanie.pl and changes in this two files works for me.I didn't check the database field i didn't know that it could be a problem, I am begginer i php mysql and I'm just tring simple code modification for my needs.Maybe in prestashop 1.1 lenght of the fileds would be adjustable Robert Link to comment Share on other sites More sharing options...
Paul C Posted October 27, 2008 Share Posted October 27, 2008 Hello.I needed longer short description in my shop www.automatyka-sterowanie.pl and changes in this two files works for me.I didn't check the database field i didn't know that it could be a problem, I am begginer i php mysql and I'm just tring simple code modification for my needs. But you don't appear to be using the full description..... yu could have just used that instead (moved to where the short description is) without having to change the cart's code; which you'll need to redo when you upgrade... :-) Maybe in prestashop 1.1 lenght of the fileds would be adjustable Robert I wouldn't think so....Paul Link to comment Share on other sites More sharing options...
netlider Posted October 27, 2008 Share Posted October 27, 2008 Hello.In short description I have all importent things about products and long description is reserved for long and more detailed description and it will be soon maybe when prestashop 1.1 see the light Long time I haven't use english - too much time for searching correct words - I need to upgrade dictionary in my head Robert Link to comment Share on other sites More sharing options...
hujer Posted October 31, 2008 Author Share Posted October 31, 2008 Thank you both guys !I have made a lot of code chenges to fit my needs, so this will be ok for me ! Link to comment Share on other sites More sharing options...
hai Posted October 31, 2008 Share Posted October 31, 2008 hi netliderhow you delete the "add to cart" button in the center page of the home page ? Link to comment Share on other sites More sharing options...
netlider Posted October 31, 2008 Share Posted October 31, 2008 Hello.I deleted part of code in product-list.tpl Link to comment Share on other sites More sharing options...
bykrmom Posted October 31, 2008 Share Posted October 31, 2008 I would recommend commenting out un-needed or un-wanted lines of code, rather than an outright deletion. You may want the original for reference or may need to have it again in the future.Just a thought Link to comment Share on other sites More sharing options...
fburn Posted October 31, 2008 Share Posted October 31, 2008 There's one other issue you are going to need to address.When you change the product description lengths or the style on those descriptions you need to change the tpl files that handle product display.For example, in product-list.tpl you need to look for the :truncate tag, as in the following: {$product.description_short|strip_tags:'UTF-8'|truncate:225} You will need to update this if you are going to display the longer descriptions. We've also had to make extensive modifications to the styles in the global.css file to handle changes in appearance.Finally, don't forget to look in the featured product module as well if you use it.Cheers. Link to comment Share on other sites More sharing options...
hai Posted November 1, 2008 Share Posted November 1, 2008 to nedlider:can you precise me where to make modification: {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags:'UTF-8'|truncate:360} thanks Link to comment Share on other sites More sharing options...
netlider Posted November 3, 2008 Share Posted November 3, 2008 Hi {convertPrice price=$product.price} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} <!--{if ($product.allow_oosp OR $product.quantity > 0)} {l s='Add to cart'} {else} {l s='Add to cart'} {/if}--> {l s='View'} Robert Link to comment Share on other sites More sharing options...
Matthieu Biart Posted November 3, 2008 Share Posted November 3, 2008 I would recommend commenting out un-needed or un-wanted lines of code, rather than an outright deletion. You may want the original for reference or may need to have it again in the future.Just a thought This is a wise advice :coolsmirk: Link to comment Share on other sites More sharing options...
Recommended Posts