mustafasabir12
Forum Replies Created
-
Forum: Plugins
In reply to: [Surge] How is the Woocommerce support?That is gr8. Thanks for the swift reply. Looking forward to trying it out ??
Well I have resolved the issue and found its cause, so will post the solution which should be helpful to other users maybe. My theme was implementing a custom ajax cart so it was showing the html <span> tag in the product name. Here is how my product would look in the cart : ProductName <span>-</span> ProductVariation instead of normal ProductName – ProductVariation.
So the problem lies in this file in the plugin Translate Press
translatepress-multilingual/includes/compatibility-functions.php
online 230
in plugin version1.7.9
add_filter( 'woocommerce_product_variation_title', 'trp_woo_wrap_variation', 8, 4); function trp_woo_wrap_variation($name, $product, $title_base, $title_suffix){ $separator = '<span> - </span>'; return $title_suffix ? $title_base . $separator . $title_suffix : $title_base; }
So of-course a simple fix would be to comment this code. But of-course you will lose separate translations for product name and product variation string. So I did not change here, but changed code in my theme file with custom ajax cart. So my theme had this piece of code for item title to display in cart:
<h3 class="title14 product-title"><a href="<?php echo esc_url($product_permalink)?>"><?php echo esc_html($product_name)?></a></h3>
Notice they are escaping the html of the product title (like anyone would normally do). So i just removed the
esc_html(
call and it solved my problem. Now the<span>
tags are parsed as normal html instead of showing in the product title.- This reply was modified 4 years, 7 months ago by mustafasabir12.
This issue will mostly occur if your website does not have SSL certificate, as Stripe payments does not work on plain non-secure http.
Hi,
Ok, In that case I will try to compare code differences between v1.7 and v1.9.2 for import and see what has changed. But till then will have to stick to the version running.
Regards,
MustafaHi Tobias,
Thanks for your support. I have resolved the issue. So the theme conflict was due to one file backup related code written in one of the theme files. So whenever the upload csv was running in tablepress it was firing that part of code in the theme. After commenting that block out Tablepress started working with my Directory Theme (by AIT). But the import issue with blank screen was still there. I also managed to resolve that by reverting to older version of tablepress plugin. I switched from version 1.9.2 back to 1.7 and import also started working. I guess some compatibility issue between wordpress 5.0.3 and tablepress 1.9.2 version. Anyways thanks for your support again.
Cheers ??
MustafaEven with debug true it gives me a blank screen on csv upload. The url it gets white page on is <website-url>/wp-admin/admin-post.php
Any ideas?
Hi Tobias,
I have tried disabling all plugins and resetting theme. Although plugin disable did not work for me, switching to default twentyeighteen theme had better results. The export now works and gives me a proper csv file, but the import now shows a blank white screen and nothing imports. Any ideas for this? will try to debug and check for errors. Also can you suggest me what theme code/hook could be interfering with the tablepress plugin import so that I can fix that in the theme. As I have to use that theme since my website is already built and running on it.
Thanks and Regards,
MustafaThanks for the reply, will update you by trying this out.