Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / 2 images and 2 product titles in shopping cart

2 images and 2 product titles in shopping cart

Locked
This thread is locked. New replies are disabled.
14 Sep 2010, 1:17 PM
#1
alexsmith2709 avatar

alexsmith2709

New Zenner

Join Date:
May 2010
Posts:
36
Plugin Contributions:
0

Post #1 by alexsmith2709

Hi,
I've just come across a little problem with my site.
When i add a product to the shopping cart 2 product images are shown as are 2 product titles. I dont have a live site so i have included a screenshot of whats going on.

I am using version 1.3.9f and i have installed the following mods:

  • Confirm Email Address Entry
  • Edit Cart
  • Edit Orders
  • How Did You Hear About Us
  • Stock by Attributes Multiadd with Table Filter
  • UK Counties SQL Script for Royalmail

I have searched my problem but i cannot find any help.

14 Sep 2010, 1:38 PM
#2
alexsmith2709 avatar

alexsmith2709

New Zenner

Join Date:
May 2010
Posts:
36
Plugin Contributions:
0

Post #2 by alexsmith2709

Ok, i have fixed the problem.
Here is the solution for anyone else experiencing the same problem.

In tpl_shopping_cart_default.php around line 85 you have the following edit:

//================================Start of Edit_Cart mod Justin =================================================================
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
//===============================================================================================================================
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle">
<?php echo $product['productsName'];
if(!empty($product['attributes'])) {
echo '<br />[click to edit]';
}
echo '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a> 
//================================End Edit_Cart mod Justin =================================================================

You will need to edit this to look like:

       <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle">
<?php
if(!empty($product['attributes'])) {
echo '<br />[click to edit]';
}
echo '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

That is how i fixed it, unless there is a better way of doing it i'll stick with this!