sosoluis
Forum Replies Created
-
Strangely, It stopped days ago… I think it was the last Jetpack update.
The good thing it’s resolved. No matters… Thank you very much to everyone for your time!- This reply was modified 7 years, 7 months ago by sosoluis.
I had this issue: I take the code from Woocommerce to “translate” Custom links to social icons, but strangely the text you put in links appeared next to icon.
In this moment, I have been proving your solution with not success… until I have remove the code… Then I have surprise myself with this: IF YOU PUT ABOVE THE CODE A COMMENT, ICONS ARE NOT ALONE. YOU MUST NOT COMMENT TO SHOW ONLY ICONS. Very and totally weird!I am under OSX, with Safari. I tested Firefox and Chrome, and seems problem only recreates on Safari. Strange…
With the code, it seems without snow, but at the moment you click in a blank zone in the page, it starts: https://www.soloediciones.com
Ah, not! Finally is runnig!
Thank you to appoint me to the right direction (I need to know better the filters options).
If I change it to this, I have no message, only button text:
add_filter( 'woocommerce_product_single_add_to_cart_text', 'texto_boton_reserva', 20, 2 ); function texto_boton_reserva( $text, $product ){ if ( $product->backorders_allowed() ) { $text = __( 'Agotado: Reservar', 'woocommerce' ); } return $text; } add_action( 'woocommerce_after_add_to_cart_form', 'custom_woocommerce_after_add_to_cart_form' ); // alert backorder function custom_woocommerce_after_add_to_cart_form() { global $product; if ( $product->backorders_allowed() ) { ECHO 'OPCIóN DE PRODUCTO AGOTADA. <br />Puedes reservarlo y te lo enviaremos en cuanto llegue a nuestros almacenes.<br />'; } }
that code causes my site crashes to blank
As I said previously, if I leave alone the button text filter, I would have to specify all and every type of button that can appear (add to cart, download… etc.). I don’t want to recreate every text in a sentence, I only need to control conditionally the case of backorder allowed, so the filter needs to go into a condition inside a function (someone can correct me if I mistake).
I have created another function that executes at initializing (basically with the same sentences in the “alert” text function), but does nothing (again):
add_action( 'init', 'cambiar_compra_reserva' ); function cambiar_compra_reserva() { global $product; if ( $product->backorders_allowed() ) { add_filter( 'woocommerce_product_single_add_to_cart_text', 'texto_boton_reserva' ); } } function texto_boton_reserva(){ return __('Reservar','woocommerce'); } add_action( 'woocommerce_after_add_to_cart_form', 'custom_woocommerce_after_add_to_cart_form' ); //Alert backorder function custom_woocommerce_after_add_to_cart_form() { global $product; if ( $product->backorders_allowed() ) { add_filter( 'woocommerce_product_single_add_to_cart_text', 'texto_boton_reserva' ); ?> PRODUCTO AGOTADO. PUEDES RESERVARLO Y TE LO ENVIAREMOS TAN PRONTO LLEGUE A NUESTROS ALMACENES. <?php } }
Forum: Plugins
In reply to: [WooCommerce Product Dependencies] Product variationsI had wrote previously there… This plugin is all what I need if the programmer adds this feature, or, in exchange, an inverse dependency (product appears only if you don’t have purchased an specific item).
Forum: Plugins
In reply to: [WooCommerce Product Dependencies] Product Dependencies – Variations.I have using your awesome pluging, congratulations. I have found it searching, precisely, for this reason. I need to sell books+pdf or pdf only. If someone only buys pdf, i want give him the possibility to buy only the book discounting PDF prize. This feature will be that I need!
Please, tell me if finally you add it.
Thank you.I am searching for this too.
?Nobody have an idea?I didn’t updated WordPress due to a continuous error every time I try to update it.
Anyway, today I have reinstalled all my site with the last version…
Waterwoo is still failing…
I cannot send that book, but I send you a promo generated in the same manner. It will be sent by soloediciones.comThank you.
I am having the same issue, but my pdf is 1.4 version.
My wordpress is 4.2.3, woocommerce 2.4.7 and waterwoo (free) 1.1Forum: Themes and Templates
In reply to: [Atahualpa] Inner columns disappearedI am saying that I HAVE ACTIVATED FRONT PAGE in that option… Always have been showing them, but a days ago they have disappear.
Forum: Themes and Templates
In reply to: [Atahualpa] Inner columns disappearedI have last version of all: atahualpa 3.7.22 and wordpress 4.1