Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Supplier Admin Area Contribution


Guest

Recommended Posts

Supplier Admin Area

 

It's a contribution that allows you to create some suppliers and set a markup percentage for each one and select which categories they can add their products to with a login name and password.

 

The suppliers can then login to their own pages where they can add products to their categories entering the cost price that they sell the product to you for. The front of the shop will show the list price determined by the markup on cost you had set for that supplier.

 

The suppliers can only see and modify their own products and not any other suppliers.

 

Once installed you will have a supplier box in the left admin menu where you add new suppliers, select there markup % and also which categories they can add products too.

The supplier can login to add their products to your store at

http://www.your-domain.com/catalog/supplier_area.php

Here they can add products as well as being able to see how many items they have sold through your store each month..

Link to comment
Share on other sites

 

 

I sell downloaded items.. and I only want the labels to be able to login and see how many downloads have been sold.. I don't want them to have the ability to do anything else...

 

Can I use this for that?

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

also, would it be possible to provide an sql file that I can just upload through myphpadmin like some of the other contributions provide. I've followed all the installation instructions but I'm not comfortable editing the tables and such in mysql

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

I have installed the contrib.

 

I can access the supplier_area.php from mysite.com/myadminpath/supplier_area.php and it will work but this is not good because I don't want people to have to log into the admin first.

 

Is it supposed to work this way?

 

Are they supposed to login from mysite.com/supplier/supplier_area.php, mysite.com/supplier_area.php or mysite.com/myadminpath/supplier_area.php? It is a little confusing.

 

I am getting various error messages when I try from either mysite.com/supplier/supplier_area.php or mysite.com/supplier_area.php.

 

If it is supposed to work from those links I will post the error messages I am getting.

 

Thank you for taking the time compile and post this, it must have taking you some time to create.

Link to comment
Share on other sites

I have installed the contrib.

 

I can access the supplier_area.php from mysite.com/myadminpath/supplier_area.php and it will work but this is not good because I don't want people to have to log into the admin first.

 

Is it supposed to work this way?

 

Are they supposed to login from mysite.com/supplier/supplier_area.php, mysite.com/supplier_area.php or mysite.com/myadminpath/supplier_area.php? It is a little confusing.

 

I am getting various error messages when I try from either mysite.com/supplier/supplier_area.php or mysite.com/supplier_area.php.

 

If it is supposed to work from those links I will post the error messages I am getting.

 

Thank you for taking the time compile and post this, it must have taking you some time to create.

 

 

yes they are supposed to login first... otherwise how would the suppliers be able to see only THEIR INFORMATION?

 

I installed it and the sql and I'm getting a few errors.. but i'm going to try to fix it before posting again..

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

If you have a kid friendly site.. you might want to modifying the following lines

 

define('TEXT_DELETE_CATEGORY_INTRO', 'STOP! What The FUCK are you doing? Are you sure you want to delete this category?');
define('TEXT_DELETE_PRODUCT_INTRO', 'STOP! What The FUCK are you doing? Are you sure you want to permanently delete this product?');

 

in the

 

admin/includes/languages/english/supplier_s_categories_products.php

 

file... :-"

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

this thing has alot of errors and some missing files...

and when you click on the helpdesk and crap inside... it takes you to a CRE page.. which leads me to believe that this wasn't coded directly for Oscommerce..

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

