Comments on: Show Personalisation Info during checkout with WP e-Commerce https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/ Sun, 08 Sep 2013 07:45:38 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Lee https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-19838 Sun, 08 Sep 2013 07:45:38 +0000 http://www.leewillis.co.uk/?p=404#comment-19838 In reply to Alan.

Thanks – makes sense. I’ve pushed out an update containing that.

]]>
By: Alan https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-19243 Fri, 06 Sep 2013 18:42:26 +0000 http://www.leewillis.co.uk/?p=404#comment-19243 In reply to Lee.

Removing the !is_admin() fixed the problem, but !is_admin() is there for a reason, so I have changed the line from

if ( ! is_admin() ) {

to

if ( !is_admin() || ( defined(‘DOING_AJAX’) && DOING_AJAX ) ) {

that also works fine.

]]>
By: Lee https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-19236 Fri, 06 Sep 2013 17:51:53 +0000 http://www.leewillis.co.uk/?p=404#comment-19236 In reply to Alan.

You’re right – WP e-Commerce recently starting putting its AJAX actions through WordPress’ AJAX handler where it didn’t before (See https://github.com/wp-e-commerce/WP-e-Commerce/issues/470). Taking out the is_admin() checks in the plugin should fix it – although I haven’t tested. I’ll test and update when I get chance, but if you can confirm that works for you that’d be great?

]]>
By: Alan https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-19208 Fri, 06 Sep 2013 15:35:53 +0000 http://www.leewillis.co.uk/?p=404#comment-19208 Hi Lee,

since doing some updates I have noticed that the cart does not display personalisation when updated via ajax. (Refresh page and all if fine)

After a bit of searching, I’ve narrowed it to the same fix as was mentioned here…

http://wordpress.org/support/topic/consider-checking-doing_ajax-for-is_admin-checks

Does this make sense, as I’m sure it used to update fine via AJAX when I was first testing your code, although that was 6 months ago.

Or should it have worked without the modification?

Many thanks for a great plugin.

Alan

]]>
By: Lee https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-7759 Fri, 10 May 2013 10:18:16 +0000 http://www.leewillis.co.uk/?p=404#comment-7759 In reply to Mqss.

That’s provided by WP e-Commerce itself. I imagine it’s a translatable string, so if you can find the original text you should be able to use something like http://wordpress.org/extend/plugins/say-what/ to provide an alternative “translation”.

]]>
By: Mqss https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-7758 Fri, 10 May 2013 09:28:59 +0000 http://www.leewillis.co.uk/?p=404#comment-7758 Hi, is there any way I could edit the default text of personalization form “Personalize Your Product… Complete this form to include a personalized message.”? Thanks.

]]>
By: Deborah https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-5143 Wed, 12 Dec 2012 19:23:09 +0000 http://www.leewillis.co.uk/?p=404#comment-5143 When a personalization is added (in this case, the name, “John”), the widget and checkout page show it as:

Name (up to 8 letters) John

How do I fix this?

(Running WPEC Version 3.8.8.5)

]]>
By: Lee https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-4595 Sat, 27 Oct 2012 06:45:10 +0000 http://www.leewillis.co.uk/?p=404#comment-4595 In reply to Eric.

The esc_html function is responsible for stripping these out, see wpec_show_personalisation.php, line 50:

echo nl2br ( esc_html ( apply_filters ( 'wpec_showp_personalisation_info', $info, $context ) ) );

]]>
By: Eric https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-4590 Fri, 26 Oct 2012 21:32:59 +0000 http://www.leewillis.co.uk/?p=404#comment-4590 Hi Lee,

I’m trying to update the plugin to display Rich Text, but can’t seem to figure out how to do that (which is driving me nuts because I know it’s probably easy). I use a Rich Text Editor in the Personalisation Options, so it gets saved into the DB with all the HTML tags, etc.

Is there just a simple line of code to add so that it will display in rich text instead of just outputting the raw text?

Thanks!! And thanks for creating this in the first place, it’s nice to actually leave the WP e-Commerce code alone for once!

]]>
By: Lee https://www.leewillis.co.uk/show-personalisation-checkout-wp-e-commerce/#comment-3764 Thu, 13 Sep 2012 06:40:18 +0000 http://www.leewillis.co.uk/?p=404#comment-3764 In reply to Jay.

You can achieve this with the standard plugin. You’re best off asking on the getshopped.org forums.

]]>