Forums / Setting Up Categories, Products, Attributes / Colon Seperated Pair Configuration

Colon Seperated Pair Configuration

Views: 3,447

Results 1 to 8 of 8
18 May 2025, 12:03 AM
#1
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Colon Seperated Pair Configuration

In reference to the docs at https://docs.zen-cart.com/user/running/colon-separated-pairs/

Is there any relief other than another mod in order to have three options?

As currently set> To express the configuration “for up to 2 pounds, charge $5, but for over 2 pounds but under 7 pounds, charge $10,” the following string is used:

2:5,7:10 This could also express the configuration “1-2 items, charge $5, 3-7 items, charge $10.” How the figures are interpreted depends on the context in which they are used.

What if we want to drop the price again at 20 pounds?

A price for a single, 6x, a dozen, two dozen, half a gross, a gross?

I can't see this scenario getting that weird, but I could certainly use 1, 6, 12 options.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 May 2025, 9:32 AM
#2
swguy avatar

swguy

Administrator

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

Re: Colon Seperated Pair Configuration

There's no limit to the length of the string.

I could certainly use 1, 6, 12 options.
If you want a price drop at 6 and 12, you'd use

5:price-for-1-5,11:price for 6-11,12:price for 12-or more.

(other variants are possible of course)

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.

18 May 2025, 4:31 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Re: Colon Seperated Pair Configuration

Thanx for that. Just couldn't get my head around it while trying to get POSM, priceds by attrributes, QD, and wholesale working together.

I can't seem to find any combination that:

  1. Properly displays the lowest attribute price for both regular and wholesale customers.
  2. Properly applies the proper wholesale discount (50%) to the QD.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 May 2025, 8:00 PM
#4
swguy avatar

swguy

Administrator

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

Re: Colon Seperated Pair Configuration

Wholesale pricing doesn't work with attribute Quantity Discounts. Is this the issue?

https://docs.zen-cart.com/user/products/wholesale_pricing/#restrictions

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.

18 May 2025, 8:52 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Re: Colon Seperated Pair Configuration

I've backed off from trying to combine QD and Whoiesale on an attribute although (to me) the simplest fix would be to have an Attributes Wholesale Price Discount field added to attributes. Still that would then become difficult for stores with more than one level of wholesale client(s).

I have a product (POSM) that can either be displayed in a window (suncatcher) or as a night light.

The suncatcher can be purchased either with a suction cup or without.

The night light comess with a standard socket and bulb or two other types of socket and bulb.

So the price is based on whether a suncatcher or night light. That is the price that should be shown and affected by QD.

Therefore, the QD is placed in the Product Type attributes for suncatcher and night light. By rule, the price is left blank and the QD entered below in the attribute.

Doing so with no wholesale price involved results in Starting at: being blank, quantity discounts are shown correctly, and they are configured correctly at checkout. https://enightlights.com/index.php?main_page=product_info&cPath=40_44&products_id=78

Take a similar product and add 50% for the wholesale price at the product level, and you get the same look as the one above when not logged in as a wholesale client. When logged in as a wholesale client, the Starting at: now adds Your Price : $0.00 and, when a single suncatcher is ordered, the price is $9.95 versus the expected $4.98 and the QD does not change amounts either. https://enightlights.com/index.php?main_page=product_info&products_id=266:416e0499405bcef12de942bf3ba1b17c.

I feel that dropping PBA would be even more of a nightmare in that the price would have to be established on the lower suncatcher price. Then, trying to discount at the product and attribute level would be a holy nightmare.

PM sent with wholesale login

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 May 2025, 6:01 AM
#6
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Re: Colon Seperated Pair Configuration

The only solution I see to your problem is to not use attributes. Make separate products instead, one product for the suncatcher and another one for the night light.
Then you can apply both wholesale (product setting) and quantity discount (price manager) as per ZC manual. I have tested this setting and it works.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

19 May 2025, 5:02 PM
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Colon Seperated Pair Configuration

I believe there is a point where it gets complicated enough that separating the wholesale stuff out as its own Zen Cart install instead of using wholesale inside the retail site.
it removes the additional complicating layer.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

19 May 2025, 7:20 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Re: Colon Seperated Pair Configuration

Auto salesman:
“Sir , your are just gonna go crazy over this new car. It has all the latest bells and whistles! Great price and fits six comfortably. Excellent gas mileage and the resale value is really great,”

Car buyer:
”Fantastic! I know my wife will appreciate it on the few days she’ll need it for her work.”

Car salesman:
”l’m sorry sir, the car can only be programmed for one work destination.”

:wacko:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com