Stefan Vasiljevic
Forum Replies Created
-
That is great news! Thank you!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce checkout pageThat one can be tricky basically the ajax can’t be executed for non-logged in users. Can you please share the system status and logs?
- System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
- Error log: share a copy of the fatal error log found under WooCommerce > System Status > Logs (if available)
Forum: Plugins
In reply to: [WooCommerce] Woocommerce checkout pageAs far as I can see you have a 403 response (Forbidden) on your AJAX script that is running on checkout. As a first step I would fix that and take it from there.
POST https://www.mghlonline.be/?wc-ajax=update_order_review 403
That error might be the source of the issue you’re currently experiencing.
- This reply was modified 3 years, 5 months ago by Stefan Vasiljevic.
Forum: Plugins
In reply to: [WooCommerce] How to Reach Order Code with Current User ID?Hi @loopforever,
This should work:
$customer = wp_get_current_user(); // do this when user is logged in $customer_orders = get_posts(array( 'numberposts' => -1, 'meta_key' => '_customer_user', 'orderby' => 'date', 'order' => 'DESC', 'meta_value' => get_current_user_id(), 'post_type' => wc_get_order_types(), 'post_status' => array_keys(wc_get_order_statuses()), 'fields' => 'ids', )); $user_orders = array(); // foreach ($customer_orders as $orderID) { $orderObj = wc_get_order($orderID); $user_orders[] = array( "orderID" => $orderObj->get_id(), "orderTotal" => $orderObj->get_total(), "orderDate" => $orderObj->get_date_created()->date_i18n('Y-m-d h:i:s'), ); } echo '<pre>'; var_dump($user_orders); echo '</pre>';
Hi @wpnewbie14 you can try with this one:
// Display variations dropdowns on shop page for variable products add_filter( 'woocommerce_loop_add_to_cart_link', 'show_var_on_shop' ); function show_var_on_shop() { global $product; if( $product->is_type( 'variable' )) { woocommerce_variable_add_to_cart(); //simple :) } else { echo sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->get_id() ), // get_id() instead of id esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ); } }
- This reply was modified 3 years, 5 months ago by Stefan Vasiljevic.
Forum: Plugins
In reply to: [WooCommerce] Emails contain Bluehost hosting domain (via)I think it has something to do with DNS SPF record or DMARC. One of the common issues is that the domain it was sent from doesn’t match the domain in the “From:” address.
To fix the issue:
- Publish an SPF record that includes the IPs of the vendor or affiliates which send your messages.
- Sign your messages with a DKIM signature that is associated with your domain.
- Make sure the domain in the “From:” address matches the domain you’re using to authenticate your emails.
- This reply was modified 3 years, 5 months ago by Stefan Vasiljevic.
Forum: Plugins
In reply to: [WooCommerce] Scheduled Actions – PendingHi @klous-1, as Mirko already suggested, it’s most likely an issue with your host.
You can try to install this plugin it can report some common WP cron issues so you will get some insight faster than from your host ??
Forum: Plugins
In reply to: [WooCommerce] Email nameHi @basvweb it might be using your admin email.
Check your email address in
Settings->General->Administration Email Address
Also some plugins can override the default settings, so please check this as well.
Forum: Plugins
In reply to: [WooCommerce] any better alternative to woocom tax plugin?I used Avalara on lots of projects for US based shops and it works really well.
- This reply was modified 3 years, 5 months ago by Stefan Vasiljevic.
Forum: Plugins
In reply to: [WooCommerce] Stock Management – hold stock settingsHi @gemmalcurran, It only applies to products that have manage stock option enabled. When you don’t have that option enabled, the assumption is that you have an unlimited stock ??
Forum: Plugins
In reply to: [WooCommerce] Text is showing bold on woocommerce product pagesHi @hamudi I can still see the related products hidden on your product page. The snippet i shared above will only work if you don’t have hard-coded related products on single product template.
Can you please check your single product template?
It should be in your theme folder,
woocommerce/content-single-product.php
the second file you should check iswoocommerce/single-product/related.php
Forum: Plugins
In reply to: [WooCommerce] Bug on site links with extra unknown parameter v=You’re welcome ??
Forum: Plugins
In reply to: [WooCommerce] Checkout Page: Terms and Conditions Not LoadingSo this is not a default WooCommerce behaviour, this might be added to Divi theme you are using.
Please try adding this snippet you your functions.php file and it might help
add_action( 'wp', 'wdc_woo_checkout_tc' ); function wdc_woo_checkout_tc() { remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 ); }
Forum: Plugins
In reply to: [WooCommerce] Text is showing bold on woocommerce product pagesHi @hamudi,
This is caused by having some unclosed tags. I managed to identify one, it’s in your related products.
P.S. Hiding related products by css is not a good thing to do.
To hide them you should add the following snippet to your theme’s
functions.php
/** * Remove related products output */ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
Forum: Plugins
In reply to: [WooCommerce] Bug on site links with extra unknown parameter v=Hi @nossileee,
this is because WooCommerce is trying to geolocate your customers with caching support. To disable it go to
WooCommerce->Settings->General
and change the option forDefault customer location
to other thanGeolocate (with page caching support)