Jamie Gill
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Display total saving in cart & checkout pageI wrote a script for this awhile ago and it was featured on a blog :-
http://businessbloomer.com/woocommerce-display-total-discount-savings-cart/
I think this should solve your issues
Cheers
JForum: Plugins
In reply to: [WooCommerce] Using Woo Email templatesOK great I will take a look at how to extend the class inside a custom plugin.
Thanks for your help guys.
Cheers
JForum: Plugins
In reply to: [WooCommerce] Using Woo Email templatesAh thanks for the reply Mike I had a feeling it was because I was trying to trigger outside of Woo.
Is there a way to use the Woocommerce email templates for an email I want to run or can this only be used within Woo itself?
Cheers
JForum: Plugins
In reply to: [WooCommerce] Using Woo Email templatesHi Caleb,
Thnkas for your prompt reply I did follow the above tut but I cannot seem to get it working how I would like I wants the trigger to run when the Woocommerce Memberships status is changed so replacing the action from :-
add_action( ‘woocommerce_order_status_pending_to_processing_notification’, array( $this, ‘trigger’ ) );
to :-
add_action( ‘wc_memberships_user_membership_saved’, array( $this, ‘trigger’ ) );
But nothing seems to happen Ive also tried :-
add_action( ‘save_post’, array( $this, ‘trigger’ ) );
Just to try and get it to fire but it seems the trigger never seems to fire regards of what action I use.
Any help here would be appreciated I feel like I am just missing one last piece.
Many Thanks
JForum: Plugins
In reply to: [WooCommerce] order_review queryHi Mike,
No worries wasn’t sure if there was a quick fix to change id to class etc but it doesn’t look that way.
Thanks for your time dude its appreciated.
Cheers
JForum: Plugins
In reply to: [WooCommerce] order_review queryHi Mike,
No I used this plugin :-
Then added a 2% charge to anyone checking out with Worldpay assumed this was the best way which maybe not.
However the plugin doesn’t work if the payment options are not inside a div containing the id ‘order_review’.
If theres a better way please point me in the right direction I would rather write something myself if I can to apply 2% based on payment method.
cheers
JForum: Plugins
In reply to: [Contact Form 7] 404 IssueHi Takayuki,
The page in question is :-
http://www.backstage-academy.co.uk/landing-page/
I have noticed the page reloads on this form when submitting so not sure why this is happening as this form seems fine and they both have the same console output :-
http://www.backstage-academy.co.uk/contact/
Many Thanks
JamieForum: Plugins
In reply to: [WooCommerce] Variated Price QueryThanks for the help on this Mike much appreciated all seems to be in working order now top man.
Forum: Plugins
In reply to: [WooCommerce] Variated Price QueryAh I was using one and then the other not both, the HTML price worked great for the initial variation price and simple products. Ive then used the initial filter you mentioned and on variation change this displays the raw price with additional added
Raw Filter
public function get_raw_price($price, $product) { $price = ($price + $this->additional_price); return $price; }Html Filter
public function get_html_price($price, $product) { if ($product->is_type( 'variable' )) { $price = '<p class="price"><del><span class="amount">'.wc_price(($product->min_variation_regular_price + $this->additional_price)).'</span>–<span class="amount">'.wc_price(($product->max_variation_regular_price + $this->additional_price)).'</span></del> <ins><span class="amount">'.wc_price(($product->min_variation_price + $this->additional_price)).'</span>–<span class="amount">'.wc_price(($product->max_variation_price + $this->additional_price)).'</span></ins></p>'; return $price; } else { if ($product->sale_price > 0) { $price = '<p class="price"><del><span class="amount">'. wc_price(($product->regular_price + $this->additional_price)) . '</span></del><ins><span class="amount">' . wc_price(($product->sale_price + $this->additional_price)) . '</span></ins></p>'; return $price; } else { $price = '<p class="price"><span class="amount">'. wc_price(($product->regular_price + $this->additional_price)) . '</span></p>'; return $price; } } }Not sure if this is the correct way to do this but it seems to work?
Forum: Plugins
In reply to: [WooCommerce] Variated Price QueryIn a nutshell my client has postcode specific prices per products he ships from 9 different bases so dependant on where the product is shipped from depends on how much this costs. Thing is he wants to display this at products level as he gets alot of people dropping at cart when they see how much delivery is so I cant use just shipping zones. He wants to be able to add postcode/prices to shipping areas and then on each product just assign the relevant shipping area to the product.
So my idea was to create a custom post type for shipping areas create an area and just have a repeater field that has Postcode and Price. On the product page we have an input box ready to catch the client postcode and set it as a cookie.
Then on each product I get the cookie and get the area ID from whats set to the product to get the postcodes/prices set. Match the postcode in the area to whichever repeater is closest and apply the cost so say BD10 0DH is set and in the shipping area BD has a price of 15 I want to add 15 to the product price in woocommerce.
Works great in cart and on single pages and variations (before changed) its when the variation is changed it brings in the normal price not adding the additional.
I maybe going a really daft way about it but it seems to work great at the minute minus the issue I have. The filter you mentioned above is perfect for everything minus when I change variation it defaults to the standard prices without the additional price tried for testing :-
public function get_final_price($price, $product) { $price = 15; return $price; } add_filter('woocommerce_get_price_html', array($this, 'get_final_price'), 10, 2);This sets the variation price at the start to 15 which is correct but when I change variation it brings in the regular pricing, should all the prices return 15 here? This is just for testing to see if the filter did what I wanted it to do.
Apologies for the long winded post just thought it might help you see what I am trying to achieve.
Forum: Plugins
In reply to: [WooCommerce] Variated Price QuerySorry I dont think I am explaining myself correctly, here are some examples I have tried
$price = '<del>'. ($product->regular_price + $this->additional_price) . '</del><ins>' . ($product->sale_price + $this->additional_price) . '</ins>'; return $price; Results = Free! (not sure why assume the formatting is upsetting this?)$price = ($product->regular_price + $this->additional_price) . ' ' . ($product->sale_price + $this->additional_price); return $price; Results = Regular Price + Addition price (returning value but only one and the wrong value)$price = ($product->sale_price + $this->additional_price); return $price; Results = Sale Price + Addition price (returning value but the correct value)Ideally I was after the same formatting Woo does as the first result I was trying above. Obviously I may be asking for alot here and on simple price I can get it spot on its just the variation prices as they change.
Forum: Plugins
In reply to: [WooCommerce] Variated Price QueryHi Mike,
Trust your well I have had a play with the woocommerce_get_price filter and this seem to work well for adding an additional price.
The only issue I am having here is formatting the output as return $price just returns the bare bones price.
Also it removes the regular price if it is a sale price nd just displays the sale price. So say I was trying to return :-
echo '<p class="price"><del><span class="amount">'.wc_price($this->old_total_price).'</span></del> <ins><span class="amount">'.wc_price($this->total_price).'</span></ins></p>';Is this possible through the filter?
Cheers
JamieForum: Plugins
In reply to: [WooCommerce] Variated Price QueryThanks Mike I shall give it a look over and see what I can do with it.
Forum: Plugins
In reply to: [WooCommerce] Variated Price QueryHi Mike,
Thanks for the response. Yes I have this setup already working fine on simple and variated product using :-
add_action( ‘woocommerce_before_calculate_totals’, array($this, ‘add_custom_price’));
Its now just on the product single pages to display the price with the additional charge.
Cheers
JForum: Themes and Templates
In reply to: Change Color on NewsLetter BarHi Chris,
Try the following :-
#section-237 #newsletter .subtitle {color:#fff}
Cheers
J