Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #930040

    Hi there,

    I’ve upgraded to the latest version of Enfold yesterday and since that I have additional information generated by the purchase button, that I really don’t need.
    See screenshot here (please find link to product of screenshot in private content)

    View post on imgur.com

    [What is the situation]
    Purchase button of Enfold in Avia Layout Builder adds too much information, for which I have built a (unsexy) plugin (the information above.

    [What should be]
    I would like the information to be omitted inside the purchase button. The price should stay there (only once of course), the rest shouldn’t.

    [What did I try]
    I tried deactivating some plugins, I thought that could have done the trick (which they didn’t) and also getting back to an older version of Enfold somehow did not work properly. I tried to edit the “product_snippet_button.php” with no real changes and also I searched in the config-WooCommerce folder of Enfold to find something (I didn’t).

    Please find FTP Account in private content.

    I’d be very happy if you could provide me with a solution here :)

    Thanks,
    Patrick

    • This topic was modified 6 years, 8 months ago by BierPlus.
    #931011

    Hey BierPlus,

    Thank you for using Enfold.

    Please use this code in the Quick CSS field to remove the extra information.

    #top .av-woo-purchase-button * {
        display: none;
    }
    
    #top  .av-woo-purchase-button form {
        display: block;
    }

    Best regards,
    Ismael

    #932450

    Hi Ismael,

    thanks for looking into it.

    Unfortunately it didn’t solve the problem properly.

    Now it looks as provided with the screenshot (Link to product in PC):
    a

    What I want is just to get rid of ONE of the prices above the purchase button (i.e. in the first post the 12.99) plus the text below (Umsatzsteuerbefreit, Lieferzeit, … ) but not the first price and not the quantity selection as this is important.

    CSS is also just a rather unsexy solution, I would love to get rid of it in the core code but I didn’t find any place, where this is suddenly coming from.

    • This reply was modified 6 years, 8 months ago by BierPlus.
    #933057

    Hi BierPlus,

    Here is a good article on how to modify price display
    https://www.cloudways.com/blog/change-woocommerce-price-display/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #935264

    Hi,

    yes I do need further assistance please. I do not find the part where wordpress decides to print that.

    Kind regards,
    Patrick

    #935860

    Hi,

    We adjusted the css code a bit. Please purge the cache then check the page.

    #top .av-woo-purchase-button * {
        display: none;
    }
    
    #top .av-woo-purchase-button form, #top .av-woo-purchase-button form .quantity {
        display: block !important;
    }
    

    Best regards,
    Ismael

    #936560

    Hi,

    thank you for editing the code. Unfortunately this breaks the Booking plugin, so that the calendar is not showing. I would really appreciate if you could find something in the PHP that causes the error. So that we don’t only treat the symptoms, but the “disease” itself.

    Thank you very much in advance for your great support.

    Kind regards,
    Patrick

    #936840

    Hi,

    Can you please consider work with the plugin support also, so we can see the results better?

    Best regards,
    Basilis

    #936852

    Hi Basilis,

    can you please clarify what (or who) you mean by plugin support? I think the error derives from Enfold itself because I did not have it in the past until the last update.

    Kind regards,
    Patrick

    #937436

    Hi BierPlus,

    I think Basilis meant WooCommerce plugin. And what php error are you referring to in the reply above?
    The info that is shown there is supposed to be there, if you do not need part of it or it is not sexy enough for you and css solutions do not work, please feel free to work out a solution yourself or hire a freelancer to do it for you.

    Best regards,
    Victoria

    #941060

    Hi,

    turns out I was wrong after all. It was indeed the product_snippet_button that has been changed recently in an Enfold update. I now uploaded an older version of the file that fixed the problem.

    I have to admit, that the support was better at some point. The CSS “solution” broke more than it helped (i.e. bookings were made non-usable). Furthermore the PHP-thing should be in your hands, as you are responsible for the Enfold theme.

    So my last question now to this topic – and I hope, that you can help me with that – how can I stop the file to be updated? I use a child-theme and created the directory “/enfold-child/config-templatebuilder/avia-shortcodes/” and put the older version of the product_snippet_button.php in there, but apparently when the newer version is reinstalled in the enfold main directory the changes are visible. How should the path in the child-theme be, so that only the older version (in the enfold-child directory) is active?

    Thanks in advance.

    Patrick

    #941678

    Hi,

    That happen because we have created a new way to handle shortcodes.
    In the newest version it will not happen again.

    Best regards,
    Basilis

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.