mandy semaan
Forum Replies Created
-
noted. last question please: how can I display under the product tile in the single product page “minimum quantity for this item is X” and dynamically get the minimum qty set in the backend ?
Thanks
it’s not working… throwing error when trying to save the functions.php file 🙁
can you share a little more details please? 😀
Thanks again
hello,
thanks for your feedback. I think I haven’t expressed myself properly 😛
I have the below code to display the total amount in a single product page.
the code works in variable products if I have default attributes selected, but doesn’t work for simple products:
- correct: variable product: 220 $ x 20 = $4400 (e.g.: https://blessingonline.com/shop/wedding/giveaways-wedding/grand-crystal-burner/)
- wrong: simple product: 23 $ x 20 = $23 (e.g.: https://blessingonline.com/shop/baby-collection/giveaways/all-good-things/)
How can I make the code work (display total amount) for all products with a minimum qty selected?
CODE
add_action( ‘woocommerce_after_add_to_cart_button’, ‘bbloomer_product_price_recalculate’ );
function bbloomer_product_price_recalculate() {
global $WOOCS;
global $product;echo ‘
Total’;
$priceo = $product->get_price();
$price = $WOOCS->woocs_exchange_value($priceo);
$currency = get_woocommerce_currency_symbol();
wc_enqueue_js( “
$(‘[name=quantity]’).on(‘input change’, function() {
var qty = $(this).val();
var price = ‘” . esc_js( $price ) . “‘;
var price_string = (price*qty).toFixed(0);
$(‘#subtot > span’).html(‘” . esc_js( $currency ) . “‘ +price_string);
}).change();
” );
}
add_action( ‘wp_header’, ‘bbloomer_product_price_recalculate’ );Hello, did you figure out what the issue is? Having the same error message…
Forum: Plugins
In reply to: [Product Addons & Fields for WooCommerce] Data error message not showingSorry again!
It works only when there’s one required field but not multiple ones.
Also, random error messages are appearing upon product load, error messages that are not even in the selected PPOM form.
Please advise.- This reply was modified 1 year, 10 months ago by mandy semaan.
Forum: Plugins
In reply to: [Product Addons & Fields for WooCommerce] Data error message not showingSorry, fixed! the theme had also add to cart ajax option that I disabled and it worked.
Thank youForum: Plugins
In reply to: [Product Addons & Fields for WooCommerce] Data error message not showingHello,
the ajax add to cart feature is disabled. Still not working.Forum: Plugins
In reply to: [Relevanssi - A Better Search] Displayed Dropdown result under search fieldPerfect. Thank you 🙂
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Displayed Dropdown result under search fieldWe’re talking about showing the taxonomy term archives in the dropdown results not the result page, correct?
Hello,
So if the “optional fee” is not available in your light version then the gift warp option cannot work, since it has no condition, right?
Thanks- This reply was modified 2 years, 5 months ago by mandy semaan.
Forum: Fixing WordPress
In reply to: Website will not scroll or load completely on SafariYes, it’s working now, after clearing my VPS cache.
Thank you all 🙂Also, I’m using the Avada theme, how can I have the exact same result as this? https://saintlombard.com/product/tote-bag/
Hello,
Facing the same issue:
-PHP Notice: Trying to access array offset on value of type bool in \wp-admin\includes\template.php on line 1080,1081,1079
elseif ( ‘sorted’ == $priority ) {
$title = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘title’];
$callback = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘callback’];
$callback_args = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘args’];
}\wp-admin\includes\template.php
with both php version 7.3 and 7.4…has there been any fix?
Hello again,
Thank you for your feedback,
Is there a way to call echo/call the form? if I wish to have it placed somewhere else (in another div for example)?Thanks
Hello,
Is there a way to remove the + sign from the list?
Thank you