Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Quantity Controller v5.1


Ajeh

Recommended Posts

I'm getting the following error when trying to create an account:

 

Fatal error: Call to undefined function: tep_rand() in catalog/includes/functions/password_funcs.php on line 50

 

I've installed a new snapshot dated 19.11.02, and then applied this contribution, so I don't know if the missing function is resulting from using this contribution or not.

 

Does anyone have this function defined somewhere, and know where it should be?

 

I have the same problem

 

I've installed a new snapshot dated 03.01.2003

 

there is a solution present?

 

Me someone can describe the solution more exactly, since my English is not very good !

 

big thx rigo

Link to comment
Share on other sites

  • Replies 283
  • Created
  • Last Reply

Top Posters In This Topic

First I post a message under this topic by mistake it is located here

 

 

http://www.oscommerce.com/forums/viewtopic.php?t=31203

 

Also was wondering within the Quanity controller I noticed that I know have a Quanity on hand box now on the product info. Can I remove it from product info and not cause any problems. We do not use the inventory system in OSC because we don;t hold any inventory so all my products have a quanity of 0.

 

I really apperciate the help

 

Thanks

 

kmcar :D

Link to comment
Share on other sites

I am posting this over here cause it is driving me crazy .. I know it's cross posting but I am trying to stay away from another all nighter. Any help is greatly appericated :blush:

 

 

Greetings All,

 

I got everything up and running .. I think hehehe, Just a quick question if anyone knows. I am in the process of tackling the quanity piece. But I do not want to quanity discount on all products. Just a select 300 products. We want to sell dvd's 3 for 25.00. If someone could point me in the right direction I would greatly appericate it.

 

Kmcar :?

Link to comment
Share on other sites

using Lindas Quantity Controller v5.1 should do the trick - it allows you to set discounts per item, as well as setting min order and order pack # example

 

if DVDs were sold in packs of 5 - orders would only be allowed with quantity of 5, 10, 15, etc

 

If minimum order was 3 CDs - then set as 3 and client could not order 1 or 2

 

qty discount lets you set up to 4 different (price breaks) per item -

 

you can find it here:

 

http://www.oscommerce.com/community/contri...ions,496/page,7

Link to comment
Share on other sites

using Lindas Quantity Controller v5.1 should do the trick - it allows you to set discounts per item, as well as setting min order and order pack # example

 

if DVDs were sold in packs of 5 - orders would only be allowed with quantity of 5, 10, 15, etc

 

If minimum order was 3 CDs - then set as 3 and client could not order 1 or 2

 

qty discount lets you set up to 4 different (price breaks) per item -

 

you can find it here:

http://www.oscommerce.com/community/contributions,496/page,7

 

Kewl .. I have all ready down loaded it and installed. Now I would like to offer 3 for 25.00 but if they only order 2 then they pay full price. I just need some assistance with setting it up.

 

:lol:

Link to comment
Share on other sites

Well this is a discount per item.

 

Example:

 

Normal price is 15.00

 

Break 1

3

8.33

 

So when they buy 3 they are 8.33 each or close to 3 for $25

 

I didn't write this as a buy X get for $X

 

This is a per unit discounter based on quantity but if you fuss with the numbers it will get to about what you want.

Link to comment
Share on other sites

pretty simple - in the item section, simply set as following:

Example:

retail price - $15.99

in first qty box mark 3 as qty and $12.99 for price

 

 

now if they buy 1 or 2 - price is $15.99 x1 or x2

if they buy 3 or more, then price is $12.99 x3 or x4 , etc

 

that's it - works great!

Link to comment
Share on other sites

Well this is a discount per item.

 

Example:

 

Normal price is 15.00

 

Break 1

3

8.33

 

So when they buy 3 they are 8.33 each or close to 3 for $25

 

I didn't write this as a buy X get for $X

 

This is a per unit discounter based on quantity but if you fuss with the numbers it will get to about what you want.

 

Ok GREAT! Now 1 more question and I am ready to attack this monster .. How do I make it prosuct specific. I carry over 10000 products. SO I don

t want every thing to have a discount.

 

BYW Linda nice job on the coding. :lol:

Link to comment
Share on other sites

just go into the admin area and choose the product that you want to apply the discount to - you will see the qty disc box down towards the end of the page

 

Ok I think I got it .. (understand that is. But working not yet)

 

here is the quanity control is the /english directory

 

// Product Qty, List, Rebate Pricing and Savings

define('PRODUCTS_SEE_QTY_DISCOUNTS','SEE: QTY DISCOUNTS');

define('PRODUCTS_ORDER_QTY_TEXT','Add Qty: ');

