Max Shostak
Forum Replies Created
-
Forum: Reviews
In reply to: [SB SMS Sender] НепрацюеДобрий день!
Що саме не працю??
Яка верс?я WordPress та Woocommerce?
Реагувати продуктивно на таке пов?домлення неможливо…Woocommerce mobile app via API get post data. It use default functions like get_postmeta etc.
Product Price by Formula for WooCommerce via filters changes the output of the get_postmeta function. It apply coefficient for price.As I mention before if DB store the regualr price 100$ and “Product Price by Formula for WooCommerce” apply coef 1.25 I get price of the product 125$. And when I save data in “Woocommerce mobile app” I get regular price 125$ WITHOUT coef. And my display price now 125*1.25 = 156.25$
I think it must an option or filter restricting price when using API.
Such problems might be with some import/export tools- This reply was modified 2 years ago by Max Shostak.
Try to explaine better!
There is a row price of product or variation range
->
Price formula plugin apply its formula to change the price
->
Currency Price Switcher apply its currency koefAnd it work correct for all default entities
But Your plugin have widget for product page(under Add to card)In price.php for this widget you use function get_variation_max_price()
and at this sectionif ( ! $price ) { $price = $variation->get_price( 'edit' ); if ( ! $raw ) { $price = wmc_get_price( $price, $currency_code ); } }
you request RAW price without changes of 3d party plugins.
In my case I receive price range without applying price formula at all
only logic of Currency Price SwitcherCan you improve this section add support for 3d party plugins working with price in such a away or can you help me with my case
Thank you for your time!
- This reply was modified 3 years, 6 months ago by Max Shostak.
- This reply was modified 3 years, 6 months ago by Max Shostak.
I made something like this
add_filter('wpm_taxonomies_config', function ($taxonomies_config) { // this part to enable render filters on shop/category/tag if (is_admin() || is_cart() || is_checkout()) { $taxonomies_config['pa_brend'] = []; $taxonomies_config['pa_material'] = []; $taxonomies_config['pa_navantajennya'] = []; $taxonomies_config['pa_uknapovnyuvach'] = []; $taxonomies_config['pa_uktyp-matraczu'] = []; $taxonomies_config['pa_ukvysota'] = []; } // some add to cart decoration if (is_product() && $_SERVER['REQUEST_METHOD'] === 'POST') { $taxonomies_config['pa_brend'] = []; $taxonomies_config['pa_material'] = []; $taxonomies_config['pa_navantajennya'] = []; $taxonomies_config['pa_uknapovnyuvach'] = []; $taxonomies_config['pa_uktyp-matraczu'] = []; $taxonomies_config['pa_ukvysota'] = []; } return $taxonomies_config; }, 10);
With this snippet I do the maximum
And I filter $product->get_name this way to fix variation translation on cart/checkoutadd_filter('woocommerce_product_variation_get_name', function($value, $entity){ return $entity->get_title(); },10,2);
- This reply was modified 4 years, 1 month ago by Max Shostak.
Thank you @hsupyaenaung
This help me very muchForum: Plugins
In reply to: [Hide Admin Menu] Depricated function get_currentuserinfo()I check the plugin and it is seems that it have custom changes with version higher than expected 2.1.5.
Sorry for the inconvenienceForum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Stripe breaks select product variationI did all tests, that you ask to do!
Disable all the plugins one-by-one and change theme to Storefront
Nothing help!I have same instalation localy (Windows) and do not have such a problem at all
Both, production and local version of the website use same files and DB
But on production I have error.I try to import DB from production to local. And have no changes. On production there is an error on local – there is NO error.
WooCommerce Stripe Payment Gateway is used by me for more than 1 year.
And all was ok.I double check all the opntions in admin
And have same PHP version 7.3, WordPress 5.5.1, Woocommerce 4.5.2Help me with it or push for a solution
Hi guys!
Have same problem. Customizer do not loading…In version 1.6.1 you have ERROR in file /admin/index.php
string: 1124function bsf_reset_options( $option_to_reset ) {
require_once dirname( esc_html__FILEesc_html__ ) . ‘/../settings.php’
…You can check it, if try to update any setting on plugin setting page in admin pannel
Maybe plugin have other problems…Thank you all is correct now!
The reason in my case is empty excerpt.
And when Loop go throught the related posts it calls the excerpt
(basicly you need title and excerpt of it).And when the excerpt is empty for the post WordPress call the_content of the post.
But in your plugin you have shortcode, which dispetch to the hook
add_filter(‘the_content’, [$this, ‘theContent’], 9999);And this part of logic override and headingsCache setup with the wrong data…
You need add filter to Shortcode::theContent() to obmit this situation.
Feel free to contact me (Я могу говорить на Русском)
Can you help me to find the right point for debugin the output of the widget?
And when I fined the sollution I share it with youIf you do as @iamhannes advice. You can translate attribute values but attributes outputed as string with translate flags