Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Supplier Admin Area Contribution


Guest

Recommended Posts

I've tried installing this twice now and haven't been able to get it working.

 

If anyone has successfully installed this contribution, can you please post your supplier_area_top.php?

 

I'm still unable to login as a supplier. I'm having the same problem others have mentioned - the login page just refreshes when I hit the submit button.

 

 

Did you ever manage to solve this problem?

 

I've got everything installed seems to be fine but cannot login through the Supplier_admin sections.

 

Thanks in advacnce.

 

Marti

Link to comment
Share on other sites

Cool , does it work OSC 2.2RC2a version?? or still remain for 2.2 version as stated in the contribution page??

 

Yes, it's working without any issue on my development server.

 

If anyone has successfully installed this contribution, can you please post your supplier_area_top.php?

 

No problem mate:

 

<?php
	if (!tep_session_is_registered('login'))
		tep_session_register('login');

if (isset($HTTP_POST_VARS['sbmSubmit'])){
	$suppliers_name = $HTTP_POST_VARS['txtSuppliername'];
	$password = $HTTP_POST_VARS['txtPassword'];
	$password = md5($password);
	$suppliers_query = tep_db_query("select * from " . TABLE_SUPPLIERS . " where suppliers_name = '" . $suppliers_name . "' and suppliers_password = '" . $password . "'");
	$suppliers_rows = tep_db_num_rows($suppliers_query);
	$suppliers_result = tep_db_fetch_array($suppliers_query);
	if ($suppliers_rows >= 1){
	$login = $suppliers_result['suppliers_id'];
	if (!tep_session_is_registered('suppliers_login'))
		tep_session_register('suppliers_login');
		$login = $suppliers_result['suppliers_id'];
	}
	else
		$err_message = "Error message: Username or Password is wrong. Please try again.!";
}	

if (!tep_session_is_registered('suppliers_login')){
//if (!isset($_SESSION['suppliers_login'])){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title>Supplier Admin Area</title>
<style type="text/css"><!--
.style1 {color: #FF0000}
a { color:#080381; text-decoration:none; }
a:hover { color:#aabbdd; text-decoration:underline; }
a.text:link, a.text:visited { color: #000000; text-decoration: none; }
a:text:hover { color: #000000; text-decoration: underline; }
a.main:link, a.main:visited { color: #7187BB; text-decoration: none; }
A.main:hover { color: #D3DBFF; text-decoration: underline; }
a.sub:link, a.sub:visited { color: #dddddd; text-decoration: none; }
A.sub:hover { color: #dddddd; text-decoration: underline; }
a:link.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none; }
a:visited.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none }
a:active.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none; }
a:hover.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: underline; }

#.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #000000; }
.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 22px; font-weight: bold; line-height: 1.5; color: #D3DBFF; }
.main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; line-height: 1.5; color: #000000; }
.sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }
.text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; line-height: 1.5; color: #000000; }
#.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #093570; border-color: #093570; border-style: solid; border-width: 1px; }
.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #7187bb; border-color: #7187bb; border-style: solid; border-width: 1px; }
.infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #080381; background-color: #ffffff; border-color: #7187bb; border-style: solid; border-width: 1px; }
.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

.menusub { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

//--></style>
</head>
<body marginwidth="50" marginheight="100" topmargin="100" bottommargin="50" leftmargin="50" rightmargin="50" bgcolor="#FFFFFF">
<center>
<table border="0" width="400" style="border: 1px solid black " cellpadding="0" cellspacing="0">
<tr>
	<td height="50" colspan="2"></td>
</tr>
<tr style="vertical-align:top">
	<td>
	<form method="post" name="frmLogin" enctype="multipart/form-data" action="">
		<table border="0" width="100%" cellpadding="2" cellspacing="2" class="text">
			<tr height="25" class="menuBoxHeading"><td class="heading" colspan="2">Login</td></tr>
			<tr>
				<td>Supplier name:</td><td><input name="txtSuppliername" type="text" size="30" class="text"></td>
			</tr>
			<tr>
				<td>Password:</td><td><input name="txtPassword" type="password" size="30" class="text"></td>
			</tr>
			<tr>
				<td align="right"><input name="sbmSubmit" type="submit" value="Submit" class="text"></td>
				<td align="left"><input name="rstReset" type="reset" value="Reset" class="text"></td>
			</tr>
		</table>
	</form>
	</td>
<tr><td><?php echo $err_message?></td></tr>
</tr>
</table>
</center>
</body>
</html>
<?php
exit();
}
?>

 

Although I'm still not sure what suppliers_group_id does tongue.gif

this from original code, which I tried to check, but sounds like access is based on supplier group and username and password.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

I personally picked up this module debugged for 2 hours, as the original state has several major bugs.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Hi all, i have a BIG problem cause i dont know why, my supplier area dont shows.. sorry for my english.

 

When i log with a newmember user, show this fucked window !!!! :angry:

 

helpe.jpg

 

 

arrhh

 

why? where is the other parts.. :'(

 

 

PLEASE help me.

 

Thanks,

 

Juan

 

Hey people, i need help, anyone know whats happened ? Dont shows any errors, only white page..

 

Plz, any1?

 

Hugs

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 1 month later...

Hey people, i need help, anyone know whats happened ? Dont shows any errors, only white page..

 

Plz, any1?

 

Hugs

 

don't forget to update the supplier config.php file

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Did anyone really fix the nr. of purchased products bug?

(bought 3, shown only one)

I have installed v1.2 but nothing changed.

Pls help me.

No other pb besides that

 

Yes, I have fixed this issue, but I need to put all together as it's currently on one of my client project.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

At this moment found new bug, which is from original code - the percentage for every supplier simply doesn't work.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

The module is updated now.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Problem: In the osC admin section, the supplieradmin.php page will not load the forms to add new suppliers or edit existing suppliers. There is only a blank page. I manually entered a supplier into the database and the supplieradmin page can successfully connect to the database as it displays the manually entered supplier. Why would I receive a blank white page after clicking "Insert" on the supplieradmin.php page?

 

Thanks for this contribution!

Link to comment
Share on other sites

Why would I receive a blank white page after clicking "Insert" on the supplieradmin.php page?

any error logs from server? as I have tested on 2 different servers and both of them working without any issue.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

any error logs from server? as I have tested on 2 different servers and both of them working without any issue.

 

hi web,

 

i do not have any error logs. is there a specific log that would point me in the right direction? I'm on shared hosting so I'm not sure how much info I have access to on the web server my site is on.

 

I have included two images though: the first is what I see right after i click the supplier link in the admin section on the left side box. The second is immediately after I click the insert button. I'm guessing the issue is something to do with the arrays that are triggered when the insert button is clicked? Interestingly enough, the delete button/array works fine when I click that button for the supplier I manually entered into the database.

 

Image 1:

supplieradmin_initialload.jpg

 

Image 2:

supplieradmin_afterinsert.jpg

Link to comment
Share on other sites

I'm on shared hosting so I'm not sure how much info I have access to on the web server my site is on.

do you use any control panel for the hosting account?

 

I just re-checked on the 3rd server and still couldn't find issue with admin side of supplier admin.

 

What sort of version of supplier admin module do you use?

 

Have you patched the /catalog/admin/includes/functions/html_output.php file?

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

do you use any control panel for the hosting account?

 

I just re-checked on the 3rd server and still couldn't find issue with admin side of supplier admin.

 

What sort of version of supplier admin module do you use?

 

Have you patched the /catalog/admin/includes/functions/html_output.php file?

 

My hosting is on hsphere control panel.

 

My supplier admin module is v1.3.

 

I have added the function to the end of the admin html_output.php file.

 

Thanks for your assistance with this.

Link to comment
Share on other sites

Can you plz tell me how can i fix the statistic issue for the products bought? or where the problem is?

I installed the latest version 1.3 and still doesn't fix the problem. At least for me...

 

 

Great add-on and thanx for all your work.

Link to comment
Share on other sites

Can you plz tell me how can i fix the statistic issue for the products bought? or where the problem is?

I installed the latest version 1.3 and still doesn't fix the problem. At least for me...

 

 

Great add-on and thanx for all your work.

 

I will check this issue.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

So I narrowed down at least one problem and I could use some guidance again..By commenting out the following line in "suppliersadmin.php," I was able to get the form allowing me to add a supplier to show.

 

$contents[] = array('text' => '<br>' . TEXT_SUPPLIERS_CATEGORIES . '<br>' . tep_draw_mselect_menu('categories[]', $categories, $categories_selected));

 

I've added the function being called (tep_draw_mselect_menu) to html_output.php as directed in the install txt file. I'm not sure if the call is sending the information the function is expecting.

 

html_output.php code

function tep_draw_mselect_menu($name, $values, $selected_vals, $params = '', $required = false) {

 

suppliersadmin.php function call

tep_draw_mselect_menu('categories[]', $categories, $categories_selected));

 

I'm wondering which parameter(s) is causing the problem. Any assistance would be appreciated.

Link to comment
Share on other sites

  • 2 weeks later...

At this moment found new bug, which is from original code - the percentage for every supplier simply doesn't work.

 

Can't get the percentage to work with your latest version. Can you give the bugfix??

thanks in advance.

Martin

Link to comment
Share on other sites

Hi,

 

I install the Supplier_Admin_V_1.3 but Do not see the supplier box in the left admin menu.

 

I run the SQL Script to modify and create the tables then copy the catalog directory and files in the oscommerce root directory and then copy and then replace and add the folders in the catalog with the modified files directory.

 

What I make bad o what more things do to I need make?

 

when I go to http://www.your-domain.com/catalog/supplier/supplier_area.php

 

I see this warning

 

 

Warning: require(/var/www/vhosts/yourdomain.com/httpdocs//admin/includes/functions/compatibility.php) [function.require]: failed to open stream: No such file or directory in /home/tuon/public_html/ExCo/catalog/supplier/includes/application_top.php on line 34

 

Fatal error: require() [function.require]: Failed opening required '/var/www/vhosts/yourdomain.com/httpdocs//admin/includes/functions/compatibility.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tuon/public_html/ExCo/catalog/supplier/includes/application_top.php on line 34

Link to comment
Share on other sites

  • 4 weeks later...

I guess the problem is with the configure.. but i cannot find the way to solve.

The error is the same:

 

Warning: require(/home/wi930872/public_html/shop/catalog/admin/includes/functions/compatibility.php) [function.require]: failed to open stream: No such file or directory in \\hmfsw\web\dtcwin093\robbierendo.com.ar\public_html\shop\catalog\supplier\includes\application_top.php on line 34

 

Fatal error: require() [function.require]: Failed opening required '/home/wi930872/public_html/shop/catalog/admin/includes/functions/compatibility.php' (include_path='.;E:\php5\ext;E:\php5\PEAR;E:\php5\PhpCommon') in \\hmfsw\web\dtcwin093\robbierendo.com.ar\public_html\shop\catalog\supplier\includes\application_top.php on line 34

 

This is my shop/catalog/supplier/includes/configure.php

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.robbierendo.com.ar'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.robbierendo.com.ar/');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/wi930872/public_html/shop/catalog/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_S_ADMIN', 'supplier/');

define('DIR_WS_ADMIN', 'admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_FS_S_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_S_ADMIN);

// define our Catalog path / or /catalog/

define('DIR_WS_CATALOG', '/shop/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', DIR_WS_ADMIN . '/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '/images/');

define('DIR_WS_INCLUDES', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN . 'includes/');

define('DIR_WS_SUPPLIER_INCLUDES', DIR_FS_DOCUMENT_ROOT . DIR_WS_S_ADMIN . '/supplier/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'ESTO ESTA BIEN');

define('DB_SERVER_PASSWORD', 'ESTO ESTA BIEN');

define('DB_DATABASE', 'ESTO ESTA BIEN');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

I need some help, please, this is my third day around these... thanks!

 

Daniela

Edited by DanielaQ
Link to comment
Share on other sites

I would be really interested in using this mod. But I just don't have time to debug unfinished code. I would appreciate it if you would let us know when this is really, finally ready to be used in a live site. We are in the process of setting up our first on-line store front and just don't have the time to invest in a mod that's not ready for "prime time". It's everything we can do just to get the store configured and loaded with inventory. I'd hate to start introducing errors from a mod that is just not ready.

 

This mod seems it might be a good fit for store owners who use dropshippers, which is what we are doing. There are no "suppliers" as you are applying it, but we need a way to define where a product comes from and what the upcharges are for each dropshipper. I will follow the progress with interest.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...