problems on grid mode. Sporty

Good day!
 
Could you please help me
 
On grid more view of catalogue there are some problems:
https://yadi.sk/i/_HfjfRwFk9vBN , link http://all4sportshop.ru/for-men/shorty
https://yadi.sk/i/pqnRzjrbk9vGC , link http://all4sportshop.ru/accessory/sumki
[?] is on some kind’s of products. 
So i do not know how to make it work good, without [?] in grid more.
 
 
 
 

5 answers

Profile photo of Mall Staff 90620.00 $tone November 2, 2015
Public

Hi Vladimir Ivanov,
To solve the issue as you said, let open the template file at 
app/design/frontend/default/jm_sporty/template/catalog/product/list.phtml
and find to the code line:

 echo substr($_product->getName(),0, 36).'...';

and replace it by:

 echo mb_substr($_product->getName(),0, 36, 'utf-8').'...';

and find to the code line:

echo strip_tags(substr($sdesct, 0, 126)).'...';

and replace it by:

echo strip_tags(mb_substr($sdesct, 0, 126, 'utf-8')).'...';

Let do it to solve the issue as you said.
Regards,
Mall.

#
Profile photo of Vladimir Ivanov 490.00 $tone November 2, 2015
Public

After i done my site did not work on laptop. there are log’s…
 

a:5:{i:0;s:70:”Item (Mage_Catalog_Model_Product) with the same id “576” already exist”;i:1;s:4181:”#0 /var/www/all4sportshop.ru/app/code/local/Mage/Eav/Model/Entity/Collection/Abstract.php(286): Varien_Data_Collection->addItem(Object(Mage_Catalog_Model_Product))
#1 /var/www/all4sportshop.ru/app/code/local/Mage/Eav/Model/Entity/Collection/Abstract.php(1085): Mage_Eav_Model_Entity_Collection_Abstract->addItem(Object(Mage_Catalog_Model_Product))
#2 /var/www/all4sportshop.ru/app/code/local/Mage/Eav/Model/Entity/Collection/Abstract.php(892): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#3 /var/www/all4sportshop.ru/lib/Varien/Data/Collection.php(752): Mage_Eav_Model_Entity_Collection_Abstract->load()
#4 /var/www/all4sportshop.ru/app/code/local/JoomlArt/JmProducts/Block/List.php(244): Varien_Data_Collection->count()
#5 /var/www/all4sportshop.ru/app/code/local/JoomlArt/JmProducts/Block/List.php(248): JoomlArt_JmProducts_Block_List->getTotalRecords()
#6 /var/www/all4sportshop.ru/app/design/frontend/base/default/template/joomlart/jmproducts/list_ajax.phtml(240): JoomlArt_JmProducts_Block_List->getTotalPage()
#7 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(241): include(‘/var/www/all4sp…’)
#8 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/base/d…’)
#9 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#10 /var/www/all4sportshop.ru/app/code/local/JoomlArt/JmProducts/Block/List.php(220): Mage_Core_Block_Template->_toHtml()
#11 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Abstract.php(919): JoomlArt_JmProducts_Block_List->_toHtml()
#12 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#14 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#15 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml(‘mass-top2’, true)
#16 /var/www/all4sportshop.ru/app/design/frontend/default/jm_sporty/template/page/1column.phtml(87): Mage_Core_Block_Abstract->getChildHtml(‘mass-top2’)
#17 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(241): include(‘/var/www/all4sp…’)
#18 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#19 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#21 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /var/www/all4sportshop.ru/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /var/www/all4sportshop.ru/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
#25 /var/www/all4sportshop.ru/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#26 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#27 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
#28 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#29 /var/www/all4sportshop.ru/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#30 /var/www/all4sportshop.ru/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#31 /var/www/all4sportshop.ru/index.php(87): Mage::run(”, ‘store’)
#32 {main}”;s:3:”url”;s:10:”/index.php”;s:11:”script_name”;s:10:”/index.php”;s:4:”skin”;s:7:”default”;}

#1
Profile photo of Mall Staff 90620.00 $tone November 3, 2015
Public

Hi Vladimir Ivanov,
Seem you are make wrong needed update. 
I need a closer look to detect the root of issue. Let’s provide me the admin and ftp credentials of your site.
I will check further current code of your site and tell you how to sole the issue.
Regards,
Mall.
 

#2
Profile photo of Mall Staff 90620.00 $tone November 3, 2015
Public

 Hi Vladimir Ivanov,
I have checked the template file at app/design/frontend/default/jm_sporty/template/catalog/product/list.phtml in your site.
And i see that, you are make correctly needed update to sole the issue as you said at first question.

https://yadi.sk/i/pqnRzjrbk9vGC
https://yadi.sk/i/_HfjfRwFk9vBN

That issues was solved. Please have a look again.

After i done my site did not work on laptop. there are log’s…

=>That is some PHP warnings and notes, to clean this, i have created back-up and edited some files at:
/app/design/frontend/default/jm_sporty/template/joomlart/jmproducts/oneproduct.phtml
/app/code/local/JoomlArt/JmColorSwatch/Helper/Data.php
/app/design/frontend/default/jm_sporty/template/catalog/product/list.phtml
/app/design/frontend/default/jm_sporty/template/page/1column.phtml
/app/design/frontend/default/jm_sporty/template/catalog/product/view/media.phtml
and the log was clean now.
Have a look and contact me if you need further assistance!
Regards,
Mall.
 
 

#4

Please login or Register to Submit Answer

Written By

Comments