:(( Hello...

I've try this contribution but...an error occured

 

The following pictures will explain everything...... :thumbsup: Please help me...

1.jpg

 

2.jpg

 

you can fix this by going to:

in "admin/includes/langauge/english.php

 

and adding the following lines before the "?>":

 

define('BOX_CATALOG_SUPPLIERS', 'Record Label Admin');

define('BOX_SUPPLIERS', 'Record Labels');

 

I change mine to say Record Labels instead of suppliers but you can make it say whatever you want...

 

I'm making heading with this contribution but there are still a few errors...

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

Ok here are the final issues i'm having with this contribution...

 

1. there's no way to "log off"

2. sometimes when I login... i'm shown the sales of everyone on the site

3. on the "stats" page I have the following errors:

Error: There is currently no default currency set. Please set one at: Administration Tool->Localization->Currencies

ERROR_NO_DEFAULT_LANGUAGE_DEFINED

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

This is a great Original contributiion.

I have installed it . But I get the following error when I try to click on the

 

http://www.XXXXX.com/catalog/supplier/supplier_area.php

 

 

Warning: main(../idadmin/includes/functions/database.php): failed to open stream: No such file or directory in /home/XXXXX/public_html/catalog/supplier/includes/application_top.php on line 54

 

Fatal error: main(): Failed opening required '../idadmin/includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXX/public_html/catalog/supplier/includes/application_top.php on line 54

 

 

same errors when I go on

http://www.XXXXX.com/catalog/supplier/supp...s_statistic.php

 

Can anybody help me ?

Link to comment
Share on other sites

This is a great Original contributiion.

I have installed it . But I get the following error when I try to click on the

 

http://www.XXXXX.com/catalog/supplier/supplier_area.php

Warning: main(../idadmin/includes/functions/database.php): failed to open stream: No such file or directory in /home/XXXXX/public_html/catalog/supplier/includes/application_top.php on line 54

 

Fatal error: main(): Failed opening required '../idadmin/includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXX/public_html/catalog/supplier/includes/application_top.php on line 54

same errors when I go on

http://www.XXXXX.com/catalog/supplier/supp...s_statistic.php

 

Can anybody help me ?

 

 

IN the above I do not have the 'idadmin' directory. Then why is it pointing to that directory ? where is it come from?

Also the file 'application_top.php' looks very strange. It must have been just copied by the author of this contribution without removing his local parameters.

 

Someome needs to go through the database updates also to make one single .SQL file so that it can be uploaded by any newbie like me using the phpMyadmin.

Link to comment
Share on other sites

IN the above I do not have the 'idadmin' directory. Then why is it pointing to that directory ? where is it come from?

Also the file 'application_top.php' looks very strange. It must have been just copied by the author of this contribution without removing his local parameters.

 

Someome needs to go through the database updates also to make one single .SQL file so that it can be uploaded by any newbie like me using the phpMyadmin.

 

 

Zaps... you have to get rid of the "idamin" in the following file:

 

supplier/includes/configure.php

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

I'm sorry about the errors, but as this contribution was taking me a lot of time, I decided to upload it to the contributions so that good people like yourselves could help with the debugging so that we can get it to V1.0 stage much quicker..

 

I've taken note of what has currently been posted and made alterations

Edited by Rochdalemark
Link to comment
Share on other sites

Dont forget The supplier can login to add their products to your store at

 

http://www.your-domain.com/catalog/supplier_area.php

 

They don't have to log-in to your admin backed...

I did have it origionally on the standard admin folder but then realized that if you would also be giving the suppliers access to a folder that you didnt want them to have access to if that was the case.. So I moved it all over to the front of the catalog so that security issue wasnt a problem...

 

If anyone solves some of the errors, please post them here so that I can ammend the contribution..

Link to comment
Share on other sites

Version 0.6 has now been released with a LOT of the errors now fixed..

The errors generated are because I'm pulling the files from my site which is a heavily modified site and not stock OSC so there were still a few references to other contributions in the files that I missed when removing the references..

 

Hope you find the contribution of some use and I hope that someone can add to it and make it better.

Link to comment
Share on other sites

Version 0.6 has now been released with a LOT of the errors now fixed..

The errors generated are because I'm pulling the files from my site which is a heavily modified site and not stock OSC so there were still a few references to other contributions in the files that I missed when removing the references..

 

Hope you find the contribution of some use and I hope that someone can add to it and make it better.

 

 

thanks.. it's great to know you're supporting us. I thought we weren't gonna to get much help from you (ala OsPlayer). Please excuse my previous comments. This is a great contribution and I'd really like to get it up and running.... thanx...

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

thanks.. it's great to know you're supporting us. I thought we weren't gonna to get much help from you (ala OsPlayer). Please excuse my previous comments. This is a great contribution and I'd really like to get it up and running.... thanx...

 

 

I'm still getting the following errors:

Error: There is currently no default currency set. Please set one at: Administration Tool->Localization->Currencies

 

and

 

ERROR_NO_DEFAULT_LANGUAGE_DEFINED

 

even after the new install...

 

also... if i login at

 

 

http://musica360.com/store/supplier_area.php

 

i get the following error:

 

Fatal error: Call to undefined function: tep_get_languages() in /home/musieng2/public_html/store/supplier_area.php on line 20

 

where as if I log into

 

http://musica360.com/store/supplier/supplier_area.php

 

the screen comes up fine...

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

The reason I havn't replied before was only due to the fact I don't work weekends and on friday I was called away from the office so couln't do much then..

 

Anyhoo.. The only thing that needs doing at the moment is with the file supplier_s_categories_products.php in the supplier folder I think..

 

It needs the following contributions stripping out of it:-

html area

meta tags

additional images

attributes sorter.

 

and replacing with stock code..

 

I havn't got time to do it today but would be gratefull if someone could do that to help the contribution along so that the others aren't waiting for me to get back to it..

 

All help and comments much appreciated..

Link to comment
Share on other sites

I'm still getting the following errors:

Error: There is currently no default currency set. Please set one at: Administration Tool->Localization->Currencies

 

and

 

ERROR_NO_DEFAULT_LANGUAGE_DEFINED

 

even after the new install...

 

also... if i login at

http://musica360.com/store/supplier_area.php

 

i get the following error:

 

Fatal error: Call to undefined function: tep_get_languages() in /home/musieng2/public_html/store/supplier_area.php on line 20

 

where as if I log into

 

http://musica360.com/store/supplier/supplier_area.php

 

the screen comes up fine...

 

Hmm not sure why that error should appear on the one outside of the supplier folder... there exactly the same file.. will have a look into it.. for the time being then just use the supplier/supplier_area.php page to login

 

On what pages are you getting the other two errors with language and currency,, as there not apperaing on my test site..

Link to comment
Share on other sites

Hmm not sure why that error should appear on the one outside of the supplier folder... there exactly the same file.. will have a look into it.. for the time being then just use the supplier/supplier_area.php page to login

 

On what pages are you getting the other two errors with language and currency,, as there not apperaing on my test site..

 

 

I'm getting that on the "http://musica360.com/store/supplier/supplier_s_statistic.php?"

 

page when you log in. I don't need the category pages.. I just want them to see how many downloads of their music we're selling...

 

Also, could you possibly add a "log off" link

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

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