WordPress.org

Forums

WP eCommerce
[resolved] Personalize This Product checkbox unticks itself on update (3 posts)

  1. summerlightning
    Member
    Posted 11 months ago #

    Store URL: http://bymoon.lordsolutions.com/products-page/chairs/childrens-chair-blackberry-purple/

    WordPress version: 3.9.1

    WP eCommerce version: 3.8.14.1

    Gold Cart version: N/A - I do have this on the main site of my client, but not on this test site.
    Theme: Parabola

    I ticked the box to display the personalization box. Clicked UPDATE. The box appears fine on the single product page, but if you go into the product to update anything else the box it immediately unticked and when saved, removes the personalization box. I expect the box to stay ticked unless I uncheck it.

    How do i fix?

    Thanks.

    https://wordpress.org/plugins/wp-e-commerce/

  2. summerlightning
    Member
    Posted 11 months ago #

    At present, I have left the page with the checkbox ticked, but can remove this if needed. Thank you.

  3. summerlightning
    Member
    Posted 11 months ago #

    I found the issue raised on WP-Ecommerce on Github.

    Properly initialise perso form settings #1393
    https://github.com/wp-e-commerce/WP-e-Commerce/pull/1393

    I added the code as suggested to wpsc-admin/includes/display-items-functions.php and this fixed the problem.

    function wpsc_product_personalization_forms(){
     	global $post;
     	$product_meta = get_post_meta( $post->ID, '_wpsc_product_metadata', true );
     	if ( ! is_array( $product_meta ) )
     		$product_meta = array();
      ?>

Reply

You must log in to post.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic