Saravana Kumar K
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Fields Factory] Field Group Clone SettingsThe first point, you think it’s a good idea, or put seperate line item only on whenever product has custom fields.
Second point, we don’t need clone config on setting page.? instead group level config is enough.?
Forum: Plugins
In reply to: [WC Fields Factory] Price Rule Won’t SaveIn your
wp-admin
go to Fields Factory -> Settings there you can see a property called Pricing Rules Behaviour (it is a tab widget), there click on the Price Tag Selector, now you will see a radio button with two option.
Default
will use woocmomerce’s default price template.
If you use different template for showing price then chooseCustom
there you can enter whatever ID or Class.Once done click the
Save Changes
button.Forum: Plugins
In reply to: [WC Fields Factory] Translation for non-supported languageThats a static text, you simple use your active theme’s translation file, or translation plugin to transalte that text.
Text Domain is :
wc-fields-factory
Forum: Plugins
In reply to: [WC Fields Factory] Product Select Field not able to add options and publish`Hi, sorry for the late reply, did you update to thew latest version, are you still facing issues.?
Forum: Plugins
In reply to: [WC Fields Factory] issue since update@henrydunbar Yes, pls update the field rule for that checkbox, One rule is for, if it is checked and another one is if it not checked.
Yes it is now, I have a silent update (without changing the plugin vertsion).
Prior to Version 4 we haven’t used
WC session
object on order handler, but version Version 4 has some dependency on theWC session
.In a normal order flow the wc session will be available in the order handler module, since it is from the
cart -> checkout
page.But here the subcription will happens in an arbitrary (as per schedule) time and the order will be prepared from the parent order, not from the cart object, hence no session.
Anyway now the condition has been included before accessing WC Session in order handler.
Hi, sorry for the trouble.
Pls update the following line of code in the /wp-content/plugins/wc-fields-factory/includes/wcff_order_handler.php
Replace the Line No 57 with the following.
$template = "single-product"; if (WC()->session) { $template = WC()->session->get("wcff_current_template", "single-product"); }
Forum: Plugins
In reply to: [WC Fields Factory] How to supply field name?I have updated the plugin to 4.0.1, now it will trigger
wcff_new_field_id
filter before creating new field.function override_field_id($_newId, $_groupId, $_fieldType = null) { /* Update the field id here */ return $_newId; } add_filter("wcff_new_field_id", "override_field_id", 10, 3);
Note:
There will be a prefix before every fields id, added by the plugin. eg. for Product Fieldswccpf_
, Admin Fieldswccaf_
, Variation Fieldswccvf_
Forum: Plugins
In reply to: [WC Fields Factory] How to supply field name?That would be good feature, will update you shortly.
Forum: Plugins
In reply to: [WC Fields Factory] Fields factory not registering that checkbox has been hitHi, checked your link, it seems to be working, also currently you are not using Fields Factory right.?
Forum: Plugins
In reply to: [WC Fields Factory] Show cart item dataHi, yes the 2nd point is true, we need cart item key to fetch the current custom value. and avoid duplicate.
but here we receive only
$html
and$id
arguments from the filter.I am afraid you will have to edit the Woocommerce PDF Catalog plugin to supply the cart item key as well.
Hope this will get you in the right direction.
Forum: Plugins
In reply to: [WC Fields Factory] Show cart item datafunction show_text_pdf ($html, $id) { if (!$html) { $html = ""; } if( count( WC()->cart->get_cart() ) > 0 ) { foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { if (($cart_item["product_id"] == $id) && isset($cart_item[ "wccaf_fritextutskrift"])) { /** * * This $field has user value as well as some additional meta for other functionalities * So we cannot use it as a whole * * */ $field = $cart_item[ "wccaf_fritextutskrift" ]; /* The user_val property inside $field has the actual user value */ $html .= 'Position: ' . isset($field["user_val"]) ? $field["user_val"] : ""; } } } return $html; } add_filter( 'woocommerce_pdf_catalog_before_product_information', 'show_text_pdf', 10, 2);
Let me know how it goes
- This reply was modified 2 years, 10 months ago by Saravana Kumar K.
Forum: Plugins
In reply to: [WC Fields Factory] Show cart item dataHi,
Pls let me know the actual requirement, so that I can help little more.
I am guessing, you are using Woocommerce PDF Catalog plugin to create pdf catalog of your products right.?
In that case you wanted to include the custom field details into the catalog.
Am I right.? If not pls give me some details.
I am still not cleared why you need to access Cart Object, do you need to export cart item as pdf.?
Forum: Plugins
In reply to: [WC Fields Factory] Show cart item dataHi,
Pls try this updated snippet.
function show_text_pdf ($html, $id) { if( count( WC()->cart->get_cart() ) > 0 ) { foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { if( isset( $cart_item[ "wccaf_fritextutskrift" ] ) ) { /** * * This $field has user value as well as some additional meta for other functionalities * So we cannot use it as a whole * * */ $field = $cart_item[ "wccaf_fritextutskrift" ]; /* The user_val property inside $field has the actual user value */ echo isset($field["user_val"]) ? $field["user_val"] : ""; } } } $html = 'Position: ' . $cart_item; return $html; } add_filter( 'woocommerce_pdf_catalog_before_product_information', 'show_text_pdf', 10, 2);
Let me know if it solved or not.
Forum: Plugins
In reply to: [WC Fields Factory] Admin Fields@modiphier Regarding the admin fields only on Order & Email, Its a known issue, both are fixed in the upcoming release, pls wait for few days.