kimsf
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] hidden fields on chekoutI misread the OP and was trying to solve a different problem. Yes you’re right Lorro the CSS fix I posted won’t fix the problem.
Try adding this to functions.php. Maybe enabling guest checkout will allow people to not use an email? Be sure to make a backup or be able to access your server via FTP/SSH to edit functions.php before adding this code should it cause an error to occur.
EDIT: I was able to go into PayPal just fine without entering in a phone number?
function sv_unrequire_wc_phone_field( $fields ) { $fields['billing_phone']['required'] = false; $fields['billing_email']['required'] = false; return $fields; } add_filter( 'woocommerce_billing_fields', 'sv_unrequire_wc_phone_field' );
Forum: Plugins
In reply to: [WooCommerce] product image problemcheck “woocommerce/includes/admin/settings/class-wc-settings-products.php” line 196-208 and make sure you see this code or just replace the file
array( 'title' => __( 'Single Product Image', 'woocommerce' ), 'desc' => __( 'This is the size used by the main image on the product page.', 'woocommerce' ), 'id' => 'shop_single_image_size', 'css' => '', 'type' => 'image_width', 'default' => array( 'width' => '600', 'height' => '600', 'crop' => 1 ), 'desc_tip' => true, ),
While in admin CP, check the source with your browser or css to see if the field was set to display none or not visible for some reason. Check and see if the element exists in the CP.
Forum: Plugins
In reply to: [WooCommerce] Cart DurationMaybe look at woocommerce/includes/class-wc-session-handler.php
lines 102-108
/** * Set session expiration. */ public function set_session_expiration() { $this->_session_expiring = time() + intval( apply_filters( 'wc_session_expiring', 60 * 60 * 47 ) ); // 47 Hours. $this->_session_expiration = time() + intval( apply_filters( 'wc_session_expiration', 60 * 60 * 48 ) ); // 48 Hours. }
Forum: Plugins
In reply to: [WooCommerce] 404 error on My Account and Checkout processWhen I tried to go to the checkout I get an invalid certificate error. The SSL certificate is only valid for the following names: *.hostgator.com, hostgator.com
Then after that it goes to hostgater. Perhaps the SSL cert should be changed?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce localization works except from one word: Sale!I was able to do it with a CSS hack (which should be avoided). Try adding this to the end of your CSS file. Change “im Angebot” to whatever text you want.
.onsale::after { content: "im Angebot" !important; text-indent: 0px !important; visibility: visible !important; position: relative !important; background-color: #8CAE08 !important; } figure.product .onsale { position: absolute !important; visibility: hidden !important; }
Forum: Plugins
In reply to: [WooCommerce] Returning customer? Click here to login form not workingI’ve found out the problem. You can probably get it to work by disabling coupons. When either the Returning customer or have a coupon link is clicked, they both bring up the woocommerce-info form ontop of each other. The returning customer form is loaded first and then the blank coupon form is. I think the problem is with the template.
I’ve gotten it to work though. Try adding this to the end of your CSS file.
.login { display: inline-block !important; } .woocommerce .woocommerce-info { display: none !important; }
Forum: Plugins
In reply to: [WooCommerce] hidden fields on chekoutI think that I’ve found it. Try adding this add the end of your CSS file.
.woocommerce form.login { display: inline-block !important; }
A username and password prompt shows up right above billing details with that CSS.
Forum: Plugins
In reply to: [WooCommerce] is_checkout() is always falseIt works now that I’ve messed around with the storefront checkout customiser plugin. I put the add_action line in a place so it’d have the same effect.
Forum: Plugins
In reply to: [Striper - Stripe Integration for WooCommerce] Display of fields in FrenchEdit the plugin “Striper” and modify “striper/templates/payment.php”.
Change the text right after <label> but before the <span class= for example:<label>Card Number <span class="required">*</span></label>
Change to:
<label>numéro de carte <span class="required">*</span></label>
Forum: Plugins
In reply to: [Striper - Stripe Integration for WooCommerce] Some small improvementsAdd this to the end of your styles.css. Why was this hardcoded to be 400px wide?? Really annoying when the textbox is out of the form.
.form-row input, .form-row select, .form-row textarea { width: 100% !important; }
Doing more research on this. It appears that all fields that are tokenized need to have the data-stripe attribute and the name attribute removed otherwise it won’t pass it on. I’ve been trying to find a way around this and no luck.
This is what I have put so far in the functions.php file which successfully passes on the first billing address line to stripe. However orders on Woocommerce itself are missing the first address line! I’m lost and have no idea what to do.
add_filter( 'woocommerce_default_address_fields' , 'custom_override_default_address_fields' ); function custom_override_default_address_fields( $address_fields ) { $address_fields['address_1']['required'] = false; return $address_fields; } function add_jscript() { echo '<script type="text/javascript">document.getElementById("billing_address_1").removeAttribute("name"); document.getElementById("billing_address_1").setAttribute("data-stripe","address_line1"); </script>'; } add_action( 'woocommerce_after_checkout_form', 'add_jscript');