Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zane86

Members
  • Content count

    61
  • Joined

  • Last visited

Everything posted by Zane86

  1. Zane86

    Customer Add Product

    Log in to admin Look for the user u want to give permission to In there, there should be something called "Approved Customer"... or something like that.. Set it to yes
  2. Zane86

    Customer Add Product

    I belive those steps are so that you can give the customer access to add products on the site. The site checks the database to see if the customer is allowed or not to access the publish-site.
  3. Zane86

    Customer Add Product

    Hope you can find the solution.. If you do, please post it here so other can have use of it :)
  4. Zane86

    Customer Add Product

    Strange.. It doesent do that for me, så i have no clue accualy. But i guess you will find the problem in includes/funcions/database.php around the same place where you fixed that <p> were converted to _p_
  5. Zane86

    Customer Add Product

    Im not quite sure what you mean there buddy. Could you perhaps try and explain à little better? //Zane
  6. Zane86

    Customer Add Product

    Yeah.. Ive fixed it. It's missing a few closing tags, such as </td></tr></table>... Its quite hard to find them, and i dont have the right input place left cuz my webshop is heavily modified. If you check the code, and know HTML, you should be able to find the right place :) Good luck
  7. Zane86

    Customer Add Product

    Go to phpmyadmin and change your customers_id for administrator to 0.
  8. Zane86

    Customer Add Product

    Hi there. In the admin system. Go and Edit a customen. When editing a custumer, there will be à Field for "approve customer". Set this to yes. Dont forget to fix à few things. You Will find a post from me in in this thread with à few fixes. CAP wont work without them good luck
  9. Zane86

    Customer Add Product

    Hi there. I think it were supposed to work like that in a future release, however, this contrib aint in developent anymore. So we have to live on each others forumpost :(. Its quite difficult to fix this contrib, but i post a few fixes that you have to do to make it work as is should here; On account_manage.php, the preview and cancel button were not working but redirecting to the index page. It seems that the oscid is not requested on the start of the file which, after testing, seems nessecary for the links to work correctly. Therefore in account_manage.php: find: $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); Directly after add: $osCsid = (isset($_REQUEST['osCsid']) ? $_REQUEST['osCsid'] : ''); When I try to add product using the admin, I can see the product info from the public but not in the Categories / Products field, which means I couldnt edit the contents. go to phpmyadmin and change your customers_id for administrator to 0. Category Fix in account_add.php tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$products_id . "', '" . (int)$category_id . "')"); ----------------- Replace this with ----------------- $chosencategory = $_POST['category_id']; tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$products_id . "', '" . $chosencategory . "')");
  10. Zane86

    Customer Add Product

    Hi there. Please. Do anyone know if i can limit the customer to only choose specific categorys that i choose? (same with manufacturers would be great). Im almost ready to pay for it.
  11. Zane86

    Daily Product Report

    Is it possible to add Manufacturer for each product in the report?
  12. Zane86

    [Development] Products Specifications

    Okey, got it to work as an input field. Just changed 2 lines in Products_specifications_input.php (in modules) echo tep_draw_textarea_field ('products_specification[' . $id . '][' . $languages[$i]['id'] . ']', '', '70', '3', $products_specification); to echo tep_draw_input_field ('products_specification[' . $id . '][' . $languages[$i]['id'] . ']', '', '70', '3', $products_specification); ...................... Now i have an additional problem. When i add a new product, my specification looks like this: (both in admin and Customer Add Product) First: The name and description only applys to my default language, and not to both Swedish and English. Second: I would love to have the descriptions to the right side of the box. Is that possible? Third: Can i get an additional <br /> after each specification? This is how i would want it to look like:
  13. Zane86

    [Development] Products Specifications

    Okey. Is it possible to change the "textarea" into a "textfield" instead maybe? And tell it to be size="40" for example?
  14. Hi there. Im not quite sure if this is the right place to post, but i think so. This contrib is really great and it works like a charm in the admin-backend. However, i've installed a contrib called "Customer Add Product", wich make it possible for my customers to add products to my store. But its really buggy, so i have gone throu the code and got it to work for 95%. So im almost finished. ***************************************** Here goes my problem; In the admin-backend, when i add a product, the "text fields" for this contrib is about 420px width. But in the front end (Customer Add Product), the "text fields" are only 1 px width. ***************************************** I've copied all the "admin php-files" to the front end to make it work (but changed some file-names so it wont crash due to file names that already existed there. (also added these to filenames.php and changed in Customer Add Product-pages so it will match). Do you have any clue what i've missed? (The drop down lists all works perfect. Its just the text-fields that are buggy). Cheers
  15. Zane86

    [Development] Products Specifications

    Hi there. Im not quite sure if this is the right place to post, but i think so. This contrib is really great and it works like a charm in the admin-backend. However, i've installed a contrib called "Customer Add Product", wich make it possible for my customers to add products to my store. But its really buggy, so i have gone throu the code and got it to work for 95%. So im almost finished. ***************************************** Here goes my problem; In the admin-backend, when i add a product, the "text fields" for this contrib is about 420px width. But in the front end (Customer Add Product), the "text fields" are only 1 px width. ***************************************** I've copied all the "admin php-files" to the front end to make it work (but changed some file-names so it wont crash due to file names that already existed there. (also added these to filenames.php and changed in Customer Add Product-pages so it will match). Do you have any clue what i've missed? (The drop down lists all works perfect. Its just the text-fields that are buggy). Cheers
  16. Zane86

    Customer Add Product

    Just solved it. Open includes/funcions/database.php Find: function tep_db_prepare_input($string) { if (is_string($string)) { return trim(tep_sanitize_string(stripslashes($string))); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } Replace with... function tep_db_prepare_input($string) { if (is_string($string)) { return trim(stripslashes($string)); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } }
  17. Zane86

    Customer Add Product

    Anyone solved the problem with the html-formatting when you add a product. It looks like this for mer when a customer hits preview (an it looks like this when it's inserted too). ************************* _p_Product description goes here_/p_ _p__b_With a BOLD textline, it looks like this_/p__/b_ ************************* Hope anyone have solved it yet.. Cheers
  18. Zane86

    Customer Add Product

    Hi. I've tried this conribution a few times now, but with no success. And i think im ready to pay for it if anyone could fix it for me. I have a heavily modified osCommerce RC2 (such as Product Expire Date, Product Start Date, Product Specification, random image filenamne and so on). If anyone feel like making this contribution work with my modified files, they are welcome to PM me with a price. Make sure to include references in the PM, cuz i wont buy anything from someonte that dont have a few happy customers already. Feel free to PM me. This is what i want • Customer can add products (But must be approved by an admin) • Customer can edit thier own products (But must be approved by an admin) • Products to be approved needed its own subcategory in the catalog section of the admin area • When another customer buy that product, the owner of the product and the admin gets an order confirmation • Customer can only mark them self as "manufacturer" (not a big deal maybe) • Addons such ad Product Expire Date, Product Start Date, Product Specification, random image filenamne and so on must be compatible with this addon • Support for multilanguage (English + Swedish. However, i can translate to Swedish my self)
  19. Think i have to go with #2 then :P. But thats a lot of cracking code in a short time of period. However, i aint using "model" at the time being - that might be a way out i guess. Thanks for i great contrib anyway. It works really nice. //Zane --------------------------------- Edit: I guess it's something like this: in Index.php: add case 'PRODUCT_LIST_SPECIFICATION': $select_column_list .= 'p.specification_id=50, '; //Since id 50 is Size from the DB for me) break; in product_listing.php: case 'PRODUCT_LIST_SPECIFICATION': $lc_text = TABLE_HEADING_SPECIFICATION; $lc_align = ''; break; And then alter the code on a lot of places and so on.... Short description... p (and by the way.... php aint my biggest friend) Cheers
  20. Hmm.. well, i give it a try. This is how my product listing looks today: I want to add Size from Product Specification inside this red markings: If i turn on "Comparison in Index", i just get this:
  21. I got the part to show the comparisons and all that, but i would like to keep the osCommerce-setup for showing the products.. For exampel, if you go in you admin-system and click Product Listing, you can choose what to show... Display Product Image 1 Display Product Manufaturer Name 0 Display Product Model 0 Display Product Name 2 Display Product Price 3 Display Product Quantity 0 Display Product Weight 0 Display Buy Now column 4 Display Category/Manufacturer Filter (0=disable; 1=enable) 1 Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 2 ...and so on. Is it possible to add for example; Display Product Specification: Size Display Product Specification: Color Display Product Specification: XXXX Hope you know what i mean =) //Zane
  22. Hi there. Is it possible to add a few of the specifications i've done in product_listing.php? Would be nice if it were possible :) Cheers
  23. In some strange way, all my image-url and language-url's (and so on) gets a strange adress. Anyone know why? I get this: http://www.your-domain.se/catalog/supplier/admin/images/categories/supplier.gif But the right one should be: http://www.your-domain.se/catalog/admin/images/categories/supplier.gif In other words: WHY does it add "supplier/" in the URL? This is my "catalog/supplier/includes/configure.php-file" <?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 (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.your-domain.se/catalog/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.your-domain.se/catalog/'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/customers/your-domain.se/your-domain.se/httpd.www/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', ''); 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', ''); 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 . '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', 'user'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'databesename'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Hope anyone can help me with this problem.
  24. But i got a new problem. My pictures wont work. It says it is this URL: http://www.XXXXXX.com/admin/images/categories/supplier.gif But the right URL should be http://www.XXXXXX.com/testsite/admin/images/categories/supplier.gif Anyone know what the problem could be. This is my /testsite/supplier/includes/configure.php file <?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 (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.XXXXXX.com/testsite/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.XXXXXX.com/testsite/'); define('HTTPS_CATALOG_SERVER', '/testsite/'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/customers/XXXXXX.com/XXXXXX.com/httpd.www/testsite/'); // 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', '/admin/'); 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', ''); 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 . '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', 'xxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxx'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
  25. Never mind. Think i got it!
×