Great forums! I have gotten a lot of great insight and information already, but upon searching through the archives for a solution or insight to this particular query and finding nothing, I figured I should go ahead and ask.
I am very new to Miva development, but am now maintaining a store that was just converted from MM4 to 5 and I'm having fun playing around with all the new features and possibilities (it is a dev site with the MM4 store still in action so I can't mess it all up too badly.. yet).
Here is my dilemma:
This company has wholesale prices on particular products, but all products are available for retail customer purchase. My problem is that I have attributes (e.g., selling fabric by the yard and inch) that I need to hide based on if a customer is in a particular price group. So, I have a product that has a base price in Miva at $0.00, and the prices are controlled and driven solely based on the attribute pricing (by inch, by yard), BUT there is an additional attribute for wholesale customers (they can only purchase in YARDS), so I basically have three attributes: Price by inch, Price by yard, and Price by yard for wholesale customers.
Here is what I want to do: I need to create a conditional statement that checks whether or not a particular customer is in a price group and then hide/show the attribute accordingly (I don't want my retail customers to see the "price by yard for wholesale customers" attribute, and I don't want my wholesale customers to be able to purchase "inches" at discount). Am I thoroughly confusing everyone yet? I hope not.
1. Can I do this within Miva inherently with conditional if statements? Or will I need a module (if there are any)?
2. If I can do this with conditional coding, where do I start? How do I check if a customer is in a particular price group (Emporium Plus ToolKit...?) and then display attributes accordingly? Can I even conditionally show attributes at all?
If anyone has any ideas, please let me know! I would greatly appreciate it.
Thanks!
I am very new to Miva development, but am now maintaining a store that was just converted from MM4 to 5 and I'm having fun playing around with all the new features and possibilities (it is a dev site with the MM4 store still in action so I can't mess it all up too badly.. yet).
Here is my dilemma:
This company has wholesale prices on particular products, but all products are available for retail customer purchase. My problem is that I have attributes (e.g., selling fabric by the yard and inch) that I need to hide based on if a customer is in a particular price group. So, I have a product that has a base price in Miva at $0.00, and the prices are controlled and driven solely based on the attribute pricing (by inch, by yard), BUT there is an additional attribute for wholesale customers (they can only purchase in YARDS), so I basically have three attributes: Price by inch, Price by yard, and Price by yard for wholesale customers.
Here is what I want to do: I need to create a conditional statement that checks whether or not a particular customer is in a price group and then hide/show the attribute accordingly (I don't want my retail customers to see the "price by yard for wholesale customers" attribute, and I don't want my wholesale customers to be able to purchase "inches" at discount). Am I thoroughly confusing everyone yet? I hope not.
1. Can I do this within Miva inherently with conditional if statements? Or will I need a module (if there are any)?
2. If I can do this with conditional coding, where do I start? How do I check if a customer is in a particular price group (Emporium Plus ToolKit...?) and then display attributes accordingly? Can I even conditionally show attributes at all?
If anyone has any ideas, please let me know! I would greatly appreciate it.
Thanks!
Comment