Support » Plugin: Maximum Purchase for WooCommerce » Changing the CSS styling and Message

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author vark

    (@vark)

    Hi DeeperLook,
    Thanks for the kind words!

    You’ve asked about a couple of things slated for change in the next version, coming out early in the new year.

    CSS – Currently, the CSS can be overridden via direct input in the options screen. Next round, I’ll offer a css shutoff so you can copy in and customize your css directly in your theme.

    Custom Messages – Currently, messages are created on the fly, and while there are two different message formats offered in the options screen, customization is difficult (can really only do it using the POT function). Next round, a simple override message will be available by rule, along with a variety of custom shutoff options.

    Best,
    Vark

    Hi Vark,

    Thank you, I will use the input area for the CSS.

    In regards to the Messages, I really would like to add a line space in between the following to neaten things up a little:

    “Cart Maximum Purchase Error – for the product(s) in this group:”

    and

    “A cart maximum quantity of X units for the total group may be purchased. The current total for all the products in the group is: X units.”

    If that possible with the current code? If so, what file do I use.

    Also, will we be notified when the new release is available and will it be free for us customers?

    Plugin Author vark

    (@vark)

    Hi DeeperLook,

    Last question first – all the upgrades I mentioned will be available on the free version, and you’ll be notified via the normal WordPress update nag in wp-admin..

    As for introducing the spacing you desire, I’m sorry to say the only way of doing it is via a code hack… I can give you the code, if you like, but it’ll not be pretty.

    Hi Vark,

    Yeah I would love that code if you don’t mind.

    Thanks!

    Plugin Author vark

    (@vark)

    Hi,
    Replace line 1021 in vtmax-apply-rules.php

    $message .= __('<br /><span class="errmsg-text">A cart maximum quantity of &nbsp;<span class="errmsg-amt-required"> ', 'vtmax');

    with this:

    $message .= __('<br /><br /><span class="errmsg-text">A cart maximum quantity of &nbsp;<span class="errmsg-amt-required"> ', 'vtmax');

    thanks, i will try it out!

    Hi Vark,

    That worked perfectly! Thank you!

    Plugin Author vark

    (@vark)

    Hi,
    Glad that did the trick.
    Best,
    Vark

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing the CSS styling and Message’ is closed to new replies.