Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Discount for Recommended/Cross Sell Products

    To get this done, you need the Cross Sell addon and the Better Together addon

    I want to offer a discount for recommended products that are linked with the Advanced cross sell addon. The Better Together Addon can do this but the discounts have to be hard coded in the Setup function in .../includes/modules/order_total/ot_better_together.php.

    To discount all cross referenced products, add the following SQL query to the setup function

    Code:
     function setup() {
      global $db;
      $bt_query = $db->Execute("select distinct products_id, xsell_id from " . TABLE_PRODUCTS_XSELL ); 
      while (!$bt_query->EOF) {	$this->add_prod_to_prod($bt_query->fields['products_id'], $bt_query->fields['xsell_id'], "%", 15);
      $bt_query->MoveNext();
    	}
    }
    This is for 15% discount of the cheaper of the two items. Change discount to % and $ amount that you like.

    I add a text to in /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_xsell_products.php to promote the discount.

    In addition I dont send customers to the shopping cart after they have added a product so that they have the chance to go to the recommended product directly.
    Setting in Configuration > My Store > Display Cart After Adding Product = false

    Hope this will boost sales.

    You can visit my website to see how it looks like.
    Last edited by tino.schlegel; 29 Oct 2009 at 03:22 AM. Reason: Add more information

 

 

Similar Threads

  1. Which one? Multi Cross Sell vs Ultimate Cross Sell?
    By Renz in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Jul 2013, 08:30 AM
  2. v150 Can I bulk upload related products by using Ultimate Cross Sell for Zen Cart
    By hagohn in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Aug 2012, 04:50 PM
  3. Special Quantity Discount - Cross Sell?
    By JorgeR in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 Oct 2011, 07:59 PM
  4. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  5. Related Products Recommended by Category, Automatically - Automatic Cross Sell
    By wolfderby in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 5 Jan 2010, 10:37 PM

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