Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Minimum Order Quantity - WILL SOMEONE RESPOND


powderquestrider

Recommended Posts

Posted

I need help from anyone who has used Minimum Product Quantity with Admin

By Mark Rickert. I have contacted Mark a few times, but he hasn't responded in a while. Does anyone know of some sites that use this contribution or is anyone willing to look at my edited product_info.php file?

 

Basically I need to have a selectable drop down on the product_info.php with all of the possible quantities instead of being able to type in the box on the shopping_cart.php page.

 

Can anyone please help me?

 

http://www.pensandmorepens.com/oscommerce/catalog/

 

Thank you for anyone who is willing to give me any assistance.

 

Chad Williams

Posted
I need help from anyone who has used Minimum Product Quantity with Admin

By Mark Rickert. I have contacted Mark a few times, but he hasn't responded in a while. Does anyone know of some sites that use this contribution or is anyone willing to look at my edited product_info.php file?

 

Basically I need to have a selectable drop down on the product_info.php with all of the possible quantities instead of being able to type in the box on the shopping_cart.php page.

 

Can anyone please help me?

 

http://www.pensandmorepens.com/oscommerce/catalog/

 

Thank you for anyone who is willing to give me any assistance.

 

Chad Williams

 

 

judging by the tone of your topic, probably not.

 

Do you not think its a bit demanding? it comes across that way.

Posted

You may want to look into the qty_pull_down_menu update in the easy way add Qty box in your product_info.php contribution. I haven't used it, but it looks like it would accomplish what you are asking for.

 

Chad, you are new to this forum and it's personality. I hope you will not take the moderator editing or Flyer5's constructive criticism as a slap and that you will stick around a be positive member of the community. This community is unlike most tech forums that I have seen. It is generally polite and flame free (also spam free). It has rules that are intended to keep it that way. Also practicing good netiquette is always best. For example, using all caps is considered shouting, especially when used on text like "will someone respond". Remember, you are asking others for free help out of their spare time and the goodness of their hearts.

 

Contributions are just that, they are contributed freely by members of the community so that others can benefit from them. The contributor doesn't always provide support. There is usually a support thread in the Contributions channel of these forums where the community helps provide support for your questions. If you search on the contribution name with the search criteria narrowed to that channel of the forum (using the "more options" search page), you can usually find it. Many times you will find your answers without even having to ask.

 

See you around the forums!

Rule #1: Without exception, backup your database and files before making any changes to your files or database.

Rule #2: Make sure there are no exceptions to Rule #1.

Posted

I applogize to anyone who feels that I was being rude with my post topic. I understand that this is a community of people spending their time helping out others and that is always appreciated. I'm just a bit desperate for some help with this situation and was not getting any responses from another post I made about a week ago. Again, I'm sorry for the tone and thank you for your help.

Posted
You may want to look into the qty_pull_down_menu update in the easy way add Qty box in your product_info.php contribution. I haven't used it, but it looks like it would accomplish what you are asking for.

 

Chad, you are new to this forum and it's personality. I hope you will not take the moderator editing or Flyer5's constructive criticism as a slap and that you will stick around a be positive member of the community. This community is unlike most tech forums that I have seen. It is generally polite and flame free (also spam free). It has rules that are intended to keep it that way. Also practicing good netiquette is always best. For example, using all caps is considered shouting, especially when used on text like "will someone respond". Remember, you are asking others for free help out of their spare time and the goodness of their hearts.

 

Contributions are just that, they are contributed freely by members of the community so that others can benefit from them. The contributor doesn't always provide support. There is usually a support thread in the Contributions channel of these forums where the community helps provide support for your questions. If you search on the contribution name with the search criteria narrowed to that channel of the forum (using the "more options" search page), you can usually find it. Many times you will find your answers without even having to ask.

 

See you around the forums!

 

 

 

 

GraphicsGuy,

 

I searched my application_top.php file for $HTTP_POST_VARS['id']))+1, but 0 results are found. Any ideas why it's not there or where I need to add the edited line.

 

