jusemora30
Forum Replies Created
-
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Course page not loading properlyHello! That worked! thank you so much! keep the good work
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Course page not loading properlyThank you so much! I disable the WP-Optimize plugin, and it worked. How can I exclude it from JavaScript so it works when the plugin is activated?
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Course page not loading properlyI have the courses not ready to start selling them, so I have them password protected, password is: 123456 just in case
Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Clean attachmentsIs my concern being ignored? I need to remove all attachments from my host files
Honestly, I think it was first time and randomly because I was looking at the site sessions through “smartlook” and that’s where I saw it happened to a user
Forum: Plugins
In reply to: [WPC Product Options for WooCommerce] Change css?I removed the bottom part with CSS, I remember I right click the section and open “Inspect” copied the code and then ask chatgpt to hide that element with css and that’s it, copy paste the code lol
I had the same log error! it happened once then I closed the registration form, open it again and it worked fine, that was very weird! It was registration of a new account. I attached screenshot
Forum: Plugins
In reply to: [WooCommerce] Live Admin BarThank you @lhornaday !
That snippet worked perfect!! that LIVE was very annoying lol
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] LP Course CommentsThank you! that worked, not as the original but it does the work.
Is there a way to make it look like Capture 03? Capture04 is how it looks after I added the provided code to css. I see font got bigger and the alignment of the meta description is together next to the name, I would like to have it like it is on the capture 03 which is the capture from “Customizer” before adding the code.It is very weird that it looks different on customizer compared to frontend! lol Thank you for the excellent support!
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] LP Course CommentsHey! thank you for your reply.
It means that it may be an issue of the theme I use Blocksy theme from creativethemes. So if it’s the case then how could I fix the issue? should I change the theme or is there a snippet/css to fix this?
Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Attachments not displayingI’m sorry. I’m using the latest version of the plugin and disable the snippet that customized the plugin.
I created a new account to try as new customer, and attachments are not being displayed on old or new accounts. I attached video for reference. Thank you!
by the way the attachment is attached to the “order completed” email
Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Attachments not displayingGood day.
I don’t know much about coding, this was with ChagGPT help, I’m using the latest version of your plugin and this php is the only customization I have. I didn’t have issues before the last updateadd_action('woocommerce_order_details_after_order_table', 'display_wc_order_attachments');
function display_wc_order_attachments($order) {
$order_id = $order->get_id();
// Retrieve all attachment IDs associated with the order
$attachments = get_post_meta($order_id, '_wcoa_attachment_id');
// Define an array mapping file extensions to their corresponding icon URLs
$file_icons = array(
'vp3' => 'https://abdigitizing.com/wp-content/uploads/2024/06/VP3.png',
'xxx' => 'https://abdigitizing.com/wp-content/uploads/2024/06/XXX.png',
'zip' => 'https://abdigitizing.com/wp-content/uploads/2024/06/ZIP.png',
'dst' => 'https://abdigitizing.com/wp-content/uploads/2024/06/DST.png',
'emb' => 'https://abdigitizing.com/wp-content/uploads/2024/06/EMB.png',
'exp' => 'https://abdigitizing.com/wp-content/uploads/2024/06/EXP.png',
'hus' => 'https://abdigitizing.com/wp-content/uploads/2024/06/HUS.png',
'jef' => 'https://abdigitizing.com/wp-content/uploads/2024/06/JEF.png',
'pdf' => 'https://abdigitizing.com/wp-content/uploads/2024/06/PDF.png',
'pes' => 'https://abdigitizing.com/wp-content/uploads/2024/06/PES.png',
);
if ($attachments && is_array($attachments)) {
echo '<h2>' . __('Order Attachments', 'woocommerce') . '</h2>';
echo '<table class="order-attachments">';
echo '<thead><tr><th>' . __('Icon', 'woocommerce') . '</th><th>' . __('Name', 'woocommerce') . '</th><th>' . __('Date', 'woocommerce') . '</th><th>' . __('Action', 'woocommerce') . '</th></tr></thead>';
echo '<tbody>';
foreach ($attachments as $attachment_id) {
$file_url = wp_get_attachment_url($attachment_id);
$file_name = basename($file_url);
$file_extension = strtolower(pathinfo($file_name, PATHINFO_EXTENSION));
$attachment_date = get_the_date('', $attachment_id);
// Check if the file extension has a corresponding icon URL
if (isset($file_icons[$file_extension])) {
// Use the icon URL
$file_icon = $file_icons[$file_extension];
} else {
// Use a default icon URL if no specific icon is found
$file_icon = ''; // Add a default icon URL here
}
echo '<tr>';
echo '<td><img src="' . esc_url($file_icon) . '" alt="' . esc_attr($file_extension) . ' Icon" height="50px"></td>'; // Icon with 50px height
echo '<td>' . esc_html($file_name) . '</td>';
echo '<td>' . esc_html($attachment_date) . '</td>';
echo '<td><a href="' . esc_url($file_url) . '" class="button" download>' . __('Download', 'woocommerce') . '</a></td>';
echo '</tr>';
}
echo '</tbody>';
echo '</table>';
} else {
echo '<p>' . __('No attachments found for this order.', 'woocommerce') . '</p>';
}
}Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Attachments not displayingI’m using a customer account with attachments added to an order, I screen recorded the process. It’s displaying on orders tab under the order ID but nothing displayed on attachments tab
Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Attachments not displayingHey! Thank you for quick response. My only issue es that attachments are not being displayed on My Account / attachments tab, it says “There are no attachments to display.”
I used to fix that issue with previous code. Is it normal that I don’t see attachments after update?
Forum: Plugins
In reply to: [Order Attachments for WooCommerce] Attachments on Front end Styleyou’re welcome! I already used ChatGPT to change to provide me a php snippet to add column for icon of the file format and also the name and also to display attachment on order details of orders tab. It works amazing! Love your plugin