Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
    • you can also create a Google Ads account during the onboarding process if you wish, but this should be optional

    Yes, you’re right that it should be optional. However, it isn’t. To proceed with the onboarding process, creating and claiming an Ads account is mandatory. This is problematic, especially for new e-commerce businesses that are just getting started.

    @oleksandr… yes, your solution solves the problem.
    But… i manually approved posts. I loose approvals every time I rebuild cache.
    So… i have to remember wich post are to publish and wich are to hide.

    So, is it not more easy if the thumbnails are stored locally?

    Grandiosi!
    Ho installato il vostro plugin perchè è l’unico che blocca preventivamente i cookie, esattamente come richiesto.

    Avrei però dei suggerimenti per migliorarlo: innanzi tutto, servirebbe uno shortcode per il pulsante di reset delle preferenze (obbligatorio).

    Inoltre, sarebbe utile poter categorizzare i cookie e permettere agli utenti di scegliere le varie categorie. Vedendo in giro (cookie bot e iubenda), ho notato che i cookie vengono divisi sostanzialmente in: Necessario – Preferenze – Statistiche – Marketing.

    Sarebbe comodo e necessario anche inserire il segnaposto {{cookie_page}} ove linkare la Cookie Policy Estesa.

    Non so se erano modifiche già in roadmap, ma sarebbero davvero utili. A proposito, avete un link per la roadmap?

    Sono uno sviluppatore, e stavo cominciando a modificarlo io stesso, ma visto che siete tornati, aspetto la nuova release.

    EXTRA: sarebbe utile anche, un servizio che rilevi automaticamente i cookie utilizzati da un sito web. Ci stavo lavorando su ed ho trovato phantom.js (ne ho trovato un accendo a quest url: https://www.iubenda.com/en/help/290-come-identificare-quali-cookie-sono-installati-dal-tuo-sitoapp). Ovviamente, questo richiederebbe una piattaforma a cui registrarsi e tramite la quale ottenere dinamicamente la lista dei propri cookies. Sarebbe una specie di cookiebot.

    In bocca al lupo e grazie mille ??

    Thread Starter Il_maca

    (@il_maca)

    Great!

    Thank you @littlepackage,
    have a nice day ??

    Thread Starter Il_maca

    (@il_maca)

    Just an example:

    Added new function in woocommerce-grift-wrapper.php (for test only):

    public function add_gift_wrap_after_coupon_test() {
    		$coupons_var = $this;
    		// Set our template to be the override template in the theme.
    		$tmpl = get_stylesheet_directory() . '/woocommerce-gift-wrapper/gift_wrap_after_coupon.php';
    
    		if ( ! file_exists( $tmpl ) ) {
    			// If the override template does NOT exist, fallback to the default template.
    			$tmpl = __DIR__ . '/templates/gift_wrap_after_coupon.php';		}
    
    		// Display the template.
    		include $tmpl;
    	}

    Edited add_action, to call new function:
    add_action( 'woocommerce_cart_coupon', array( $this, 'add_gift_wrap_after_coupon_test' ) );

    So, i created gift_wrap_after_coupon.php file in woocommerce-gift-wrapper/templates/:

    
    <?php
    /**
     * Default: Template for Gift Wrap After coupon.
     *
     * Note:
     *
     * @var $coupons_var
     *
     * @package woocommerce-gift-wrapper
     */
    
    ?>
    
    <?php
    if ( count( $coupons_var->get_giftwrapped_products() ) > 0 ) {
    ?>
    			<tr>
    				<td colspan="6" class="actions">
    					<div class="giftwrap" style="cursor:pointer;font-family:'Montserrat',sans-serif;padding:15px 0px;">
    						<div style="display:inline-block;">
    							<i class="ecommerce-gift" style="padding: 0 0 0 22px;width:68px;font-size:29px;display:inline-block;float:left;color:#EC7A5C;"></i>
    							<span><?php _e( 'Vuoi regalarlo a qualcuno?', 'woocommerce-gift-wrapper' ); ?></span>
    						</div>
    						
    						<a href="#" class="show_giftwrap" style="float:right;font-size:0.8125rem!important;">
    <?php
    							if ( get_option( 'giftwrap_header' ) == 'Add gift wrapping?' || get_option( 'giftwrap_header' ) === false ) {
    								_e( 'CLICCA PER LA CONFEZIONE REGALO', 'woocommerce-gift-wrapper' );
    								//_e( 'Add gift wrapping?', 'woocommerce-gift-wrapper' );
    							} else { // pre version 2.0
    								echo esc_html( get_option( 'giftwrap_header' ) );
    							}
    ?>
    						</a>
    					</div>
    
    					<div id="wc-giftwrap" class="wc-giftwrap giftwrap-coupon" style="display:none;padding:18px;background:rgba(84,84,84,0.05);">
    <?php 
    						if ( $coupons_var->giftwrap_modal == 'yes' ) { // if modal version
    							$coupons_var->display_giftwrap_modal( $label = "_coupon" );
    						} else if ( $coupons_var->giftwrap_modal == 'no' ) { // non-modal version
    ?>
    							<?php/*<div class="giftwrap_header_wrapper">
    								<h3 class="giftwrap_header">
    <?php 
    									if ( get_option( 'giftwrap_header' ) == 'Add gift wrapping?' || get_option( 'giftwrap_header' ) === false ) {
    										_e( 'Add gift wrapping?', 'woocommerce-gift-wrapper' );
    									} else { // pre version 2.0
    										echo esc_html( get_option( 'giftwrap_header' ) );
    									}
    ?>
    								</h3>
    							</div>*/?>
    <?php
    							if ( $coupons_var->current_theme_name == 'Avada' ) echo "<form method='post' class='giftwrap_products'>";
    
    							if ( $coupons_var->giftwrap_details != '' ) echo "<p class='giftwrap_details'>" . $coupons_var->giftwrap_details . "</p>";
    			
    							$coupons_var->giftwrap_list( $label = "coupon_" );
    ?>		   
    							<button type="submit" id="coupon_giftwrap_submit" class="button btn alt giftwrap_submit fusion-button fusion-button-default" name="giftwrap_btn" style="clear:both;">
    <?php
    								if ( get_option( 'giftwrap_button' ) == 'Add Gift Wrap to Order' || get_option( 'giftwrap_button' ) === false ) {
    									_e( 'Add Gift Wrap to Order', 'woocommerce-gift-wrapper' );
    								} else { // pre version 2.0
    									echo get_option( 'giftwrap_button' );
    								}
    ?>
    							</button>
    <?php
    							if ( $coupons_var->current_theme_name == 'Avada' ) echo "</form>";
    						}
    
    						
    ?>
    						<script type="text/javascript">
    							/* <![CDATA[ */	
    <?php
    							$giftwrap_in_cart = $coupons_var->is_gift_wrap_in_cart();
    							// if replacing the only giftwrap item allowed in cart
    							if ( $giftwrap_in_cart === true && $coupons_var->giftwrap_number == 'no' ) {
    ?>
    								jQuery('.coupon .giftwrap_submit').click( function() {
    									if ( window.confirm( "<?php _e( 'Are you sure you want to replace the gift wrap in your cart?', 'woocommerce-gift-wrapper' ); ?>" ) ) return true;
    									return false;
    								});
    <?php
    							}
    ?>							
    							jQuery( function( $ ) {
    								var wc_checkout_giftwrap = {
    									init: function() {
    										$( document.body ).on( 'click', '.giftwrap', this.show_giftwrap_form );
    										$( '#wc-giftwrap' ).hide();
    									},
    									show_giftwrap_form: function() {
    										$( '#wc-giftwrap' ).slideToggle( 400 );
    										return false;
    									}
    								};
    								wc_checkout_giftwrap.init();
    							});
    							/* ]]> */
    						</script>
    						<noscript></noscript>
    						<style>
    							.giftwrap::before{
    								font-family: typicons;
    							}
    						</style>
    					</div><!-- /.wc-giftwrap -->		
    				</td>
    			</tr>
    <?php
    		}
    ?>

    I can override this file in my theme now. With future updates, i will not worry about changes in plugin… I only should update my override files if it is necessary !

    • This reply was modified 7 years, 3 months ago by Il_maca.
    • This reply was modified 7 years, 3 months ago by Il_maca.
    • This reply was modified 7 years, 3 months ago by Il_maca.
    Thread Starter Il_maca

    (@il_maca)

    apologize sir, my english isn’t pretty good.

    So, you can see:
    https://salferrarello.com/overridable-templates-wordpress-plugin/

    Thank you

    Thread Starter Il_maca

    (@il_maca)

    Maybe, I didn’t explain well. I don’t want a code customization. My code works fine. I want suggest you to improve the form builder by implementing some basilar features… such as hidden fields, setting for the field’s name or the field’s id, custom javascript functions. Or implement by yourself a solution like that i proposed, considering that is a new way to get the “male/female” field.

    So, we says in this case:
    Check’azz vu leet, fash’it!
    It means: “It’s just a suggestion!”

    thank you!

    Thread Starter Il_maca

    (@il_maca)

    Hi Bruna,
    No, that isn’t what i’m looking.
    If you pay attention to image that i posted, you can see it is a bit different.
    I don’t want the simple radio button for the choose Male/Female. But 2 buttons to signin newsletter: one button for Males, one button for Females.
    Can you visit this url?

    https://www.adidas.it/on/demandware.store/Sites-adidas-IT-Site/it_IT/Newsletter-Subscribe

    It is the official adidas newsletter form. As you can see, they don’t have a radio button, but they have 2 buttons to signup in newsletter. If I’m male, i should click on male button confirm button. If i’m woman, i should press female confirm button.

    With your solution, i’ve a classic radio button and only 1 button for signin. So, the new solution is more practical and allows a truer graphics.

    Thread Starter Il_maca

    (@il_maca)

    I forget, my code is in develope mode. So, is unclear and not optimized. Sorry about that, but i don’t have much time to clear it, now. Maybe in few days, i post a reviewed code.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)