tirux
Forum Replies Created
-
Forum: Plugins
In reply to: [User Access Manager] Cannot add HTML since last updateI had to re-assign manually the permissions of my users when I did the rollback.
I strongly suggest doing this rollback first in a staging environment.
Forum: Plugins
In reply to: [User Access Manager] Cannot add HTML since last updateYeah I had to rollback to version 1.2.14 to have it working again. I don’t remember exactly in what version it breaks this functionality.
Forum: Plugins
In reply to: [User Access Manager] Is it possible to auto-assign a group for new users?Thanks, I thought it didn’t work but I just saw that Woocommerce registration page doesn’t add the role subscriber but instead customer.
Thanks for the info, will give it a try.
Hello ORION,
I also need to put my sales badge with percentages instead of the text “On Sale” in Woocommerce. Your plugin doesn’t consider the $sale_price variable which I need to use in order to use percentage with the following code (courtesy of Envantotuts+):
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $post, $product; if ( ! $product->is_in_stock() ) return; $sale_price = get_post_meta( $product->id, '_price', true); $regular_price = get_post_meta( $product->id, '_regular_price', true); if (empty($regular_price)){ //then this is a variable product $available_variations = $product->get_available_variations(); $variation_id=$available_variations[0]['variation_id']; $variation= new WC_Product_Variation( $variation_id ); $regular_price = $variation ->regular_price; $sale_price = $variation ->sale_price; } $sale = ceil(( ($regular_price - $sale_price) / $regular_price ) * 100); ?> <?php if ( !empty( $regular_price ) && !empty( $sale_price ) && $regular_price > $sale_price ) : ?> <?php echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">-' . $sale . '%</span>', $post, $product ); ?> <?php endif; ?>
I am not sure how exactly I should implement your code in here.
- This reply was modified 7 years, 10 months ago by tirux.
Hello @geokongr,
Do you mind sharing your sale-flash.php code? I am having some struggle in having this work in mine.
Well I figured it out.
I am using a plugin called Admin Language Per User for my admin account to make my WordPress settings in English instead of Spanish. So WooCommerce PDF Invoices & Packing Slips takes in consideration this language for my invoices, instead of WordPress default language.
Aún no, pero realmente se me hace extra?o que lo tengo en espa?ol en un sitio pero en inglés en otro. Ambos tienen configurado el WordPress en espa?ol.
Forum: Plugins
In reply to: [Advanced Woo Search] Category label incomplete in PRO versionMade the fix myself with the following change in \advanced-woo-search-pro\assets\css\common.css
.aws-container .aws-search-form .aws-main-filter {
max-width: 250px;Forum: Fixing WordPress
In reply to: How can I put my meta description for WordPress search?Well I realized I needed to add the description inside the Excerpt field and then make a little change in Divi Theme to display such information in the search engine.
Forum: Plugins
In reply to: [User Specific Content] User Specific Content for ProjectI was wondering the same thing, I cannot see the User Specific Content box for projects.
Forum: Fixing WordPress
In reply to: How can I put my meta description for WordPress search?Bump for any possible answer.
Is it possible that WordPress search engine gets the meta description?
Thanks, it now works!