• Resolved yi0529777288

    (@yi0529777288)


    I set a normal and wholesale price, in addition I made a PHP, JS and HTML code that in the middle it shows me the second price, meaning that there is one price that is displayed on the front in wholesale and when I click it it shows the other, in the user who is an admin it gives me a normal price and then when I click it it pulls a wholesale price as I want, But from what application in the wholesale user it does not work like that even though the code applies to it. Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter yi0529777288

    (@yi0529777288)

    ?

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi there,

    I’m unable to accurately figure the feature you had in mind, so we aren’t able to provide much support. Is the second price you are referring to the wholesale price for the retail customers?

    Reading through your post, you made a button that pulls the wholesale price on the frontend? As a wholesale customer, it’s not working as intended but is attached, I’m unsure here if you are still pulling the wholesale price as it’s already displaying the wholesale price due to their role.

    Having said that we have a feature for this in Woocommerce > Settings > Wholesale Prices > Price, scroll down and you’ll find a feature where it says “Show wholesale price to non-wholesale customers”

    If you are one of our premium users, please reach out to our support form here: Support Request Form – Wholesale Suite (wholesalesuiteplugin.com)

    Thread Starter yi0529777288

    (@yi0529777288)

    I will try to explain, there is a wholesaler user level, the website owner wants the wholesalers to be able to show the customers who come to the wholesalers the normal price in the store. He wants the wholesale default to be regular price and after clicking the button that works with a code via shortcode it will change to wholesale price. am i clear

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi there,

    Thanks for the explanation. To recap you want the wholesale customer’s default to using the regular price but upon clicking the button they’ll get the wholesale price? Please correct me if I’m wrong here.

    If that were the case I’m afraid that’s not possible as our plugin will always use the wholesale price when it’s available, so it’s likely the reason why the price is not changing for the wholesale customers but works with other roles IE regular and guest users.

    What you could try is to use CSS to hide the wholesale price by default only showing the retail and removing the add to cart button as well. Once the button is clicked it’ll then add the CSS to bring the wholesale price back.

    Let us know if you have other questions or need further clarification.

    Cheers,

    Thread Starter yi0529777288

    (@yi0529777288)

    I didn’t really understand how you intend to implement it in css? And thanks for the answer. Is it possible to create another user who will only be shown regular prices? Because let’s say the user is at admin level it works well, so I understand that there is a situation where it will work here as well.

    Thread Starter yi0529777288

    (@yi0529777288)

    ???

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi there,

    Apologies for the delay in our response.

    As previously mentioned, the likely reason why it’s not working as intended is that our plugin will use the Wholesale price by default when it’s available, it’ll only use retail if there’s no wholesale price.

    If you’d like to have the customer have a wholesale role but use retail price as the default, I’m afraid you’ll have to create a snippet to modify how our plugin behaves. For this, we aren’t able to provide support.

    You mentioned that the snippet was working for admin/regular/guest customers. Would it be fine to simply have their user roles as regular customers so the price by default is retail and have the function update to wholesale instead of having it default to the wholesale customer?

    Alternatively, you could create another role and name it custom-wholesale, which is outside wholesale prices so by default it’ll use retail and have your function update accordingly. Since this is a custom role it’ll be separated from regular customers so the function you have should work.

    Let me know if you have other questions.

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Weird problem with the price’ is closed to new replies.