-
AuthorPosts
-
March 20, 2018 at 6:41 pm #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)[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, 9 months ago by BierPlus.
March 22, 2018 at 4:38 am #931011Hey 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,
IsmaelMarch 24, 2018 at 6:38 pm #932450Hi 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):
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, 9 months ago by BierPlus.
March 26, 2018 at 3:54 pm #933057Hi 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,
VictoriaMarch 30, 2018 at 12:23 pm #935264Hi,
yes I do need further assistance please. I do not find the part where wordpress decides to print that.
Kind regards,
PatrickApril 2, 2018 at 2:29 am #935860Hi,
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,
IsmaelApril 3, 2018 at 2:03 pm #936560Hi,
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,
PatrickApril 3, 2018 at 11:01 pm #936840Hi,
Can you please consider work with the plugin support also, so we can see the results better?
Best regards,
BasilisApril 3, 2018 at 11:27 pm #936852Hi 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,
PatrickApril 5, 2018 at 5:04 am #937436Hi 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,
VictoriaApril 12, 2018 at 5:29 pm #941060Hi,
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
April 13, 2018 at 10:19 pm #941678Hi,
That happen because we have created a new way to handle shortcodes.
In the newest version it will not happen again.Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.