After importing, products images are very large

From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search

NOTE: This article is actual for Avactis 1.9.x. For other versions get information from Avactis support service

The images size information cannot be imported. If after importing of the products the images are very large, replace the following part of code:

<?php ProductSmallImage(); ?>

with this one:

<img src="<?php ProductSmallImageSrc(); ?>" width="<?php if (getValProductSmallImageWidth()<170) {ProductSmallImageWidth();} else {echo '170';}; ?>" alt="" />

in the following files:

themes\system\catalog\bestsellers\default\bestsellers-item.tpl.html

themes\system\catalog\featured-products\default\featured-products-item.tpl.html

themes\system\catalog\product-list\default\product-list-item.tpl.html

themes\system\catalog\product-list\default\product-list-item-out-of-stock.tpl.html

themes\system\catalog\product-set\carousel\product-set-item.tpl.html

themes\system\catalog\product-set\carousel\product-set-item-out-of-stock.tpl.html

themes\system\catalog\product-set\default\product-set-item.tpl.html

themes\system\catalog\product-set\default\product-set-item-out-of-stock.tpl.html

themes\system\catalog\product-set\rand\product-set-item.tpl.html

themes\system\catalog\product-set\rand\product-set-item-out-of-stock.tpl.html

themes\system\catalog\related-products\default\related-products-item.tpl.html


Change 170 to another value, if necessary.