Forum Replies Created
-
AuthorPosts
-
Hi Harry,
Also I noticed as the plugin developer noticed that on the Quick View page from Home page:
If you view source on this page as developer of plugin says:
1. The NYP script doesn’t appear to be loaded at all as I don’t see http://ipac.store/wp-content/plugins/woocommerce-name-your-price/assets/js/name-your-price.js in your page source.
Please can you have a look and see how name-your-price.js can be loaded on this Quick view page.
M nay Thanks
RizwanHi Harry,
I have sent your reply to plug-in developer and see what the next steps are.
In terms of the second request for:
2. The Price of £10 to appear on the home page under Where Most Needed.Can you please have a look at this?
Many Thanks
Kind Regards,
RizwanHi,
I have been in touch again with plugin developer and they have suggested:
This is a custom popup implementation. Name Your Price is fully compatible with WooCommerce.com’s Quick View plugin but it can’t be guaranteed to work with every other popup plugin. That said, it appears that the NYP scripts aren’t running there as the suggested price should be pre-filled in the input.
1. The NYP script doesn’t appear to be loaded at all as I don’t see http://ipac.store/wp-content/plugins/woocommerce-name-your-price/assets/js/name-your-price.js in your page source.
2. Once enqueued and loading you may need to mimic what I’m doing to add compatibility with Quick View: which is re-initialize the NYP scripts once the popup is loaded (because NYP is not there on page load like in the default setup). Here’s how I’m doing that as an example:
/**
* Run when Quick view item is launched.
*/
$( ‘body’ ).on( ‘quick-view-displayed’, function() {
$( ‘body’ ).find( ‘.cart:not(.cart_group)’ ).each( function() {
$( this ).woocommerce_nyp_update();
} );
} );Please have a look at the suggestion above. I hope something can be arranged to allow the price to be pre-populated.
For your information:On the home page:
Where Most Needed – is using Suggested Price
Where as the other Products (Donations) are using Minimum Price.
Would ideally prefer – Where Most Needed – is using Suggested Price since I can add my won price, however for this case I need
1. Price to be per-populated in Donation Amount ( £ )
2. The Price of £10 to appear on the home page under Where Most Needed.
I really need to take site live asap and would appreciate your help in this matter.
Many Thanks
Kind Regards,
RizwanMarch 9, 2019 at 2:12 am in reply to: Functionality of Site Changed a couple of days ago and do not know why? #29534Hi,
Many Thanks for this. I checked – WooCommerce > Settings > Products > and saw the settings wer was you had in screenshot already. However seeing the site ,it now works as I needed.
Many Thanks for the update, much appreciated.
Kind Regards,
RizwanHi Harry,
I have been in touch with the developer for the plugin and this is their view:
——————————————————————————————————————————————-
2 ISSUES:1. Also I have noticed the suggested price does not appear in the Donation Amount (£) text box. If this can be filled this would be great.
2. On the Home page:
https://ipac.store/
For example Where Most Needed the text underneath it, does not have £10 as suggested amount. I would like the suggested amount price underneath the Product Title.For issue #1. Name Your Price will fill in the suggested price in the price input by default, even for variable products. Unless, something prevents it from doing so. When i visit your homepage, you appear to be using some custom popup scripts and in my browser log I’m seeing script errors reported: https://cl.ly/8280b3ffaf0e I suspect this is preventing the Name Your Price scripts from running properly.
For issue #2. These products appear to be Variable products. When a product has a Name Your Price-enabled variation, I have tried to follow the variable product style of price string, ie: “From: $99”. Granted, this isn’t ideal when there’s no minimum price as you can end up with “From: $0.00”. In this case, I tend to think that it’s best to hide the price string, which you can do by adding the following snippet to your theme’s functions.php
/*
* Remove Price display for Variable Products with NYP variations.
*/function kia_remove_single_price_for_nyp_variable() {
global $product;if( $product->is_type( ‘variable’ ) && class_exists( ‘WC_Name_Your_Price_Helpers’ ) && WC_Name_Your_Price_Helpers::has_nyp( $product->get_id() ) ) {
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10 );
}
}
add_action( ‘woocommerce_before_single_product’, ‘kia_remove_single_price_for_nyp_variable’ );function kia_remove_loop_price_for_nyp_variable() {
global $product;if( $product->is_type( ‘variable’ ) && class_exists( ‘WC_Name_Your_Price_Helpers’ ) && WC_Name_Your_Price_Helpers::has_nyp( $product->get_id() ) ) {
remove_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_price’, 10 );
}
}
add_action( ‘woocommerce_before_shop_loop_item’, ‘kia_remove_loop_price_for_nyp_variable’ );I hope that helps. Please let me know if you have any further questions about Name Your Price.
—————————————————————————————————————————————
I hope we can come to a solution on this matter.
I await your reply.
Many Thanks
RizwanHi,
Many thanks and appreciate your help.
Thank you.Hi,
Many Thanks.
Do I have to activate all 6 plugins, since some might not be applicable for me.
Many Thanks
Hi Harry,
Many thanks for your reply and comments.
I will as advised get in touch with plugin developers and see if they can fix / alter on their side.I will let you know how it goes.
Many thanks.
Kind Regards,Hi,
Thanks, I followed this method, however said that Envato toolkit is going to be ended and should delete and replace with Envato Market. So this is what I did and updated theme but got the error message that
The theme is the least version.
Please can you help me.
Many Thanks.Hi
I have seen in your documentation:
themeforest-18929281-claue-clean-minimal-woocommerce-theme/claue_main_files/document/index.html#updating-themeThat their is an Auto Update and Manual Method, in my case which one would you suggest or would you suggest something else.
Appreciate your help in any way.
-
AuthorPosts