PROBLEM POPULAR BOOKS

BLOCK POPULAR BOOKS. When we click ADD TO CART, THE PRODUCT IS NOT ADDED TO CART.
A MESSAGE IS DISPLAYED “NO PRODUCT ON STAND.”
WHAT CAN BE ERROR?
HOW CAN TO CORRECT?

8 answers

Profile photo of Ziven Staff 82170.00 $tone October 13, 2015
Public

@Ricard,
I am sorry for not getting your points. It would be awesome if you can possibly include URL of your site and a screenshot with detailed explanation. I am happy to help you out.
Best Regards,
Ziven.

#1
Profile photo of Ziven Staff 82170.00 $tone October 13, 2015
Public

@Ricard,
Please PM me your site’s url, admin and ftp credentials, I’ll detect the root of issue for troubleshooting.
Best Regards,
Ziven.

#3
Profile photo of Ziven Staff 82170.00 $tone October 13, 2015
Public

Hi Ricard,
Here the file you can refer: app\design\frontend\default\jm_book\template\joomlart\joomlart\jmproducts\twoproduct.phtml
Best Regards,
Ziven.

#5
Profile photo of ricardohelisson 0.00 $tone October 13, 2015
Public

<div class=”jm-product-list <?php echo $config[‘mode’]; ?> jm-two-products clearfix”>
<div class=”listing-type-list category-products”>
<?php $_collectionSize = $listall?$listall->count():0 ?>
<?php

if(isset($baseconfig[“productgridnumbercolumn”])) :
$config[‘perrow’] = $baseconfig[“productgridnumbercolumn”];
endif;
?>
<?php $_columnCount = $config[‘perrow’]?$config[‘perrow’]:$this->getColumnCount(); ?>
<?php $i = 0;
$width = 100;
// — added by Duchh 15/12/2009
$thumbnailw = $config[‘width’];
$thumbnailh = $config[‘height’];
$numberchar = $config[‘max’];
if ($config[‘perrow’]) $width = 100/$config[‘perrow’];
$width = “style=\”width:{$width}%;\””;
$return = false;

?>
<?php if($_collectionSize){?>
<?php if($config[‘title’]){?>
<div class=”jm-products-list-title”>
<h2><?php echo $config[‘title’]; ?></h2>
</div>
<?php }; ?>
<div class=”products-list”>
<?php $i = 0; foreach ($listall->getItems() as $_product){
$product = Mage::getModel(‘catalog/product’)->load($_product->getId());
$attribute = $product->getResource()->getAttribute(‘label’);
if(is_object($attribute)){
$attdefaultvalue = $attribute->getDefaultValue();
$attributeValue = Mage::getModel(‘catalog/product’)->load($_product->getId())->getlabel();
$attributeValueName = Mage::getModel(‘catalog/product’)->load($_product->getId())->getAttributeText(‘label’);
}
if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
$labeltype = $attributeValueName;
}
else {
$labeltype = “”;
}
$i++;
?>
<div class=”item <?php if ($i==isset($_rowCount)) : echo “item-row-last”; endif; ?> <?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>” <?php echo $width; ?>>
<div class=”item-inner”>
<p class=”product-image”>
<a title=”<?php echo $this->htmlEscape($_product->getName()) ?>” href=”<?php echo $_product->getProductUrl() ?>”>
<img src=”<?php echo $this->helper(‘catalog/image’)->init($_product, ‘thumbnail’)->resize($thumbnailw, $thumbnailh)->setWatermarkSize(’30×10′); ?>” alt=”<?php echo $this->htmlEscape($_product->getName()) ?>”/>
</a>
</p>
<div class=”product-information”>
<h2 class=”product-name”>
<a title=”<?php echo $this->htmlEscape($_product->getName()) ?>” href=”<?php echo $_product->getProductUrl() ?>”>
<?php
if (strlen($_product->getName()) > 55) :
echo strip_tags(mb_substr($_product->getName(), 0, 35, ‘UTF-8′)).’…’;
else :
echo $_product->getName();
endif;
?>
</a>
</h2>

<?php if(is_object($product->getResource()->getAttribute(‘author’))) { ?>
<div class=”author”>
<?php echo $product->getData(“author”); ?>
</div>
<?php } ?>

<?php if($numberchar) : ?>
<p class=”pdescription”><?php echo mb_substr(nl2br($_product->getShortDescription()), 0, $numberchar, ‘UTF-8′).’…’;?></p>
<?php endif; ?>

<?php echo $this->getReviewsSummaryHtml($_product, true, true)?>

<?php echo $this->getPriceHtml($_product,true, ‘_jmproduct’) ?>

<?php if($_product->isSaleable()){ ?>
<button class=”button btn-cart” onclick=”setLocation(‘<?php echo $this->getAddToCartUrl($_product) ?>’)”>
<span><i class=”icon-shopping-cart”></i><?php echo $this->__(‘COMPRAR’);?></span>
</button>
<?php } else { ?>
<div class=”out-of-stock”><?php echo $this->helper(“catalog”)->__(‘Out of stock’) ?></div>
<?php } ?>
</div>
</div>
</div>
<?php }?>
</div>
<?php }?>
</div>
</div>

#7
Profile photo of Mall Staff 90700.00 $tone October 21, 2015
Public

Hi ricardohelisson,
There isn’t error in the code at template file: app\design\frontend\default\jm_book\template\joomlart\joomlart\jmproducts\twoproduct.phtml
I need a closer look to detect the root of issue in “POPULAR BOOKS” in your site.
Please provide me the admin and FTP credentials of your site, i will check further your site and tell you how to solve that issue.
Regards,
Mall.
 

#8

Please login or Register to Submit Answer

Written By

Comments