WordPress.org

Ready to get started?Download WordPress

Forums

Maximum Purchase for WooCommerce
[resolved] Changing the CSS styling and Message (9 posts)

  1. DeeperLook
    Member
    Posted 9 months ago #

    Hi,

    Great Plugin, however I want to change the css styling and the message that appears when your cart has reached its full quantity.

    Where are those files, thanks!

    http://wordpress.org/plugins/maximum-purchase-for-woocommerce/

  2. varktech.com
    Member
    Plugin Author

    Posted 9 months ago #

    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

  3. DeeperLook
    Member
    Posted 9 months ago #

    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?

  4. varktech.com
    Member
    Plugin Author

    Posted 9 months ago #

    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.

  5. DeeperLook
    Member
    Posted 9 months ago #

    Hi Vark,

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

    Thanks!

  6. varktech.com
    Member
    Plugin Author

    Posted 9 months ago #

    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');

  7. DeeperLook
    Member
    Posted 9 months ago #

    thanks, i will try it out!

  8. DeeperLook
    Member
    Posted 9 months ago #

    Hi Vark,

    That worked perfectly! Thank you!

  9. varktech.com
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,
    Glad that did the trick.
    Best,
    Vark

Reply

You must log in to post.

About this Plugin

About this Topic