It will use that ... unless of course you have "the bug" and not "the bug fix" ...![]()
Now to remember where I put that fix ...![]()
It will use that ... unless of course you have "the bug" and not "the bug fix" ...![]()
Now to remember where I put that fix ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Try editing the /includes/functions/functions_general.php and replace this whole function:
Let me know if that fixes you up ...Code://// // return truncated paragraph function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') { $zv_paragraph = ""; $word = explode(" ", $paragraph); $zv_total = count($word); if ($zv_total > $size) { for ($x=0; $x < $size; $x++) { $zv_paragraph = $zv_paragraph . $word[$x] . " "; } $zv_paragraph = trim($zv_paragraph); } else { $zv_paragraph = trim($paragraph); } return $zv_paragraph; }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Unfortunately, that fix did not fix my problem. Please diagnose this as it's practically impossible to add meta tag to thousands of products one at a time nor do I want to revert back to 1.2.7Originally Posted by Ajeh
Thanks!
Ajeh, I just want to report back that I tested the issue on a clean install of 1.3.0.1 and Zen Cart is still not picking up description if meta tag doesn't exist for products.
Upon further review I compared the change you proposed with the original file from 1.3.0.1 and there is absolutely no difference between the changes you suggested and the clean file downloaded for 1.3.0.1. Is that the problem that the bug fix you gave is actually not a bug fix?
Thanks!
Odd ... this is what is in v1.3.0.1 ...
Code://// // return truncated paragraph function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') { $zv_paragraph = ""; $word = explode(" ", $paragraph); $zv_total = count($word); if ($zv_total > $size) { for ($x=0; $x < $size; $x++) { $zv_paragraph = $zv_paragraph . $word[$x] . " "; } $zv_paragraph = trim($zv_paragraph); } return $zv_paragraph; }
This is the new code:
Code:// return truncated paragraph function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') { $zv_paragraph = ""; $word = explode(" ", $paragraph); $zv_total = count($word); if ($zv_total > $size) { for ($x=0; $x < $size; $x++) { $zv_paragraph = $zv_paragraph . $word[$x] . " "; } $zv_paragraph = trim($zv_paragraph); } else { $zv_paragraph = trim($paragraph); } return $zv_paragraph; }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Ajeh,
Thanks for the reply. I downloaded a new copy of the Zen Cart 1.3.0.1 full set pack, applied the change, deleted the one on the server and copied the new one there. There problem is still not solved.
I went to the site review section to see if others are experiencing the problem and I have pasted a few sites that have descriptions but there are not being auto populated for meta tag description. Is this a bug or we are all missing something, missing a configuration setting or have hosting/server issues?
This obviously cannot be a good thing for shop owners.
Here are some samples sites that have the same problem but may not know it :)
http://shopjackiesjewels.com/index.p...products_id=16
http://racemode.ca/index.php?main_pa...products_id=48
http://www.edgewatergifts.com/lift-t...nson-p-79.html
If you need more information please let me know.
Thanks for looking into this.
BTW, Are you able to get the default clean install to auto-generate the description for products? I was not able to make that work either and a few site I visited that have the clean install with sample products do not have it working either.
I donwnload a clean v1.3.0.1 from our link to SourceForge ...
Meta Tags are broken on the auto generated code for description ... I applied the same change I have asked you to try and it fixed it ...
Make one change to the file:
/includes/functions/functions_general.php
New Code to replace the function zen_truncate_paragraph by adding the else statement:
You may wish to check your site with something like Beyond Compare and see what it is that is not allowing this fix to work for you ...Code://// // return truncated paragraph function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') { $zv_paragraph = ""; $word = explode(" ", $paragraph); $zv_total = count($word); if ($zv_total > $size) { for ($x=0; $x < $size; $x++) { $zv_paragraph = $zv_paragraph . $word[$x] . " "; } $zv_paragraph = trim($zv_paragraph); } else { $zv_paragraph = trim($paragraph); } return $zv_paragraph; }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!