Jump to content

Recommended Posts

@raiwa

First of all I want t tell you the add-on works perfect. I have changed my create_customer adding company and tax-number (required for wholesale) so in fact you can not buy as a retail- customer. This also because of GDPR witch is different for B2C and B2B.

For much products there is a minimum amount in wholesale in my shop. Is it possible to implement a minimum amount of products a customer has to put in his shopping-cart to get the benefits? Perhaps trough database with fixed minimum amount?

Thanks, Martin

Share this post


Link to post
Share on other sites

Hello Martin @davinci8,

You would need to custom code in the shopping_cart class extension (in the wholesale store module) and/or in the shopping cart page to display some alert about minimum amount.

It all depends how comfortable you wish to have it coded.

You would also need to add some check if the minimum amount is reached on the checkout pages. If not reached, redirect to shopping cart.Or it should be possible to code this also in the store module. It actally is a kind of header tag module which could do the checks and redirect.

I would say there is no need to add anything in the database. You could add an additional configuration entry to the wholesale store module for the minimum amount. So you can change it in admin instead to hardcode it.

 

Best regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@davinci8,

Another approach would be to use an existing contribution like:

https://apps.oscommerce.com/Y2MuQ&minimum-order-quantity-per-product

as a starting point and just add the condition if customer _wholesale is session registered to apply the restriction only for wholesalers.

There are several others, just search the Marketplace for "minimum order/product amount"

 

Edited by raiwa

Share this post


Link to post
Share on other sites

@raiwa

i do not understand this in the Manual_File_Modifications at the beginning:

If you need it to distinguish between wholesaler and retailer for other uses, you can code it like this:
      	// wholesale (SPPC Lite) BEGIN
      		global $ wholesale_group;
    			if ($wholesale_group > 0) {
    				echo 'wholesaler'; // wholesalers code
    			} else { // default
    				echo 'retailer'; // retailer code
    			}
    		// wholesale (SPPC Lite) END

..???

Edited by stratula

Share this post


Link to post
Share on other sites

Hello Stefan @stratula,

You can use this to show different information or use different code depending if the logged in customer is wholesaler or retailer.

Just replace

echo 'wholesaler'; // wholesalers code
with the code for wholesalers and
echo 'retailer'; // retailer code
with the code for retailers.
 
This is intended for developers who want to add customized code. It is not required for standard installation.
 
If you are happy with the wholesale add-on like it is, just ignore it 😉
 
Liebe Grüsse
Rainer
Edited by raiwa

Share this post


Link to post
Share on other sites

Your module works perfect. Thank you for that.  I am still in a kind of problem with the minimum amounts of products wanted for the wholesale function, unwanted for the retail function. ( I have installed your suggestion ' minimum quantity per product', and al goes fine). So i thought to redirect to a 'normal' shop for retail selling. (My problem is the (working) minimum amount is also active for the retail group.) I have tried to make the addon 'Link to Product Model' by Landho working on Osc CE so i would have a link in the other shop where a customer can buy just one product trough advanced_search_result.php, but this failed. I know this is not a subject for your addon, but I could not find any posts of this matter to help me further. Reason for all of this is that retail customers are confused by the minimum amounts of products in the Wholesale. Hope you can help me.
Best regards, Martin

Share this post


Link to post
Share on other sites

I'm sorry, I can't give you further help for this within the support for Wholesale BS. I would need more details and code examples you are using. It is not possible in this support thread.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×