hjvanessen1965
Forum Replies Created
-
I changed the fields of the post you mentioned so it would be me logic to me to.
add_filter( ‘kadence_woomail_order_body_text’, ‘custom_function_adding_delilvery_date’, 10, 2 );
function custom_function_adding_delilvery_date( $text, $order ) {
if ( is_a( $order, ‘WC_Order’ ) ) {
$text = str_replace( ‘{datum_levering_dpd_pick-up}’, $order->datum_levering_dpd_pick-up(), $text );
}
return $text;
}BUT I got an error on the email editing page.
So I then just copied the code 1:1 from the post mentioned and got the same error. Which is:Fatal error: Uncaught Error: Call to undefined function up()
in /var/www/vhosts/keukendeurtjesaffabriek.nl/staging.keukendeurtjesaffabriek.nl/wp-content/themes/online-shop-child/functions.php on line 195.
The code on line 195 is:
$text = str_replace( ‘{billing_email}’, $order->get_billing_email(), $text );Any suggestions?
SOLUTION:
I have WOO 8.1 running right now and changed the following settings (with help of the FB Group) and the color selector works fine.
Go to WooCommerce -> Uni CPO Settings -> Custom selector (id/class) for a product image wrapper html tag -> remove “figure”, so it just says: .woocommerce-product-gallery__wrapper
(do not forget to keep the dot in front!)@webcraftuk I looked at my post in the FB discussion, but cannot see your screenshots, nor do I understand what you mean with “This can be updated in the plugin’s Settings page and solves the problem.” Please explain.
@mrpsiho, I for sure know that it caused the problem I described. See my post in the FB group asking you for support. You will see what I did and for sure Woo 7.8.2 causes the problem I described. Looking forward to the new update. thnx.
Forum: Plugins
In reply to: [WooCommerce] UNI CPO NOT COMPATIBLE WITH WOO 7.8.xHi Roxy, thanks for reaching out, too!
On my (Dutch) site I use the Plugin UNI CPO. That plugin offers sub-option-pictures for any product. As you see on this page. Despite you probably do not understand the Dutch, just klick on any colored circle on that page and the image will change… into a sub-option of that product.
As per Woo 7.8.0 clicking on a sub-option caused not showing the sub-option anymore. Every color selection just showed the original product image. So it took a while to figure out what plugin caused the damage. Finally I saw a change in my orders (not colored images in the order) and I saw that the error occurred after the Woo 7.8.0 update.
I downgraded (back) to Woo 7.7.1 and now the sub-option works again as you can see on the linked page.
Something (on the way to heaven, I guess) happened within the Woo development causing to kill the UNI CPO plugin sub-option.
(But I cannot live without. My life is miserable without, etc etc)Nope, nothing mentioned in the comments worked for me (as mentioned before). Guess what? My provider has an option called “PhP Boost”. 2 hours after I ticked that option, I could save every page and post I created. On ALL (!!) of my websites. Was it the PhP Boost, was it the coffee I drank trying to relax from this husstle, was it the 2 hours rest or was it all the above I tested and all of the before mentioned? Unfortunately I will never know.
Nothing of the above suggestions worked.
When I have a post or page, I CAN save it when there is no iframe-code or button-code with an url in it.
The moment I add an iframe or something that looks like https://….. I get this error.
I have a membership site with 90 video’s on Amazon S3, so every post or page hold such code.
What can I do?
Oh, and Woocommerce is already on the latest version, so that also had a major update and I cannnot go back to WP 5.1.
Any briljant solutions?- This reply was modified 4 years, 11 months ago by hjvanessen1965.
@tizys check the documentation on datastructure. Read it more than once (at least I needed it) and be sure you understand how the module and [save to DB] works.
Once a module is saved to the DB, you can create a new product and LINK dat saved module in that new product. It took me a while to understand, but since I know how it works it is a great feature.
Perhaps that eases the pain of 500+ products…
??Well, wait a while… I checked my provider and although I have this site up and running for a year, I see no SSL certificat connect (anymore).
Yep, that was the problem.
Problem solved@bartdenhartog Read the document. And I do not mean RTFM, but I had to read it twice outloud to understanbd the datastructure of CPO.
https://moomoo-agency.gitbooks.io/uni-cpo-4-documentation/
By now I understand I belief it is briljant. BUT if you do not get the point and use the [write to DB] the whole thing becomes a nightmare. So please read.- This reply was modified 5 years, 2 months ago by hjvanessen1965.
Yes!, I did not understand the [WRITE TO DB] functionallity and did something very very stupid. I think and hope I will not do that again.
Case closed.Bart, I had the same issue. I went to just one of the products I use CPO for, and went to one of the modules in the product changed a letter, changed it back, saved in with DB checked and save the overall page, and there the lost info was back again.
Groet Henk-JanI found the solution.
Cut the formula.
Save it.
Paste the formula.
Save it.
Now the original result is back again.
Strange.
Very strange.**SOLVED**
I have created new product with the same formula. Still wrong calculation. In Excel, the calculation of that formula is correct. It seems as if the first field (in example ‘600’ is recalculated to ‘0.600’.
I just checked the formula in Excel and that works fine.
It seems as if the mm’s I use in the formula get another value.
I changed the size in Woocommerce from ‘m’ to ‘cm’ and to ‘mm’ but also that does not help. (thought I read that somewhere)- This reply was modified 5 years, 11 months ago by hjvanessen1965.