Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Posts
    36
    Plugin Contributions
    0

    Default 2 images and 2 product titles in shopping cart

    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.
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2010
    Posts
    36
    Plugin Contributions
    0

    Default Re: 2 images and 2 product titles in shopping cart

    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:
    PHP Code:
    //================================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:
    PHP Code:
           <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!

 

 

Similar Threads

  1. Replies: 12
    Last Post: 7 Nov 2011, 09:15 PM
  2. changing titles in shopping cart
    By tellam in forum General Questions
    Replies: 5
    Last Post: 5 Mar 2009, 11:59 PM
  3. Changing Shopping Cart images and filtering products
    By bugstumper in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Aug 2008, 01:54 PM
  4. Replies: 2
    Last Post: 26 Jun 2008, 05:42 PM
  5. Replies: 9
    Last Post: 23 Jan 2007, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg