Zen Cart Logo
Forums / All Other Contributions/Addons / Cross sell add-on not working correctly for me?

Cross sell add-on not working correctly for me?

Locked

Views: 2,161

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Dec 2009, 7:59 AM
#1
togfather avatar

togfather

New Zenner

Join Date:
Dec 2009
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Cross sell add-on not working correctly for me?

Hello I am a newbie and have just installed zen cart. I added the cross sell feature but cannot make it work. I followed the instructions, but when I click on the catalog tab the cross sell option does not appear. I re-ran the sql file but the original must have worked because I get the message that those files already exist. Cross sell options do exist in the min and max files under the configuration tab and they are correctly set to 1 and 6, but there is no option for cross sell under the catalog tab.

I have uploaded all of the files in the zip file, but did notice that there is a folder called "Admin" in it which does not exist in the original shop cart, so I just uploaded the complete file.

I have obviously done something wrong, but can anyone tell me what it is?

Many thanks

Tog

27 Dec 2009, 10:10 PM
#2
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: Cross sell add-on not working correctly for me?

Your admin folder must have been renamed. When you login to your site the default URL is www.yourwebsite.com/admin. If you use something like www.yourwebsite.com/othername then the "admin" folder for Cross Sell should be renamed to "othername" before uploading the files. Hope that helps.

Togfather:

Hello I am a newbie and have just installed zen cart. I added the cross sell feature but cannot make it work. I followed the instructions, but when I click on the catalog tab the cross sell option does not appear. I re-ran the sql file but the original must have worked because I get the message that those files already exist. Cross sell options do exist in the min and max files under the configuration tab and they are correctly set to 1 and 6, but there is no option for cross sell under the catalog tab.

I have uploaded all of the files in the zip file, but did notice that there is a folder called "Admin" in it which does not exist in the original shop cart, so I just uploaded the complete file.

I have obviously done something wrong, but can anyone tell me what it is?

Many thanks

Tog

27 Dec 2009, 10:11 PM
#3
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: Cross sell add-on not working correctly for me?

Now I have a question for you. The instructions that I have for Cross Sell are in Spanish. Do you have an english translation? I don't want to guess and this installation. Many thanks.

28 Dec 2009, 8:57 PM
#4
togfather avatar

togfather

New Zenner

Join Date:
Dec 2009
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Cross sell add-on not working correctly for me?

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
  1. Using the Admin->Tools->Install SQL Patch, run the included SQL file (products_xsell.sql)

  2. 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

  1. 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.)

  2. 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).

  1. 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)

  1. 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