Hops, sorry
Hops, sorry
Hi
I look at the “display field “have a coupon” into the cart page and checkout page.
Because i use “Smart Coupon and Coupon URL”, i don’t need to display this field.
In Woocommerce > setting > general, i have check option for “not display coupon field on Cart Page AND on Chekout Page. (2 options)
But the theme shown them and ignore the “don’t display Have a coupon box” setting on the woocommerce setting…
So my question is: how can i do for the theme (functions.php file i think) add a code for the theme child “see the setting put into woocommerce general option” for “seeing that the theme don’t display the box “Have a coupon?” on the Cart Page and the Checkout Page ?
Thanks in advance
i hope that i explain well the problem lol
Thanks in advance
Thanks !
I will try this
Hi
thanks for reply.
For better explain about my need, i think that i need is to how to impose the same height to the images of single product page for all the images of all the products which are displayed on the single product page?
i suppose it is in CSS ? i have see that i have css about the “diaporama” of the image into my css of the child theme: style.css
perhaps it is into this to make a change?
i don’t know…
I ll have trying to make this via the “product image” in the customizer but it don’t make the job as i need…
i hope that this explain help you to understand what i search to make: put for all image displaying on the “single product page” the same height in px : for exemple: put 250px for all and keep the aspect ratio (so that the width automatically adapts to the imposed height)
idealy it should good for me to add this into the style.css file of my child theme…
Hope you can help
thanks to tell me where (witch file) you put another code for this
hi
1/ thanks i have found
2/ yes i use single product builder
i attempt to change size image into “gallery” but nothing change…
i see that i ha css into child theme about gallery: perhaps it is that the problem?
i have found, thanks
Hello and thank you for your answer.
In fact, to better explain to you, we use a plugin to rate our products. (review system that we manage from the product administration: backend).
This plugin, once configured, must display the result on the “single product” page of our online products.
However, using “product builder”, the display of the result of these reviews is not automatic.
To do this I should logically use “block HTML” to integrate and display the result of this plugin (reviews).
The developers of this plugin maintain that the solution comes from the theme used and is not due to the plugin itself.
So my question is: how to integrate and display the result of these “reviews” in an “html block” or by adding a “compatibility code in the “functions.php” file of the child theme used.
I hope to be more explanatory and precise on my request.
Thank you in advance for considering my request in this regard. Not mastering the code used by the theme, I can’t solve this problem on my own.
yes thanks 🙂
Hi it is reappared lol
mistake lol
Hi,
i just discovered that the option general of a product in administration is not displaying (option product general where i can setting a lottery for a product): the panel have disapeared… (works integrated with lottery plugin) (normaly works but i just see that it desapeared when i try to edit a product because i don’t work on product to add actually: i just discovered this mistake when i go to “edit product”)
idem for the “Product Review Extra Settings” plugin that have desapeared too from the admin edit product… Normaly the display is into a tab into description of a product… (single product)
I just see this two problem because before changing theme it’s display fine and i just go to “edit product” and surprise…
is a missing arg in functions.php child theme?
Thanks in advance
Hi,
thanks for reply.
I have use HTML block into header and fix display of the Translator dropdown. It’s work. thanks for the tip.
Hi thanks for reply
Per default, when you active the plugin “language translator”, it display at the top-top header just above the logo.
But in the setting of the plugin, i can ajust the display but with the Xstore theme, i don’t know witch attribute to put or not if this setting can be applicated with the Xstore theme.
The link of the setting is provided in private content
In the same way of the space between text and price for the button “add to cart” (thanks for that), is it possible to do the same between “quantity” text and the “input number” ?
thanks in advance
none
Hi thanks for reply
link should work (test before okay)
*********
The plugin “Translator Revolution DropDown” that i use is not display on website… i think it is as the other plugin that need a code into functions.php file…
can you help with this?
sorry and thanks in advance
Ha ok…. sorry thanks
I have 2 questions more:
1/ how can i break the line and put the first element on middle center and the second element as the same (middle and center) (see private content)
(not the two element side by side) ?
and
2/ how can i add a space beetween text and price into the button ? where i can find the file that display this button for addind this “space”? (see private content)
thanks in advance
Hi thanks for reply
the link taskboard seems not working (not found page)
Hi
I have a question.
The module called “Request a quote”: is it possible to show it only on a specific page? or to a specific user role?
and is it forcely a popup? can’t show it for example on a “normal page” ?
If yes, how must i do?
thanks in advance
Ha ok. Thanks
and thanks a lot for your precious help
🙂
you are top!
Hi
Thanks a lot for the fix.
For the “coupon form”, it is only that i need customer can claim their coupon directly on the homepage and not only on the checkout page: it is not a plugin customization
because in my future activity, i want to sell “coupon code” for “pro customer” that this type of customer give for free to their customer.
So their customer (of the pro customer at who i sell coupon code) come to my website and claim their “codes” they have given by the pro customer for free…
i don’t know if i am clear with that… so i have search any code for can do this (add on the header of the website the form for claim coupon code…
nothing else…
i am thinking for that it is only the “ajax code” that be placed on the bad wey (in fact i don’t know, it is why i asked you that)
hope you understand…
Hi,
thanks for reply.
In fact, a “dedicated product” should display all templates from “gift card” of the “smart coupon plugin”.
The product that should display all the template is: https://www.jetentemachance.com/boutique/bons-dachats-recompenses/
The setting for this product is here: https://www.jetentemachance.com/wp-admin/post.php?post=84793&action=edit
And the setting from the plugin for this is here: https://www.jetentemachance.com/wp-admin/admin.php?page=wt-smart-coupon-for-woo_store_credit#wt-sc-gift-card-template
I have try to take your code and update it for the “smart coupon plugin” (pro version) as this:
// Make Smart Coupon compatible with XStore
add_action('init', function() {
if (function_exists('wt-smart-coupons-for-woocommerce-pro')) {
add_action( 'etheme_woocommerce_template_single_excerpt', 'wt-smart-coupons-for-woocommerce-pro', 25 );
}
});
but this make critical error (in fact i don’t understand how make this update and not if it is the good way…
*********************AND*********************** (another thing)
(code source from here: https://www.sitepoint.com/creating-a-woocommerce-redeem-coupon-page/)
perhaps you can help me for the other problem i see (another problem):
The fact: i want to display a “have a coupon” form on the front (homepage header) of my website.
so i have use this code:
//******************** RECLAMATION COUPON DU CLIENT BENEFICIAIRE BH ********************//
add_action( 'wp_ajax_bh_coupon_redeem_handler', 'bh_coupon_redeem_handler' );
add_action( 'wp_ajax_nopriv_bh_coupon_redeem_handler', 'bh_coupon_redeem_handler' );
function bh_coupon_redeem_handler() {
// Get the value of the coupon code
$codebh = $_REQUEST['coupon_code'];
// Check coupon code to make sure is not empty
if( empty( $codebh ) || !isset( $codebh ) ) {
// Build our response
$reponsebh = array(
'result' => 'error',
'message' => 'Le champ CODE COUPON ne doit pas être vide.'
);
header( 'Content-Type: application/json' );
echo json_encode( $reponsebh );
// Always exit when doing ajax
exit();
}
// Create an instance of WC_Coupon with our code
$couponbh = new WC_Coupon( $codebh );
// Check coupon to make determine if its valid or not
if( ! $couponbh->id && ! isset( $couponbh->id ) ) {
// Build our response
$reponsebh = array(
'result' => 'error',
'message' => 'Le COUPON CODE n\'est pas valide ou a déjà été utilisé. Merci de ré-éssayer.'
);
header( 'Content-Type: application/json' );
echo json_encode( $reponsebh );
// Always exit when doing ajax
exit();
} else {
// Coupon must be valid so we must
// populate the cart with the attached products
foreach( $couponbh->product_ids as $prod_id ) {
WC()->cart->add_to_cart( $prod_id );
}
// Build our response
$reponsebh = array(
'result' => 'success',
'href' => WC()->cart->get_cart_url()
);
header( 'Content-Type: application/json' );
echo json_encode( $reponsebh );
// Always exit when doing ajax
exit();
}
}
//******************** AJAX validation reponse coupon ********************//
jQuery( document ).ready( function()
{
jQuery( '#ajax-coupon-redeem input[type="submit"]').click( function( ev )
{
// Get the coupon code
var code = jQuery( 'input#coupon').val();
// We are going to send this for processing
data = {
action: 'bh_coupon_redeem_handler',
coupon_code: code;
}
// Send it over to WordPress.
jQuery.post( woocommerce_params.ajax_url, data, function( returned_data )
{
if( returned_data.result == 'error' )
{
jQuery( 'p.result' ).html( returned_data.message );
} else {
// Hijack the browser and redirect user to cart page
window.location.href = returned_data.href;
}
})
// Prevent the form from submitting
ev.preventDefault();
});
});
into my functions child theme.. but the “ajax validation code” make critical error (because i’d like to see the answer “valide coupon” for example disply just above the form…
the ajax funtion for validation is:
//******************** AJAX validation answer coupon ********************//
jQuery( document ).ready( function()
{
jQuery( '#ajax-coupon-redeem input[type="submit"]').click( function( ev )
{
// Get the coupon code
var code = jQuery( 'input#coupon').val();
// We are going to send this for processing
data = {
action: 'bh_coupon_redeem_handler',
coupon_code: code
}
// Send it over to WordPress.
jQuery.post( woocommerce_params.ajax_url, data, function( returned_data )
{
if( returned_data.result == 'error' )
{
jQuery( 'p.result' ).html( returned_data.message );
} else {
// Hijack the browser and redirect user to cart page
window.location.href = returned_data.href;
}
})
// Prevent the form from submitting
ev.preventDefault();
});
});
i don’t want abuse for help but i am blocked with this too…
i ‘ll appreciate you can tell me where is the problem with it?
I have create a “static block” for display the form as this:
<div class="cadre-coupon">
<div class="redeem-coupon" style="text-align: center;">
<h2><span style="color: #ff00ff;">Echangez vos COUPONS CODES</span></h2>
<form id="ajax-coupon-redeem"><input id="coupon" name="coupon" type="text" /><input name="redeem-coupon" type="submit" value="Validez votre COUPON CODE" />
</form><!-- #ajax-coupon-redeem -->
</div>
</div>
perhaps the “Ajax code” must go with this code and not on the functions.php file? but i don’t know if i can add this AJAC code into the “static block” ? yes ? no? if yes how i must do for not have critical error? must i add a plugin for can adding code into the “post” of the “static block”?
and must the “ajax code” go into PHP balise or not?
lol
i know, i am not a developer so excuse for stupid question
hope you can answer / help me with this
Do you know how i can tell to display first at open single product the second tab “INFORMATIONS COMPEMENTAIRES” ?
is it a code to add or in setting of the theme?
thanks in advance
hops: i have found
I have put the arrow in circle 😉
i have reput the quantity color 😉
Hi thanks
i think i make an error because i have lost the changed style of the q-ty to pink and the element (that you have put in function.php) is re-display on the left and not on center…
sorry… i think i should download file before change… sorry.. Could you reput the q-ty to pink and reput on center the ensemble? (text + qty) ?
sorry
what is the object of this on the functions.php file:
//add_action(‘after_setup_theme’, ‘etheme_wc_image_slider_support’, 2);
//function etheme_wc_image_slider_support () {
//add_theme_support( ‘wc-product-gallery-slider’ );
// }
? it is for what? i don’t know if i must keep active or not (afraid for the slider on single product page)
Another question:
on the header i have a “static block” that include the form “have you a coupon?” from woocommerce.
When i attempt to put a test coder, how can i have the response just under (because when i test, the answer (ex: coupon is not valide” is displaying in “my account” page”… have you a solution about this?
And last question (promise):
the flech direction for the slider on the gallery picture on single product page: how can i change color and visibility for the direction (not visible) and how can i put them not on the middle as a “normal slider” ? can i use “dot” instead of arrow?
or better: keep the way and put the same css as quantity input for the arrow direction for the slider (circle with pink border, background white and arrow in blue for exemple)
sorry for messing up, i am aware of your amazing help and i am super happy about it…sorry for my mistake…really
pardon
Hi, thanks for reply.
Yes it is this. i have update code for be as required (1 line for the text) and add br for correct space.
How can i put the “add to cart button” on the align : right ? because on the single product builder it is set on “right” but not on display?
the text on the “add to cart button” is setting on the buider, on the language file of the theme or on the plugin in use for lottery? do you know that? (for add space between the text and the price)
because in the state the text “Enter NOW for” is stuck to the price “10CBJ”,
also is it possible to have the prize only in another color (leaving the color as it is for the “Enter NOW for” (example: blue)?
thanks
Hi >>>
Hi
Thanks, it’s display.
How can i put it (the countdown) just after the short description of the product (and not at the end) ?
And also, how can i fix the “quantity input” at the center with the text “choose quantity” just before (and center too) ? (thanks for the color, it is what i needing)
You have help me a lot, really, merry thanks!!!!
(excuse bad english i am french)
thanks a lot
regards
i am dispo via email if needing
thanks
PEM >>>
regards
For win time >>>