vn412 Posted November 8, 2009 Posted November 8, 2009 Hi, I am new to OScommerce. I just downloaded the demo. How can I use affiliates program so that I can pay them commision wise, if I got an order from their link. I have to transfer commission to their bank account notifying about the order. Currently I don't have this section in store. How can I get it. Any help in this matter will be appreciated. Thanks
multimixer Posted November 8, 2009 Posted November 8, 2009 this function is not part of the basic package you downloaded. You need to search for it in the add-Ons section, there are some solutions available My community profile | Template system for osCommerce - New: Responsive | Feedback channel
vn412 Posted November 8, 2009 Author Posted November 8, 2009 this function is not part of the basic package you downloaded. You need to search for it in the add-Ons section, there are some solutions available Is there any way I can download the complete package having such feature?
multimixer Posted November 8, 2009 Posted November 8, 2009 You need to install it your self, or to pay somebody to do it for you. Please note that it is not permitted to ask or offer paid help in the forum here My community profile | Template system for osCommerce - New: Responsive | Feedback channel
vn412 Posted November 9, 2009 Author Posted November 9, 2009 You need to install it your self, or to pay somebody to do it for you. Please note that it is not permitted to ask or offer paid help in the forum here I m new to osCommerce, I just want to get the free demo version link containing the affiliate feature, where I can download package, like I've downloaded the basic package. so that i can study it and implement it.
multimixer Posted November 9, 2009 Posted November 9, 2009 I told you already hat you need to search in the "add'ons" section How to find this section? There is a link at the top of this page, the second one from left to right called "add'ons". Click on it My community profile | Template system for osCommerce - New: Responsive | Feedback channel
vn412 Posted November 10, 2009 Author Posted November 10, 2009 I told you already hat you need to search in the "add'ons" section How to find this section? There is a link at the top of this page, the second one from left to right called "add'ons". Click on it have been attempting to install this module and seem to be stuck. I have installed the latest core shopping cart. I then went through the entire osC Affiliate contribution page and discovered that v2.8 was the last fully updated version of this module and started installing it according to the instruction in the INSTALL_ENG.txt file within the zipped download. I got down to the following part before I got stuck: ####################################################################### ########################################### ADMIN ALTERATIONS In index.php in the admin directory find line 13 approx require('includes/application_top.php'); and on a new line add the following code after it: require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); In index.php in the admin directory find line 50 approx array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))), and on a new line add the following code after it: array('title' => BOX_HEADING_AFFILIATE, 'image' => 'affiliate.gif', 'href' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate'), 'children' => array(array('title' => BOX_AFFILIATE, 'link' => tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')), array('title' => BOX_AFFILIATE_BANNERS, 'link' => tep_href_link(FILENAME_AFFILIATE_BANNERS, 'selected_box=affiliate')))), In index.php in the admin directory find line 106 approx <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2"> and replace that line with the following code : <td width="160" valign="top"><table border="0" width="160" height="390" cellspacing="0" cellpadding="2"> In index.php in the admin directory find lines 167 to 173 approx $contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' . BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' . BOX_ENTRY_REVIEWS . ' ' . $reviews['count']); $box = new box; echo $box->menuBox($heading, $contents); echo '<br>'; and on a new line add the following code after it: $affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " "; $affiliate_sales_query= tep_db_query($affiliate_sales_raw); $affiliate_sales= tep_db_fetch_array($affiliate_sales_query); $affiliate_clickthroughs_raw = "select count(*) as count from " . TABLE_AFFILIATE_CLICKTHROUGHS . " "; $affiliate_clickthroughs_query=tep_db_query($affiliate_clickthroughs_raw); $affiliate_clickthroughs= tep_db_fetch_array($affiliate_clickthroughs_query); $affiliate_clickthroughs=$affiliate_clickthroughs['count']; $affiliate_transactions=$affiliate_sales['count']; if ($affiliate_transactions>0) { $affiliate_conversions = tep_round($affiliate_transactions/$affiliate_clickthroughs,6)."%"; } else $affiliate_conversions="n/a"; $affiliate_amount=$affiliate_sales['total']; if ($affiliate_transactions>0) { $affiliate_average=tep_round($affiliate_amount/$affiliate_transactions,2); } else { $affiliate_average="n/a"; } $affiliate_commission=$affiliate_sales['payment']; $affiliates_raw = "select count(*) as count from " . TABLE_AFFILIATE . ""; $affiliates_raw_query=tep_db_query($affiliates_raw); $affiliates_raw = tep_db_fetch_array($affiliates_raw_query); $affiliate_number= $affiliates_raw['count']; $heading = array(); $contents = array(); $heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_AFFILIATES); $contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_AFFILIATES . ' ' . $affiliate_number . '<br>' . BOX_ENTRY_CONVERSION . ' ' . $affiliate_conversions . '<br>' . BOX_ENTRY_COMMISSION . ' ' . $currencies->display_price($affiliate_commission, '')); $box = new box; echo $box->menuBox($heading, $contents); echo '<br>'; ################################################################################ ################################## You see the index.php file on and/or around line 50 doesn't have the following code: ------- array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))), ------- on and/or around line 106 doesn't have the following code: ------- <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2"> ------- and lines 167 to 173 could not be part of this file because index.php only has 125 lines of code. So if someone would please advise me on what to do about this challenge and advise me on how to finish installing this module it would be greatly appreciated. Thank you
multimixer Posted November 11, 2009 Posted November 11, 2009 I have installed the latest core shopping cart. I then went through the entire osC Affiliate contribution page and discovered that v2.8 was the last fully updated version of this module What version of osCommerce did you download exactly? The contribution you want to install is written for version rc2a. If you have v3 it won't work. My community profile | Template system for osCommerce - New: Responsive | Feedback channel
hemantvdave Posted November 12, 2009 Posted November 12, 2009 What version of osCommerce did you download exactly? The contribution you want to install is written for version rc2a. If you have v3 it won't work. if you get the affiliates up and running please do let me know i need it badely for my site www.patangdori.com
hemantvdave Posted November 12, 2009 Posted November 12, 2009 thank you sir for reply can i install affiliates 2.8 on my existing site www.patangdori.com what changes i need to do to get it working please educate me and please let me know if any site has already install it so i can check the functions ...
multimixer Posted November 12, 2009 Posted November 12, 2009 thank you sir for reply can i install affiliates 2.8 on my existing site www.patangdori.com what changes i need to do to get it working please educate me and please let me know if any site has already install it so i can check the functions ... First of all, are you sure you have osCommerce running and not some other type of e-commerce software? I get an "miD" instead of an "osCsid". I any case you have either a template or custom made store, so, first of all I would ask the one who made it or at the place where I bought it My community profile | Template system for osCommerce - New: Responsive | Feedback channel
hemantvdave Posted November 12, 2009 Posted November 12, 2009 its an osc store i created and added stylesheet from yabo templates its version "osCommerce Online Merchant v2.2 RC2" please little changes here and there it no more looks like osc i am not sure why u get MId
multimixer Posted November 12, 2009 Posted November 12, 2009 If you did the store your self, then you probably know about the miD Did you read the affiliates contribution installation instructions? Where exactly is the problem? There is 1 more thing to read --> How to install a contribution My community profile | Template system for osCommerce - New: Responsive | Feedback channel
vn412 Posted November 14, 2009 Author Posted November 14, 2009 What version of osCommerce did you download exactly? The contribution you want to install is written for version rc2a. If you have v3 it won't work. Thanks for Reply I could not get version 2.8. I have downloaded v2.2rc1 of osCommerce. I m having problem in affiliate program. The file affiliate_affiliates.php is miising in the catalog directory, there is affiliate_affiliate.php file in version i downloaded(oscaffiliate 2.0 to install affiliate program). When I click affiliate log-in link it goes to affiliate_affiliates.php and error comes page not found. Thanks
vn412 Posted November 16, 2009 Author Posted November 16, 2009 Thanks for Reply I could not get version 2.8. I have downloaded v2.2rc1 of osCommerce. I m having problem in affiliate program. The file affiliate_affiliates.php is miising in the catalog directory, there is affiliate_affiliate.php file in version i downloaded(oscaffiliate 2.0 to install affiliate program). When I click affiliate log-in link it goes to affiliate_affiliates.php and error comes page not found. Thanks I changed the line define('FILENAME_AFFILIATE', 'affiliate_affiliates.php'); in database_tables.php to define('FILENAME_AFFILIATE', 'affiliate_affiliate.php'); Its solved. I could not get the affiliate tab in admin section? Stuck again.
vn412 Posted November 16, 2009 Author Posted November 16, 2009 have been attempting to install this module and seem to be stuck. I have installed the latest core shopping cart. I then went through the entire osC Affiliate contribution page and discovered that v2.8 was the last fully updated version of this module and started installing it according to the instruction in the INSTALL_ENG.txt file within the zipped download. I got down to the following part before I got stuck: ####################################################################### ########################################### ADMIN ALTERATIONS In index.php in the admin directory find line 13 approx require('includes/application_top.php'); and on a new line add the following code after it: require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); In index.php in the admin directory find line 50 approx array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))), and on a new line add the following code after it: array('title' => BOX_HEADING_AFFILIATE, 'image' => 'affiliate.gif', 'href' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate'), 'children' => array(array('title' => BOX_AFFILIATE, 'link' => tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')), array('title' => BOX_AFFILIATE_BANNERS, 'link' => tep_href_link(FILENAME_AFFILIATE_BANNERS, 'selected_box=affiliate')))), In index.php in the admin directory find line 106 approx <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2"> and replace that line with the following code : <td width="160" valign="top"><table border="0" width="160" height="390" cellspacing="0" cellpadding="2"> In index.php in the admin directory find lines 167 to 173 approx $contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' . BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' . BOX_ENTRY_REVIEWS . ' ' . $reviews['count']); $box = new box; echo $box->menuBox($heading, $contents); echo '<br>'; and on a new line add the following code after it: $affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " "; $affiliate_sales_query= tep_db_query($affiliate_sales_raw); $affiliate_sales= tep_db_fetch_array($affiliate_sales_query); $affiliate_clickthroughs_raw = "select count(*) as count from " . TABLE_AFFILIATE_CLICKTHROUGHS . " "; $affiliate_clickthroughs_query=tep_db_query($affiliate_clickthroughs_raw); $affiliate_clickthroughs= tep_db_fetch_array($affiliate_clickthroughs_query); $affiliate_clickthroughs=$affiliate_clickthroughs['count']; $affiliate_transactions=$affiliate_sales['count']; if ($affiliate_transactions>0) { $affiliate_conversions = tep_round($affiliate_transactions/$affiliate_clickthroughs,6)."%"; } else $affiliate_conversions="n/a"; $affiliate_amount=$affiliate_sales['total']; if ($affiliate_transactions>0) { $affiliate_average=tep_round($affiliate_amount/$affiliate_transactions,2); } else { $affiliate_average="n/a"; } $affiliate_commission=$affiliate_sales['payment']; $affiliates_raw = "select count(*) as count from " . TABLE_AFFILIATE . ""; $affiliates_raw_query=tep_db_query($affiliates_raw); $affiliates_raw = tep_db_fetch_array($affiliates_raw_query); $affiliate_number= $affiliates_raw['count']; $heading = array(); $contents = array(); $heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_AFFILIATES); $contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_AFFILIATES . ' ' . $affiliate_number . '<br>' . BOX_ENTRY_CONVERSION . ' ' . $affiliate_conversions . '<br>' . BOX_ENTRY_COMMISSION . ' ' . $currencies->display_price($affiliate_commission, '')); $box = new box; echo $box->menuBox($heading, $contents); echo '<br>'; ################################################################################ ################################## You see the index.php file on and/or around line 50 doesn't have the following code: ------- array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))), ------- on and/or around line 106 doesn't have the following code: ------- <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2"> ------- and lines 167 to 173 could not be part of this file because index.php only has 125 lines of code. So if someone would please advise me on what to do about this challenge and advise me on how to finish installing this module it would be greatly appreciated. Thank you Is this is the reason I can't find affiliates tab in my admin section? Please help me out I m having oscommerce2.2Rc1 version. My admin/index.php only has 125 lines of code. I can't do the alterations suggested above for affiliation. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.