kristoffer132
Forum Replies Created
-
Forum: Plugins
In reply to: [Happy WooCommerce FAQs & AI FAQ Generator (Formarly XPlainer)] Sort FAQsPS. Tips, maybe you should add this code under the section shortcode:
function get_prod_faq_shortcode() {
global $product;
$id = $product->get_id();
return do_shortcode( ‘[ffw_template template=1 id=”‘ . $id . ‘”]’);
}
add_shortcode( ‘prod_faq_shortcode’, ‘get_prod_faq_shortcode’ );Then the user easy can add this shortcode anywhere on the product page : [prod_faq_shortcode]
Forum: Plugins
In reply to: [Happy WooCommerce FAQs & AI FAQ Generator (Formarly XPlainer)] Sort FAQsWow perfect, thanks!!
Another question, is it possible to create multiple FAQ lists? We are currently using this for common questions and answers but would like to use the same function to add, for example, active ingredients for the products and then use a different shortcode to show this in another tab.
https://likami.se/sv/produkter/likami-core/facial/facial-toner/
See the “Inneh?ll” and “FAQ” tabs for live examples. We would love to make the active ingredients clickable like FAQs and list all ingrediens as a separate list.
Shortcode structure
[ffw_template_xx id=20] for product tabs
[ffw_template_xx] for separate full page listOr could we use different tags or categories for this and use:
[ffw_template cat=faq id=20] for product FAQ tabs
[ffw_template cat=faq] for separate full page FAQ list[ffw_template cat=ingredients id=20] for product Ingredients tabs
[ffw_template cat=ingredients] for separate full page Ingredients list- This reply was modified 4 months, 3 weeks ago by kristoffer132.
Perfect, thanks!
Currently, your plugin appears to be the sole component in our system that is not compatible with HPOS. This incompatibility presents us with a dilemma: we must either disable your plugin or forego the benefits offered by HPOS. Both options are far from ideal, as they significantly impact our operational efficiency.
We highly value the functionality your plugin provides, but the advantages of HPOS are also critical to our system’s performance. Therefore, we are keenly interested in finding a solution that allows us to leverage both your plugin and HPOS effectively.
Could you please advise on any possible updates or workarounds that might resolve this compatibility issue? Your prompt attention to this matter would be greatly appreciated, as it is crucial for our ongoing operations.
Thank you for your understanding and cooperation.
When do you plan to release Cartpops V2? We are also missing the HPOS support in pro version.
- This reply was modified 10 months, 3 weeks ago by kristoffer132.
Forum: Plugins
In reply to: [WooCommerce] After the 8.5.0 update, I encountered an errorSame here: Fatal error: Uncaught Error: Non-static method
i am using divi theme
Working code for add custom fields to account:
add_action(‘um_after_account_general’, ‘showExtraFields’, 10);
function showExtraFields()
{$custom_fields = [
“company_name” => “F?retag”,
];foreach ($custom_fields as $key => $value) {
$fields[ $key ] = array(
‘title’ => $value,
‘metakey’ => $key,
‘type’ => ‘select’,
‘label’ => $value,
);$field_value = get_user_meta(um_user(‘ID’), $key, true) ? : ”;
$html = ‘<div class=”um-field um-field-‘.$key.'” data-key=”‘.$key.'”>
<div class=”um-field-label”>
<label for=”‘.$key.'”>’.$value.'</label>
<div class=”um-clear”></div>
</div>
<div class=”um-field-area”>
<input class=”um-form-field valid ”
type=”text” name=”‘.$key.'”
id=”‘.$key.'” value=”‘.$field_value.'”
placeholder=””
data-validate=”” data-key=”‘.$key.'”>
</div>
</div>’;echo $html;
}
apply_filters(‘um_account_secure_fields’, $fields, get_current_user_id() );}
/* ensure that the custom fields are updated when the account is updated */
add_action(‘um_account_pre_update_profile’, ‘getUMFormData’, 100);function getUMFormData(){
$id = um_user(‘ID’);
$names = array(‘company_name’); // ADD THE META-KEYS HEREforeach( $names as $name )
update_user_meta( $id, $name, $_POST[$name] );
}I have the same problem with Intercom chat that is broken for logged-in user because the mail is also convert on the fly from javascrip.
Thanks, Perfect!
I have the same problem/error on WPEngine and multisite. Hope you find a solution soon.