The Problem
When a client purchases product through a wholesale account I am losing my store pickup location? Is there something within the wholesale app we can allow to view these details?
The Solution
Open wholesale-all-in-one.liquid file and pass note attributes to checkout. Edit wholesaleDiscountReq function.
Add this code based on screenshot instructions:
var note_attr = [];
for(var [c,b] of Object.entries(cart.attributes)){
note_attr.push({
"name": c,
"value": b
});
}
Follow these screenshot instructions:
Here are instructions to validate the pickup form before submitting
If you need to validate the cart form, you can use the .valid() function.
For example running the following statement will return either FALSE or TRUE
$('.cart__form').valid()
where "cart__form" is the class of the cart form.