Hello,
:clap: Yes that was the problem, and now all is well.
Many thanks for your help.
here are the instructions I used:
Module name: Cross sell
Version: 1.3.0
Date: 03/30/2006 - updated by DrByte for v1.3.0
Author: Tony Corbett [email protected] ( portions of this module are ported from OSC author unknown)
- Forum name: Merlin
All feedback appreciated! - Just contact me or post a message in the support thread.
=========================
CORE FILES MODIFIED
Listed above with instruction on modification
=========================
DATABASE MODIFICATIONS
SQL file included with release.
=========================
VERSION HISTORY
Version 1.2.5 New rework by Merlin
Revised July 2005 by DrByte to add additional Zen-based overrides to the distro structure, making installation simpler.
Revised Sept 2005 by DrByte to simplify further for use with Zen Cart v1.2.6
Revised Dec 2005 by DrByte to work with Zen Cart v1.3.0. Simplified code again.
April 2006 - some minor fixes
=========================
INSTALLATION INSTRUCTIONS
BACK UP BACK UP BACK UP
-
Using the Admin->Tools->Install SQL Patch, run the included SQL file (products_xsell.sql)
-
Make sure to change the name of the following directories (from the ZIP) to match your template name:
/includes/modules/YOUR_TEMPLATE
web/includes/modules/
/includes/templates/YOUR_TEMPLATE
web/includes/templates/template_default/templates
/includes/languages/english/YOUR_TEMPLATE
web/includes/languages/spanish/classic
web/includes/extra_datafiles
-
Upload all supplied files in their approporiate folder structure... EXCEPT for the following:
/includes/templates/YOUR_TEMPLATE/templates/SAMPLE_ADDITION_TO_tpl_product_info_display_TEMPLATE_FILE.php
/includes/languages/english/YOUR_TEMPLATE/SAMPLE_ADDITIONS_TO_product_info_LANGUAGE_FILE.php
If you upload these example files, you may encounter template error messages due to the way overrides grab files.
(Do not upload the install.txt or products_xsell.sql files, as they are not needed on the server.)
-
Open includes/languages/english/product_info.php
or includes/languages/english/YOUR_TEMPLATE/product_info.php
and add:
define('TEXT_XSELL_PRODUCTS', 'We Also Recommend :');
define('TEXT_XSELL_PRODUCTS', 'Productos recomendados:');
just above the final ?> and save it into includes/languages/english/YOUR_TEMPLATE/product_info.php
The SAMPLE_ADDITIONS_TO_product_info_LANGUAGE_FILE.php can be used for this by copying its contents into product_info.php
4.b. - Repeat step 4 for each of the other product types you intend to use (ie: product_music_info, document_general_info, etc).
-
Now edit your product-info template file (includes/templates/templates_default/templates/tpl_product_info_display.php) and insert the following code
at the point where you wish the Cross-Sell box to appear. Usually best at the end of the file:
<?php
require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
?>
The SAMPLE_ADDITION_TO_tpl_product_info_display_TEMPLATE_FILE.php contains this same code, and you can copy/paste
from that file into your customized tpl_product_info_display.php
5.b. Repeat step 5 for any other product types for which you wish to enable cross-sell display.
(ie: tpl_product_music_info_display.php, etc)
- Upload your changes from step 4 / 4.b and step 5 / 5.b to your server.
Installation done.
=========================
INTRODUCTION
This module will allow you to add up to 6 optional products on your current products pages
( example ) You sell walkmans, may we also recomend batteries, case cd's etc.
=========================
HOW TO USE THIS MODULE
Adding Cross-Sell details:
Open Admin->Catalog->Cross Sell Products and pick a product to add products to. Hit edit, add products. Hit Save.
Configuring how many Cross-Sell items are displayed:
Admin->Configuration->MINimum Values->Display Cross-Sell Products (Enter the Min number of items required to display list)
Admin->Configuration->MAXimum Values->Display Cross-Sell Products (Enter the Max number of cross-sell items to show. 0 to disable site-wide)
Admin->Product Info->Cross-Sell Products Columns per Row (Enter the number of Cross-Sell items to show per row)
Admin->Product Info->Cross-Sell - Display Prices (Select whether to display prices in the list of cross-sell products)
=========================
CORE FILES MODIFIED
Listed above with instruction on modification
=========================
DATABASE MODIFICATIONS
SQL file included with release.
=========================
VERSION HISTORY
Version 1.2.5 New rework by Merlin
Revised July 2005 by DrByte to add additional Zen-based overrides to the distro structure, making installation simpler.
Revised Sept 2005 by DrByte to simplify further for use with Zen Cart v1.2.6
Revised Dec 2005 by DrByte to work with Zen Cart v1.3.0. Simplified code again.
April 2006 - some minor fixes