Shah Paran Srijan
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to change store administrator?@jonayedhosen and @mosesmedh,
Thanks for your assistance. I see the issue is resolved.Forum: Plugins
In reply to: [WooCommerce] How to change store administrator?@jonayedhosen Thanks for your response. I followed your suggestions but it didn’t work.
Here’re the steps I followed:- I went to WooCommerce > Extensions > My Subscriptions, I see my correct email is connected but I do not see WooCommerce Shipping under my subscritions.
- I tried disconnecting and reconnecting my store with WooCommerce with my current and corrent email address.
- I uninstalled WooCommerce Subscriptions plugin and intalled it again through WooCommerce.com website with correct email address. But when I go to the setting, I see the same message- You do not have permission to manage shipping label payment methods, please contact your store administrator: name (email), to manage payment methods.
I do not have access to the current email address that is associated with WooCommerce Shipping plugin.
- This reply was modified 2 weeks, 4 days ago by Shah Paran Srijan.
@iankusht sorry, it was a client website. We couldn’t make it work so the client decided to use another plugin. We haven’t created any support ticket.
Hello,
Thanks for looking at this. Unfortunately, it doesn’t work for me. I only have Elementor free and Astra free theme installed.@revolvedmedia I see their doc is updated, please check: https://wpamelia.com/configuring-zoom/
Ok, I opened the request here becasue I opened a ticket on the premium chanel but didn’t get a reply in 3 days.
- This reply was modified 12 months ago by Shah Paran Srijan.
It works. Thanks!
There is a minor correction on your CSS though (you missed a hyphen).
sc-product-item-list { --sc-product-title-text-color: #ffffff !important; --sc-product-price-text-color: #ffffff !important; }
- This reply was modified 1 year, 1 month ago by Shah Paran Srijan.
The solution works, thanks.
I think you should update the doc. I didn’t see any mention of it on your doc here: https://surecart.com/docs/product-list-guide-shop-page/Sorry, this was for a clients website and the website isn’t live at the moment. However, we deduced that the limit was 10. We removed a few unused tags and the new one appeared after that. I hope this helps.
Thanks. It worked.
Sorry, I should be more precise. I am aware that CartFlows doesn’t have any option to control the emails. I meant to ask if there were any WooCoomerce hook or filter to acomplish this.
I don’t think you need to stop sending the product via email in order add the downloads on the thank you page. I am adding my work so far if it comes in any help.
I have created a shorcode [check_product_purchase product_ids=”ID”]. This takes the order number from the thank you page’s URL parameter, fetch the billing email, check if the registered user/guest user has purchased the product before and show a download link on the shortcode block. However, my code can’t provide access to the guest user, so the download is not working.function has_bought_items( $user_var = 0, $product_ids = 0 ) { global $wpdb; // Based on user ID (registered users) if ( is_numeric( $user_var) ) { $meta_key = '_customer_user'; $meta_value = $user_var == 0 ? (int) get_current_user_id() : (int) $user_var; } // Based on billing email (Guest users) else { $meta_key = '_billing_email'; $meta_value = sanitize_email( $user_var ); } $paid_statuses = array_map( 'esc_sql', wc_get_is_paid_statuses() ); $product_ids = is_array( $product_ids ) ? implode(',', $product_ids) : $product_ids; $line_meta_value = $product_ids != ( 0 || '' ) ? 'AND woim.meta_value IN ('.$product_ids.')' : 'AND woim.meta_value != 0'; // Count the number of products $count = $wpdb->get_var( " SELECT COUNT(p.ID) FROM {$wpdb->prefix}posts AS p INNER JOIN {$wpdb->prefix}postmeta AS pm ON p.ID = pm.post_id INNER JOIN {$wpdb->prefix}woocommerce_order_items AS woi ON p.ID = woi.order_id INNER JOIN {$wpdb->prefix}woocommerce_order_itemmeta AS woim ON woi.order_item_id = woim.order_item_id WHERE p.post_status IN ( 'wc-" . implode( "','wc-", $paid_statuses ) . "' ) AND pm.meta_key = '$meta_key' AND pm.meta_value = '$meta_value' AND woim.meta_key IN ( '_product_id', '_variation_id' ) $line_meta_value " ); // Return true if count is higher than 0 (or false) return $count > 0 ? true : false; } function check_product_purchase( $atts ) { $product_ids = isset( $atts['product_ids'] ) ? explode( ',', $atts['product_ids'] ) : array(); $order_key = isset( $_GET['wcf-key'] ) ? sanitize_text_field( $_GET['wcf-key'] ) : ''; $order_id = isset( $_GET['wcf-order'] ) ? absint( $_GET['wcf-order'] ) : 0; // If the order ID is not provided in the URL parameter, retrieve it using the order key if ( empty( $order_id ) && ! empty( $order_key ) ) { $order = wc_get_order_id_by_order_key( $order_key ); if ( ! empty( $order ) ) { $order_id = $order; } } // If the order ID is not valid or not provided, return error message if ( empty( $order_id ) || ! $order = wc_get_order( $order_id ) ) { echo '<p>Error: Invalid or missing order ID.</p>'; return; } $user_email = $order->get_billing_email(); if ( has_bought_items( $user_email, $product_ids ) ) { // Get the downloadable files for the product(s) $downloads = array(); foreach ( $product_ids as $product_id ) { $product = wc_get_product( $product_id ); $product_downloads = $product->get_downloads(); if ( ! empty( $product_downloads ) ) { $downloads = array_merge( $downloads, $product_downloads ); } } if ( ! empty( $downloads ) ) { echo '<p>You can download the following file(s):</p>'; echo '<ul>'; foreach ( $downloads as $download ) { echo '<li><a href="' . esc_url( $download['file'] ) . '">' . esc_html( $download['name'] ) . '</a></li>'; } echo '</ul>'; } else { echo '<p>No downloadable files were found for the purchased product(s).</p>'; } } else { echo '<p>This user has not yet purchased any of these products.</p>'; } } add_shortcode( 'check_product_purchase', 'check_product_purchase' );
Forum: Plugins
In reply to: [WooCommerce] Variation name appears twice on order details and emailsI tried switching to the default Twenty Nineteen theme and change the attribute name to ‘Package’, didn’t solve the issue.
Forum: Plugins
In reply to: [WooCommerce] Variation name appears twice on order details and emailsWe’re using Astra free theme, we never had any issues like this with this theme.
The order emails are default Woocommerce emails, I just changed the default color from Woocommerce settings.
And the attribute name ‘Quantity’ was working fine before I added two new variations.- This reply was modified 4 years, 3 months ago by Shah Paran Srijan.
- This reply was modified 4 years, 3 months ago by Shah Paran Srijan.
Forum: Plugins
In reply to: [WooCommerce] Variation name appears twice on order details and emailsAnd this screenshot is from order notification email: https://prnt.sc/vz9tdv