Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › How could i hide the option fee of Product addons atproduct manage page?
- This topic has 19 replies, 2 voices, and was last updated 5 years, 12 months ago by WCFM Forum.
- AuthorPosts
- November 19, 2018 at 4:56 am #37058
- November 20, 2018 at 7:08 am #37180WCFM ForumMember
Hi,
Kindly add this code snippet for the purpose –
add_action( 'end_wcfm_products_manage', function() { ?> <script> jQuery(document).ready(function($) { $( document.body ).on( 'init_tooltips', function() { $('#product_addons_data').find('.wc-pao-addon-content-price-type').css( 'display', 'none' ); $('#product_addons_data').find('.wc-pao-addon-adjust-price-select').css( 'display', 'none' ); }); }); </script> <?php }, 210 );
Thank You
- November 20, 2018 at 12:32 pm #37228MOHOParticipant
The price field also display
http://mall2.sites.moho.tw/admin/products-manage/Attachments:
You must be logged in to view attached files. - November 20, 2018 at 12:43 pm #37245WCFM ForumMember
Hi,
Please use this revised code –
add_action( 'end_wcfm_products_manage', function() { ?> <script> jQuery(document).ready(function($) { $( document.body ).on( 'init_tooltips', function() { $('#product_addons_data').find('.wc-pao-addon-content-price-type').css( 'display', 'none' ); $('#product_addons_data').find('.wc-pao-addon-adjust-price-select').css( 'display', 'none' ); }); $( document ).ajaxComplete(function() { setTimeout(function() { $('#product_addons_data').find('.wc-pao-addon-content-price-type').css( 'display', 'none' ); $('#product_addons_data').find('.wc-pao-addon-adjust-price-select').css( 'display', 'none' ); }, 10 ); }); }); </script> <?php }, 210 );
Thank You
- November 20, 2018 at 12:54 pm #37254
- November 20, 2018 at 4:03 pm #37285WCFM ForumMember
Hi,
Do you have deleted and added my new code?
Please clear caches and take a look.Thank You
- November 20, 2018 at 8:32 pm #37332
- November 20, 2018 at 8:34 pm #37336WCFM ForumMember
Really strange!
Look there is number “10” at line 667, change that to 100 and check once.
Thank You
- November 20, 2018 at 8:48 pm #37339MOHOParticipant
I use Product Add-Ons 3.0.3 the new version.
No change now
- November 20, 2018 at 8:56 pm #37340WCFM ForumMember
So, you are still getting this – https://wclovers.com/wp-content/uploads/2018/11/2018-11-20_203147-1.jpg
Kindly add this CSS to child theems’s style.css –
#product_addons_data .wc-pao-addon-content-price-type {display:none !important;}
Thank You
- November 20, 2018 at 9:22 pm #37342
- November 20, 2018 at 9:26 pm #37344WCFM ForumMember
Hi,
Don’t revert version, use latest once.
Actually, in 3.0 WC Product Addons changed totally.
In which site you have added this, I will check there and please keep latest version.
Thank You
- November 20, 2018 at 9:27 pm #37346WCFM ForumMember
One more thing, which browser you are using for testing this?
Google Chrome or something else! - November 20, 2018 at 9:30 pm #37353MOHOParticipant
I use Google Chrome
yes 3.0 change all - November 23, 2018 at 5:58 am #37617WCFM ForumMember
Can you please update WC Product Addons to 3.0+
I have to check that issue.
Thank You
- November 24, 2018 at 10:16 am #37831MOHOParticipant
I update WC Product Addons to 3.0.4
you could check it, thanks.
- November 24, 2018 at 11:04 am #37842WCFM ForumMember
Great .. I am checking this.
Thank You
- November 24, 2018 at 11:09 am #37851WCFM ForumMember
Hi,
Just checked and it works perfect for me – https://www.useloom.com/share/2064989ffda2444484f679d56dbc1b98
Possibly you are having caching issue.
Thank you
- November 26, 2018 at 1:55 pm #38103
- November 27, 2018 at 6:14 am #38286WCFM ForumMember
Hi,
DO you want to hide “Price” field?
Then how WC Addons will work?Thank You
- AuthorPosts
- The topic ‘How could i hide the option fee of Product addons atproduct manage page?’ is closed to new replies.