Sphere Plugins
Forum Replies Created
-
please try
Error Log Viewer by BestWebSoftto log the error which will tell us detailed file name and line so we can understand where we are making mistakes.before logging error please switch WordPress to debug mode to enable system error logging which is necessary as your previous error logs are not much clear.
alright, it seems there is a problem as there is no log about product category so it must be some other plugin that is causing this error, please allow me to check once more what else I can do for you and surely inform after few hours.
I’m really sorry because I sent you incomplete code in the last action where I missed
;so forgive me and please once again go to line 21$category=$this->eo_wbc_get_category();and under that puterror_log($category);in the file i.e. woo-bundle-choice/EO_WBC_Frontend/EO_WBC_Product.phpafter that rerun the process of selecting two products and paste the error log generated after that to the forum.
please now run the process of selecting two products and paste the error log generated by the process here in the forum so we can understand if the plugin could detect the current category of the product so that it can redirect to other product’s page.
So that means its too bad and once more go to line 21 ‘$category=$this->eo_wbc_get_category();’ and under that put
error_log($category)in same file i.e.woo-bundle-choice/EO_WBC_Frontend/EO_WBC_Product.phpand paste error log after doing process on your store.if there is a name of your product category in error log then it’s good.
By this action, we get confirmation that at least the plugin can recognize the category of current product and so that it can redirect to proper product groups.
we have tried to simulate the same state your system behave and as per result we countered that in
woo-bundle-choice/EO_WBC_Frontend/EO_WBC_Product.phpthere is an issue at line number 21$category=$this->eo_wbc_get_category();where it is not able to get current product category so if you can change the code at bottom of the file at line 358private function eo_wbc_get_category() { global $post; $terms = get_the_terms( $post->ID, 'product_cat' ); $term_slug=[]; foreach ($terms as $term) { $term_slug[]=$term->slug; } if(in_array(get_option('eo_wbc_first_slug'),$term_slug)) { return get_option('eo_wbc_first_slug'); } elseif(in_array(get_option('eo_wbc_second_slug'),$term_slug)) { return get_option('eo_wbc_second_slug'); } }to this one
private function eo_wbc_get_category() { global $post; $terms=wc_get_product_terms( $post->ID, 'product_cat', array( 'fields' => 'slugs' )); $first_cat=get_option('eo_wbc_first_slug'); $second_cat=get_option('eo_wbc_second_slug'); if(in_array($first_cat,$terms)) { return $first_cat; } elseif(in_array($second_cat,$terms)) { return $second_cat; } }it might solve the issue, so if solved please let us know so we would add this to updates.
Forum: Plugins
In reply to: [Woo Custom Filter Widget] Not working@phalancs as per moderator’s instruction we can’t help you this way but we will try to make our documentation good so other users like you can understand and till then please have a look at our video tutorials that will show you live actions and results.
if still facing difficulty then ask for help and please inform us of your progress too.
@jdembowski thank you for the forum guidelines and would like to ask if we can ask for error log or remote desktop access which is useful for debugging cases which are only seen rarely.
@amilaniguy we have checked the error log that you have provided and it says
WC_Cart::get_cart_url function is deprecatedand we ensure you that we are usingwc_get_cart_urlfunction and error log says that the plugin needs the address of cart page to redirect you to cart page but you receive 404 at the moment when you choose to go to another product page, which is quite different than your error log status.Forum: Plugins
In reply to: [Woo Custom Filter Widget] Not workingsorry, you have to face our plugin’s bad user-interface, but we are working on it and we will reconsider on updating our documentation too.
The setting page might look strange but it provides lots of flexibility, so if somehow we can help you then, please share it here and also would like to ask to send us admin access to your system so that we can help you, and it will surely help us too to make our documentation more understandable to other users.
regards
it will be much helpful if you could also provide us procedure to regenerate this issue so that we could fix this problem and make out plugin much robust.
sorry for the late reply and your losses, we have checked your attachment at it’s broken, please attach a valid link in order to study your issue much deeply.
Currently, we don’t support this feature but would like to add this feature to our upcoming release so that users can customize the order of filters.
we will notify you when this feature upgrade will be available at WordPress plugin hosting.
the requested feature is been added to our todo list, you can expect plugin updates within this week.
please feel free to report us if you need any further help.
we are currently working on this feature so you guys have to wait for next release which includes the feature of adding custom css to the page.