How to hide elements in vacation plugin? Resolved
Tagged: hide options
January 5, 2019 at 8:15 am #50218
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…
January 5, 2019 at 10:08 am #50228
Nah it did not work with CSS….
January 6, 2019 at 9:38 am #50279
January 6, 2019 at 9:53 am #50285
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).
January 7, 2019 at 2:39 am #50331
@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.
January 7, 2019 at 2:47 pm #50365
This is cool thanks.
January 7, 2019 at 3:28 pm #50367
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?
January 8, 2019 at 7:12 am #50406
@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.
January 8, 2019 at 1:55 pm #50447
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.
January 10, 2019 at 12:22 am #50581
@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.
January 10, 2019 at 12:22 am #50582This reply has been marked as private.
January 10, 2019 at 1:42 pm #50657
This one works really great! But it is version 1.1.7 and the previous one I had downloaded from your homepage/my account was only 1.1.3?
Anyway, is this the official update, or will you push this update later?
January 11, 2019 at 1:09 am #50697
@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.
January 11, 2019 at 9:16 am #50766
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.
January 12, 2019 at 8:09 am #50868
The topic ‘How to hide elements in vacation plugin?’ is closed to new replies.