define('PRODUCTS_ORDER_QTY_MIN_TEXT','<br>' . ' Min Qty: ');

define('PRODUCTS_ORDER_QTY_MIN_TEXT_INFO','Order Minumum is: '); // order_detail.php

define('PRODUCTS_ORDER_QTY_MIN_TEXT_CART','Order Minimum is: '); // order_detail.php

define('PRODUCTS_ORDER_QTY_MIN_TEXT_CART_SHORT',' Min Qty: '); // order_detail.php

define('PRODUCTS_ORDER_QTY_UNIT_TEXT',' in Units of: ');

define('PRODUCTS_ORDER_QTY_UNIT_TEXT_INFO','Order in Units of: '); // order_detail.php

define('PRODUCTS_ORDER_QTY_UNIT_TEXT_CART','Order in Units of: '); // order_detail.php

define('PRODUCTS_ORDER_QTY_UNIT_TEXT_CART_SHORT',' Units: '); // order_detail.php

define('ERROR_PRODUCTS_QUANTITY_ORDER_MIN_TEXT','');

define('ERROR_PRODUCTS_QUANTITY_INVALID','Invalid Qty: ');

define('ERROR_PRODUCTS_QUANTITY_ORDER_UNITS_TEXT','');

define('ERROR_PRODUCTS_UNITS_INVALID','Invalid Units: ');

 

Where do I add the discount? or do I do it in quanity control in the includes directory.

 

I am also assuming since I do not have it enabled is the reason why I do not have a qaunity control box on my products page. If not then I am lost.

 

kmcar :oops:

Link to comment
Share on other sites

When editing the products, each product has its own definition for the discount settings on a per product basis.

 

Huh ... I'm sorry Linda, maybe I have just lost it. Too many late nights working. Can you be more descriptive please. I'm sorry

 

kmcar

Link to comment
Share on other sites

You know where in the Admin you edit the product name, price, model, images, etc.?

 

Same page.

 

There is a new box for discount prices.

 

If you do not see the new box, then you have left something out in the code.

Link to comment
Share on other sites

You know where in the Admin you edit the product name, price, model, images, etc.?

 

Same page.

 

There is a new box for discount prices.

 

If you do not see the new box, then you have left something out in the code.

Ohhh Ok no I do not see any dicount box. That's why I was asking if I needed to turn the add-on on and where do I do that. I am sorry for being a pain the ***. I really am

 

 

kmcar

Link to comment
Share on other sites

Hello ajeh !

 

thanx first for this contribution - it's what i exactly looking for.

now i god after the installation one prob.

after open the admin section i got a fatal error like this:

 

Fatal error: Cannot redeclare tep_copy_products_attributes() (previously declared in /home/hbinet/vhosts/business-bali/htdocs/test/admin/admin/includes/functions/webmakers_added_functions.php:7) in /home/hbinet/vhosts/business-bali/htdocs/test/admin/admin/includes/functions/webmakers_added_functions.php on line 7

 

i have now clue what i do wrong as a beginner of php. :cry:

Link to comment
Share on other sites

Depending on your add-ons, you may already have that function or you made an error.

 

Do a search on your admin files for:

 

function tep_copy_products_attributes

 

Make sure there is only one.

 

Next, make sure you are loading the file that contains that function only once.

Link to comment
Share on other sites

Depending on your add-ons, you may already have that function or you made an error.

 

Do a search on your admin files for:

 

function tep_copy_products_attributes

 

Make sure there is only one.

 

Next, make sure you are loading the file that contains that function only once.

 

i search the whole admin area but nothing found.

can i combine with our sorter and copier ?

 

:cry:

Link to comment
Share on other sites

and now my catalog show me this also:

 

Fatal error: Cannot redeclare tep_get_products_catagory_id() (previously declared in /home/hbinet/vhosts/business-bali/htdocs/test/catalog/catalog/includes/functions/categories_lookup.php:9) in /home/hbinet/vhosts/business-bali/htdocs/test/catalog/catalog/includes/functions/webmakers_added_functions.php on line 380

 

:cry:

Link to comment
Share on other sites

Depending on your add-ons, you may already have that function or you made an error.

 

Do a search on your admin files for:

 

function tep_copy_products_attributes

 

Make sure there is only one.

 

Next, make sure you are loading the file that contains that function only once.

Link to comment
Share on other sites

If the error message is a cannot redeclare ... then it has to be there at least once ... :D  

 

Check your spelling or just search for:

tep_copy_products_attributes

 

i found in the same file only the end of the code like this:

} // eof: tep_copy_products_attributes

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