raperez
Forum Replies Created
-
Forum: Plugins
In reply to: [LuckyWP Table of Contents] Filter the_content and new H3 tagasURL (for example):
https://especialistasenmovilidad.com/skateboards/edad/
Hook: (2 ways):
1. WAY
function buffer_start()
{
ob_start();
}function buffer_end()
{
// modify buffer here, and then return the updated code
$buffer = ob_get_clean();$pattern = '/<a class="aawp-product__title"(.*?)<\/a>/s'; $replace = "<h3><a class=\"aawp-product__title\"$1</a></h3>"; $buffer = preg_replace($pattern, $replace, $buffer);echo $buffer;
}
add_action(‘wp_head’, ‘buffer_start’);
add_action(‘wp_footer’, ‘buffer_end’);2. WAY
add_filter(‘the_content’, ‘add_text_to_content’);
function add_text_to_content($content)
{$pattern = '/<a class="aawp-product__title"(.*?)<\/a>/s'; $replace = "<h3><a class=\"aawp-product__title\"$1</a></h3>"; $content = preg_replace($pattern, $replace, $content); return $content;}
Thanks!!!!
Forum: Plugins
In reply to: [LuckyWP Table of Contents] Filter the_content and new H3 tagasI have tested with 1 and again with 999. Same result.
Forum: Plugins
In reply to: [PW WooCommerce Gift Cards] Order totals are out of balanceHello again:
I have been investigating this issue and I have got more data. It seems that this error is not related to payment gateway. I will try to explain: If you make an order for a product which costs 70€, $order->get_totals() shows you 70€. Line items for the product also shows 70€. This is OK, so the system continues processing and go to the payment gateway. If you use a gift card, for example 35€, in $items there is only one item for 70€. However, $order->get_totals() shows you 35€. As the system detects this as an error, doesn’t continue working and displays the error.
I have discovered this using hook action_checkout_order_processed and lookin at $order object. However, I have not found there any data about gift card.
Can it help you to solve this problem?
Thanks!!Forum: Plugins
In reply to: [PW WooCommerce Gift Cards] Order totals are out of balanceThanks for your answer. We are using Woocommerce (now 3.8.1 version) with plugin Pasarela UniversalPay para WooCommerce (UniversalPay gateway for Woocommerce) given by the bank provider (version 1.0.1). Do you think that this is the problem? Sometimes gift cards can be used without problem ( normally when they are not fully used), but if all card credit is used then it shows the error. Hope it helps.
Thanks!!Hello again, thanks for your quick answer.
The problem is that it is not only about product 1, any “same product repetition” should be avoided for the discount, all products should be different.
Could this be done?
Thanks again!Forum: Plugins
In reply to: [Custom DataBase Tables] Update hidden field at cdbt-entryThans again!
Forum: Plugins
In reply to: [Custom DataBase Tables] Change table fields’ namePerfect! Your are the best!