Hey,
In system / library / cart.php
Find:
Add After:
In catalog / controller / checkout / cart.php
Find:
Add After (Whole Description):
Or Add After (400 Character Snippet):
Find:
Add After (Whole Description):
Or Add After (400 Character Snippet):
In catalog / view / theme / <your theme> / template / checkout / cart.tpl
Find:
Before Add:
I've also added a horizontal line <hr> between the description and product options so they are visibly separated.
Just a quick note that adding the descriptions will throw off the table column widths a little, but this can be fixed by changing
In catalog / view / theme / <your theme> / template / checkout / cart.tpl
Find:
Replace With:
All of these changes can be found in the attached vQmod. Just remove whatever features you don't need.
*EDIT - The most up-to-date version of this vQmod can be found here:
My Site: http://opencartaddons.com/product-description-in-cart
OpenCart: http://www.opencart.com/index.php?route ... on_id=4682
This mod should work on any OpenCart v1.5.x, but it has only been tested with v1.5.1.3.
The final result should look similar to this: Cheers,
Joel.
In system / library / cart.php
Find:
Code: Select all
'name' => $product_query->row['name'],
Code: Select all
'description' => $product_query->row['description'],
Find:
Code: Select all
'name' => $product['name'],
Code: Select all
'description' => htmlspecialchars_decode($product['description']),
Code: Select all
'description' => htmlspecialchars_decode(substr($product['description'],0,400)) . '...',
Code: Select all
'name' => $result['name'],
Code: Select all
'description' => htmlspecialchars_decode($result['description']),
Code: Select all
'description' => htmlspecialchars_decode(substr($result['description'],0,400)) . '...',
Find:
Code: Select all
<?php foreach ($product['option'] as $option) { ?>
Code: Select all
<small><?php echo strip_tags($product['description']); ?></small>
<hr align="center" />
Just a quick note that adding the descriptions will throw off the table column widths a little, but this can be fixed by changing
In catalog / view / theme / <your theme> / template / checkout / cart.tpl
Find:
Code: Select all
<td class="remove"><?php echo $column_remove; ?></td>
<td class="image"><?php echo $column_image; ?></td>
<td class="name"><?php echo $column_name; ?></td>
<td class="model"><?php echo $column_model; ?></td>
<td class="quantity"><?php echo $column_quantity; ?></td>
<td class="price"><?php echo $column_price; ?></td>
<td class="total"><?php echo $column_total; ?></td>
Code: Select all
<td class="remove" width="50px"><?php echo $column_remove; ?></td>
<td class="image"><?php echo $column_image; ?></td>
<td class="name"><?php echo $column_name; ?></td>
<td class="model" width="75px"><?php echo $column_model; ?></td>
<td class="quantity" width="75px"><?php echo $column_quantity; ?></td>
<td class="price" width="75px"><?php echo $column_price; ?></td>
<td class="total" width="75px"><?php echo $column_total; ?></td>
*EDIT - The most up-to-date version of this vQmod can be found here:
My Site: http://opencartaddons.com/product-description-in-cart
OpenCart: http://www.opencart.com/index.php?route ... on_id=4682
This mod should work on any OpenCart v1.5.x, but it has only been tested with v1.5.1.3.
The final result should look similar to this: Cheers,
Joel.
Last edited by OpenCart Addons on Thu Jan 19, 2012 1:36 am, edited 1 time in total.
Thank you for your support and extensionOpenCart Addons wrote:Hey,
In system / library / cart.php
Find:Add After:Code: Select all
'name' => $product_query->row['name'],
In catalog / controller / checkout / cart.phpCode: Select all
'description' => $product_query->row['description'],
Find:Add After (Whole Description):Code: Select all
'name' => $product['name'],
Or Add After (400 Character Snippet):Code: Select all
'description' => htmlspecialchars_decode($product['description']),
Find:Code: Select all
'description' => htmlspecialchars_decode(substr($product['description'],0,400)) . '...',
Add After (Whole Description):Code: Select all
'name' => $result['name'],
Or Add After (400 Character Snippet):Code: Select all
'description' => htmlspecialchars_decode($result['description']),
In catalog / view / theme / <your theme> / template / checkout / cart.tplCode: Select all
'description' => htmlspecialchars_decode(substr($result['description'],0,400)) . '...',
Find:Before Add:Code: Select all
<?php foreach ($product['option'] as $option) { ?>
I've also added a horizontal line <hr> between the description and product options so they are visibly separated.Code: Select all
<small><?php echo strip_tags($product['description']); ?></small> <hr align="center" />
Just a quick note that adding the descriptions will throw off the table column widths a little, but this can be fixed by changing
In catalog / view / theme / <your theme> / template / checkout / cart.tpl
Find:Replace With:Code: Select all
<td class="remove"><?php echo $column_remove; ?></td> <td class="image"><?php echo $column_image; ?></td> <td class="name"><?php echo $column_name; ?></td> <td class="model"><?php echo $column_model; ?></td> <td class="quantity"><?php echo $column_quantity; ?></td> <td class="price"><?php echo $column_price; ?></td> <td class="total"><?php echo $column_total; ?></td>
All of these changes can be found in the attached vQmod. Just remove whatever features you don't need.Code: Select all
<td class="remove" width="50px"><?php echo $column_remove; ?></td> <td class="image"><?php echo $column_image; ?></td> <td class="name"><?php echo $column_name; ?></td> <td class="model" width="75px"><?php echo $column_model; ?></td> <td class="quantity" width="75px"><?php echo $column_quantity; ?></td> <td class="price" width="75px"><?php echo $column_price; ?></td> <td class="total" width="75px"><?php echo $column_total; ?></td>
This mod should work on any OpenCart v1.5.x, but it has only been tested with v1.5.1.3.
The final result should look similar to this: Cheers,
Joel.
Joel, please, I need your help.
The product option appears in cart like that: - option1: Intel Core 2 Duo pr..
How to show the entire text, like that: - option1: Intel Core 2 Duo processor Powered by an Intel Core 2 Duo
Thank you very much.
The product option appears in cart like that: - option1: Intel Core 2 Duo pr..
How to show the entire text, like that: - option1: Intel Core 2 Duo processor Powered by an Intel Core 2 Duo
Thank you very much.
Hi,
any Idea how to show the product description in OC 1.5.5.1?
any Idea how to show the product description in OC 1.5.5.1?
--
South Africa, Johannesburg GMT +2
Who is online
Users browsing this forum: No registered users and 23 guests