How to hide elements in vacation plugin? Resolved
Tagged: hide options
MichaelgimmParticipantJanuary 5, 2019 at 8:15 amPost count: 36
I have the vacation plugin installed but it never really worked. Therefore I have a lot of fields that vendor can put some text in, but it will never display anywhere.
I would like to only show those that actually work, which is the checkbox for closing down shop and the text to display on button. Can I limit the text to show on that button as well, then it would be great.
Please help me hide/remove the other ones, since I don’t want to display the text: “Please don’t use this one, cause it is not working” on all the other ones.
If I can use those two options alone, then it would be sufficient.
I did remove some of it with CSS, but it is not that pretty…
MichaelgimmParticipantJanuary 6, 2019 at 9:53 amPost count: 36
Sure. You have some of it in your documentation: https://wc-marketplace.com/knowledgebase/wcmp-vendor-vacation/, though it is missing 1 of the fields regarding “set number of days for the notification…”
The other ones I have marked with green (keep) and red (delete).
NerdySupportExpert MoumitaKeymasterJanuary 7, 2019 at 2:39 amPost count: 4600
@michaelgimm, In order to remove these fields you have to override the “wcmp_vendor_vacation_settings_template.php” template file and remove the line number :
You will get the instruction inside this template (via WCMp_vendor_vacation >> template ) file on how to override this file.
Let us know if you need any further help.
MichaelgimmParticipantJanuary 7, 2019 at 3:28 pmPost count: 36
One more question. Vendor is able to remove the “Buy” button, by clicking the “Would you like to avoid any purchase on holidays”. This is a good feature and it works that way, that vendor must click the dates he is on holiday for disabling buy button on products. This makes sense.
But what about the other functionality with the text on the “Add to cart” button text? I would like it to display/not display the same way that the first one does. The risk by the way it works now is, that vendors might forget to remove the text (cause they have to delete the text), and then the text would still be visible on button, even though they have returned from holiday.
What do you think about that?
NerdySupportExpert MoumitaKeymasterJanuary 8, 2019 at 7:12 amPost count: 4600
@michaelgimm, if the option “Would you like to avoid any purchase on holidays” is enabled, then there will not be any Add To Cart button at all.
However, the display of the add to cart button text depends whether the vendor has selected any date from the calendar (we have added this checking from version 1.1.3). Only then the changes will be reflected on the shop page.
Let us know if you have any further query.
MichaelgimmParticipantJanuary 8, 2019 at 1:55 pmPost count: 36
You are right, this solution would be great. I run version 1.1.3 and made this little video for you so you can see how it works on my site: https://www.useloom.com/share/98b639c6b6f84ade8c0d65229ed56558
…cause it does not.
NerdySupportExpert MoumitaKeymasterJanuary 10, 2019 at 12:22 amPost count: 4600
@michaelgimm, as you can see this flow is working properly on our end – https://www.useloom.com/share/340fca965f424cefad0dc97a3e56a23d
You can check the same in our demo too – http://wcmpdemos.com/all-in-one-demo/my-account/
Now, I am sharing the updated version with you, can you please check if this is working on your end.
NerdySupportExpert MoumitaKeymasterJanuary 11, 2019 at 1:09 amPost count: 4600
@michaelgimm, the current version is 1.1.7
You can download this version from here directly – https://wc-marketplace.com/my-account/my-api-downloads/.
Or you can simply update the plugin from your site directly.
MichaelgimmParticipantJanuary 11, 2019 at 9:16 amPost count: 36
haha 🙂 It would be really nice to be able to update WCMp plugins on my site like I am able to with ALL other plugins 🙂
But as I have told you many times, WCMp plugins, and ONLY WCMp plugins can’t be updated like all other plugins and I never know when a new version is available. Only WC Marketplace (core plugin) works.
But I will download new plugin from your link. Thanks.
The topic ‘How to hide elements in vacation plugin?’ is closed to new replies.