Also, does this contribution let you have a long list of quantities in the drop down or just one. IE does it add anything to the admin section where you can define different quantities for each product. This is the most important part for me.

 

Basically the site will sell different types of pens that have different quantites that can be ordered (200, 500, 750, 1000, ect), but another pen might have (300, 500, 750, 1500, ect). So each pen need to be able to have it's own quantities set and chooseable from the product_info.php page via a drop down so that the user doesn't have the option to type in their own quantities. Does this make since? Can osCommerce accomplish this?

 

Thank you for your time.

 

Chad

Posted
...

Basically the site will sell different types of pens that have different quantites that can be ordered (200, 500, 750, 1000, ect), but another pen might have (300, 500, 750, 1500, ect). So each pen need to be able to have it's own quantities set and chooseable from the product_info.php page via a drop down so that the user doesn't have the option to type in their own quantities. Does this make since? Can osCommerce accomplish this?

...

First, it is not whether osCommerce can accomplish this but rather if you can find a coder that can implement it.

 

The simple answer is to create another column on the products table (i.e. - products_quantity_allowed). Then, you'll need to modify the categories.php file to add the extra field. For simplicity sake I recommend a list of quantities separated by commas. Next, you'll have to modify the code in various places to enforce the selection. The product_info.php script is a given as that is where the drop down will be located. However, a good coder will predict where the system will fail and that will most likely be in the shopping_cart.php where a customer can modify the number of items in the basket.

 

Let's say the quantities for a particular product is 200, 400, and 600. Once they add it to the shopping cart they could enter say 250 and hit update...since this is still valid it will update the quantity accordingly. There should be some error checking code to only allow the correct quantities or offer them a pull down menu the same as on the product pages.

 

All said and done you'll have to modify the DB to add the extra table and modify the following scripts:

(1) admin/categories.php (to enter/modify the quantities)

(2) products_info.php (to display dropdown menu)

(3) shopping_cart.php (to display dropdown menu)

(4) includes/classes/shopping_cart.php (to enforce proper quantiy selection)

 

Good luck!

Posted

Just a thought but wouldnt the contribution called attribute sets achieve what yu want? You could create an attribute set of 100,200, 600 etc and assign it to relevant products.

 

F5

Posted

Attribute sets do not modify the price unless there is an associated price increase/decrease. However, the attribute system for osC is very cluttered and difficult to work with if there are several products. I once worked on a site that had 1,000+ products and each had an attribute with price changes. Can you imagine the stock attribute section with 1,000 products ??? It was a nightmare...

Posted

I just checked and the quantity drop down feature in the contribution genereates sequential quantities based on limits that are hard coded in. For example, they have it set for 1, 2, 3, ... , 15

 

Flyer 5's solution would be a down and dirty work around, but I suspect devx is right, managing it could be a problem. Devx's solution is going to look more professional and be painless to manage.

 

I am not an expert coder myself, but it seems to me that the simplest approach would be to start by hacking the code in the contribution I originally pointed to. It already adds a drop down to product_info.php. Currently it loads the array for the drop down box using a for statement with limits:

 

 

<?php
for ($i=0; $i<15; $i++) {
$qty_array[] = array('id' => $i+1, 'text' => $i+1);
}
?>

 

It seems that it could be modified to load the array from the database field, perhaps a comma delimited list stored in a text field in the products table. Then use some of this same code to change the quantity box in shopping_cart.php to the drop down. (not saying this will be easy, but easier than coding from scratch).

 

There is a contribution for adding new fields to a product. That would take care of adding the field to the product creation/editing process and adding the field to the database.

 

Since the shopping cart quantity box is being replaced with a drop down box, I'm not sure that enforcement code is essential because the drop downs supported in osc are strictly drop down boxes, not combo boxes.

 

As I said, I am not a coder myself, just throwing the ideas out there.

 

hth

Rule #1: Without exception, backup your database and files before making any changes to your files or database.

Rule #2: Make sure there are no exceptions to Rule #1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...