dvamvourellis
Forum Replies Created
-
Forum: Plugins
In reply to: [Nexi XPay] Important issues to be reviewedHello, do you have any updates? these are pretty urgent/important matters for us.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Credit card fields not showing upHey, im reporting back, i was able to point to the issue in my case it seems that the Speed Optimizer plugin from siteground messes up with some js.
After deactivating, the latest version works fine.
I have informed also the the Happiness engineer and created this ticket.
https://ww.wp.xz.cn/support/topic/brares-the-official-stripe-plugin-credit-card-form/#new-topic-0Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Credit card fields not showing upThank you for the quick response, unfortunately downgrading didnt work for me.
i have created a ticket here https://woocommerce.com/my-account/contact-support/#contact-us but there was no place to write so i can add the link to this post.
Please let me know if there is anything more i can do.
Edit: after you submit the form, there is a popup chat… i thought it was the ai chat at first and closed it 🙁
- This reply was modified 2 months, 3 weeks ago by dvamvourellis.
Hi @anwaret1995 can you share the solution please?
Thank you very much for all the details! Based on that, i managed to create a custom page to present the data.
Thank you, Dimos
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Initiate wishlist after ajax filterHi, is there any update here? im mainly looking for the way to reinitiate the plugin in a page.
Thank you for the fast response! It worked fine.
I would propose to add a note in the ‘no carrier found’ message in the search, because I had no idea this was an option.
Forum: Plugins
In reply to: [WC Pickup Store] 00_shipping_pickup_store_id is not set correctlyAfter more tests, we were able to pin point the problem to two locations and we noticed that if in the title there was the symbol & then the 00_shipping_pickup_store_id was 0
after we changed the name and removed the & it works fine.
Forum: Plugins
In reply to: [WC Pickup Store] 00_shipping_pickup_store_id is not set correctlyafter some debugin i got this, i hope it helps
get_posts()andWP_Querycannot filter by title directly ('title'arg is ignored).
So your original code doesn’t actually search by title.Here’s the correct and clean way to do it:
function wps_get_page_by_title( $title, $post_type = 'page' ) {
global $wpdb;
return $wpdb->get_var( $wpdb->prepare(
"SELECT ID
FROM $wpdb->posts
WHERE post_title = %s
AND post_type = %s
AND post_status NOT IN ('trash', 'auto-draft')
ORDER BY post_date ASC, ID ASC
LIMIT 1",
$title,
$post_type
) );
}This returns:
- The post ID if found
nullif not found
Second option
version that uses a
posts_wherefilter to search by exact title safely./**
* Find a post by exact title.
*
* @param string $title
* @param string $post_type
* @return WP_Post|false
*/
function wps_get_page_by_title( $title, $post_type = 'page' ) {
add_filter( 'posts_where', 'wps_filter_where_by_title', 10, 2 );
$query = new WP_Query( array(
'post_type' => $post_type,
'post_status' => 'any',
'posts_per_page' => 1,
'orderby' => array( 'date' => 'ASC', 'ID' => 'ASC' ),
'no_found_rows' => true,
'update_post_term_cache' => false,
'update_post_meta_cache' => false,
'title_filter' => $title, // custom param for our filter
) );
remove_filter( 'posts_where', 'wps_filter_where_by_title', 10 );
return $query->have_posts() ? $query->posts[0] : false;
}
/**
* WHERE filter to match post_title exactly.
*/
function wps_filter_where_by_title( $where, $query ) {
global $wpdb;
// Only apply if our custom param is set.
if ( $title = $query->get( 'title_filter' ) ) {
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_title = %s", $title );
}
return $where;
}Explanation
WP_Queryhas no nativetitlearg, so we pass our own (title_filter) and intercept the SQL withposts_where.- We use
$wpdb->prepare()to prevent SQL injection. - The filter is added only for this query and then removed immediately after.
- This performs an exact match on
post_title— case-sensitive depending on your DB collation (usually case-insensitive in WordPress).
Forum: Plugins
In reply to: [Your Simple Slider] Link for each slideafter some more testing, i managed to make what i was loking for, basically we can add the target link for each slide in the caption of the image and the image will be linked.
Add a tiny helper (above
your_simple_slider_shortcode)// Return a URL from an attachment's caption (empty string if none) function yss_get_caption_url( $attachment_id ) { $caption = wp_get_attachment_caption( $attachment_id ); if ( ! $caption ) return ''; // If the whole caption is a URL, use it if ( filter_var( trim( $caption ), FILTER_VALIDATE_URL ) ) return trim( $caption ); // Otherwise, extract the first URL in the caption text if ( preg_match( '/https?:\/\/[^\s"]+/i', $caption, $m ) ) return $m[0]; return ''; }Replace the slide output inside
your_simple_slider_shortcode()loop
Find this part inside theforeach ($image_ids as $image_id)loop:if($heightunits == 'px'){
$output .= '<div class="slider-item"><div style="background-image:url(' . esc_url($image_url) .'); height:' . esc_attr($height) .'px;"></div></div>';
} else {
$output .= '<div class="slider-item"><div style="background-image:url(' . esc_url($image_url) .');"></div></div>';
}Replace it with:
$link = yss_get_caption_url( $image_id );
$slide_inner = ($heightunits === 'px')
? '<div style="background-image:url(' . esc_url($image_url) . '); height:' . esc_attr($height) . 'px;"></div>'
: '<div style="background-image:url(' . esc_url($image_url) . ');"></div>';
if ( $link ) {
// target/_blank optional; keep rel for security
$output .= '<div class="slider-item"><a href="' . esc_url($link) . '" rel="noopener noreferrer">' . $slide_inner . '</a></div>';
} else {
$output .= '<div class="slider-item">' . $slide_inner . '</div>';
}- This reply was modified 7 months, 2 weeks ago by dvamvourellis.
Forum: Plugins
In reply to: [Advanced Popups] Limit display сache lifetime doesnt workVery sorry to see nice plugins that are not supported anymore. Ive been using this plugin in two websites with the same issue, where i set the сache lifetime setting to 3 days but every time i reload the page the popup shows.
Hey,
Thanks for your reply, youre right, i missed a few things,I didnt know that tax was only for products, but i figured it out and so i was using price excluding tax in shipping. In google pay, in my case its still not clear because its missing the arrow (as you can see from my previous screenshot), the truth is that its a bit strange why in google and apple pay shipping is shown tax excl but its ok if you say that thats the expected functionality.
About Apple pay, i checked the arrow to see the amounts in detail and here i noticed that subtotal is 0, not sure if thats normal. https://snipboard.io/0QeItW.jpg
heres the video showing the change in the amount (sorry i mixed the numbers but the change still happens). https://drive.google.com/file/d/1BvdlWpxpbXI1LnepcFACEWBhw0vR2VE_/view?usp=sharing
The currency settings was already as you said (https://snipboard.io/XpN76s.jpg).
But if i try to use . i see https://snipboard.io/ONDHVG.jpgHey, here are everythig you asked for, let me know if you manage to reproduce it because to me what i explain bellow happens in multiple installations.
woo status
https://pastebin.com/WYSLsFUbTax settings
https://snipboard.io/kVAzEg.jpg
https://snipboard.io/HgVLG9.jpgI want to note, that even though it doesnt make sense, the way ive noticed that shipping tax works if you select taxable, then you need to put the shipping amount tax excluded, because even though in tax settings i have selected to put prices tax included, for shipping it doesnt work. If in shipping, i select taxable and then put the amount included tax, in checkout and in the calculations it will add tax on top.
The interesting thing, is that while i was taking the screenshots, the first time i opened the popup (https://snipboard.io/56EslB.jpg), it was showing the price as expected tax excluded (based on what i explained above). after that i closed that popup and click to edit another shipping and after closing and going back to edit the first shipping, it showed the price tax included (https://snipboard.io/zmTGsl.jpg), (2.56 + 17% vat = 3) so maybe something is wrong there in settings. So at first in all differrent shippings the price was shown as i had inputed it tax excl. after opening and closing a few it started showing all of them tax incl.As for google pay i dont see any arrow near the total amount
https://snipboard.io/BixWSa.jpgHeres also with apple pay
https://snipboard.io/EAmXyl.jpgHi @frankremmy thanks for the quick response, maybe it wasnt clear in my original post but im referring to the express chekout options with apple pay and google pay.
As mentioned, the tax shows correctly everywhere else and also calculates correcty everywhere (including the express checkout login) the issue is how the shipping amount shows in the express checkout (without tax).https://snipboard.io/X34K8h.jpg
Please let me know anything else i can provide to assist in the investigation.
Best, Dimos- This reply was modified 9 months, 2 weeks ago by dvamvourellis.
Forum: Plugins
In reply to: [BOX NOW Delivery] Version 2.1.8 issuesHi, do you also experience this issue?
https://ww.wp.xz.cn/support/topic/popup-does-not-open-after-the-initial-selection/
Also, heres a quick css fix for the button thats outside the container.#box_now_delivery_button {
position: relative;
}note: with astra both issues exist + there is a distortion on the container which i almost fixed with this css (i couldnt fix it 100% because there is some style set in the html)
#box_now_selected_locker_details {
width: 100%;
text-wrap-mode: wrap !important;
}