If this is your first visit, check our documentation. To post, register or login.

Product page - MIxed On

Started by smokinjo on 27 Nov 2021, 4:54 AM · Views: 3,367

Results 1 to 5 of 5
27 Nov 2021, 4:54 AM
#1
smokinjo avatar

smokinjo

New Zenner

Join Date:
Apr 2020
Location:
Hogan
Posts:
65
Plugin Contributions:
0

Product page - MIxed On

I found an option on the product page that seems like I might be able to use, but I am not totally clear as to how it is used or set up:

https://docs.zen-cart.com/user/products/mixed_on/

It says: It "is used in determining whether the minimum has been met, both for purchasing and for quantity discounts."

I was thinking that I could be able to use it to determine the eligibility for a shipment to have free shipping.

My idea is:

I have an attribute that determines what of two main categories my product falls into: Cards or Posters.

If I understand it correctly, I can set this to say:

buy a minimum of 14 cards and shipping if free
buy a minimum of 3 posters and shipping if free

But, when I read the text again, it seems that if I put a minimum qty the client needs to buy of that products.

That does not seem to mix well with my understanding about apply the quantity discount: free shipping.

If it is a mix of both, I am curious as to how this is achieved, since I did not see an option to choose one of the other ways of using it.

Can I hopefully get a more clear understanding on if the minimum is for discounting purposes, or just the purchasing of that product.

If there are other details I might need to take in to consideration, please share that as well.

Much appreciated. My Zen Cart comprehension is getting better:)

Thanks

27 Nov 2021, 5:02 AM
#2
smokinjo avatar

smokinjo

New Zenner

Join Date:
Apr 2020
Location:
Hogan
Posts:
65
Plugin Contributions:
0

Re: Product page - MIxed On

I also will have a minimum purchase amount of: 5 cards, for example. But, 14 cards will allow free shipping.

How to mix/combine these.

27 Nov 2021, 12:10 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Product page - MIxed On

Mixed on has nothing to do with free shipping.

You could certainly do what you have proposed:

buy a minimum of 14 cards and shipping is free
buy a minimum of 3 posters and shipping is free

but you would do that by writing a new shipping module.

Here's how to clone a shipping module:
https://docs.zen-cart.com/dev/code/modules/clone_shipping/

In the quote function of your new module, you have to go through the cart contents and count the number of cards and posters.
The function you'll want to use is get_products(). You can see how this is done by looking at the coupon module
includes/modules/order_total/ot_coupon.php, at the function get_order_total().

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Nov 2021, 2:50 PM
#4
smokinjo avatar

smokinjo

New Zenner

Join Date:
Apr 2020
Location:
Hogan
Posts:
65
Plugin Contributions:
0

Re: Product page - MIxed On

Thanks for pointing out the shipping rule difference.

So, that rings me back to understanding the Mix On feature.

Is it just for minimum quantity determination, and allowing mixing of products based on identical attribute?

27 Nov 2021, 4:14 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Product page - MIxed On

Is it just for minimum quantity determination, and allowing mixing of products based on identical attribute?

It is for quantity determination, counting the same products with DIFFERENT attribute settings as if they were identical.

2 T-shirt - Red, Large
3 T-shirt - Green, Medium
1 T-shirt - Gray, XL

Is this quantity 6 of that product, or 3 separate quantities of 2,3,1? That's what MIXED ON allows you to do.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.