• Good Evening,

    Everytime we edit a product and make any changes, e.g: a price change. Your plugin is automatically creating custom fields as soon as the save button is clicked. The only way we can remove these custom fields is by deleting these custom fields which get created, via the database, but we have to do this everytime we edit and save a product. Have tried temporarily deactivating your plugin, and clearing the cache, to see if this would help, but the custom fields are still created, which is really weird. Not sure if this is just related to your latest update. If you could investigate this, it would be really appreciated.

    The strange thing is everytime we edit and save the product page, more custom fields keep getting added.

    When we then go to view the product page live all the custom fields show on the product page.

    Please see below an example of what was showing on our product page after making just a price change (this is appearing on the actual product page that customers see, as well as appearing as newly created custom fields within the admin section of the edited products page:

    1: a:2:{s:3:"key";s:25:"saswp_custom_schema_field";s:5:"value";s:0:"";}
    2: a:2:{s:3:"key";s:30:"saswp_modify_this_schema_21112";s:5:"value";s:1:"0";}
    3: a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}
    saswp_article_speakable_21113: 0
    saswp_modify_this_schema_21112: 0
    saswp_product_schema_enable_rating_21112: 0
    saswp_custom_schema_field:
    
    11: s:84:"a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}";
    1: s:127:"s:118:"s:109:"s:100:"s:92:"s:84:"s:76:"s:68:"a:2:{s:3:"key";s:25:"saswp_custom_schema_field";s:5:"value";s:0:"";}";";";";";";";";
    2: s:133:"s:124:"s:115:"s:106:"s:98:"s:90:"s:82:"s:74:"a:2:{s:3:"key";s:30:"saswp_modify_this_schema_21112";s:5:"value";s:1:"0";}";";";";";";";";
    3: s:145:"s:136:"s:127:"s:118:"s:109:"s:100:"s:92:"s:84:"a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}";";";";";";";";
    4: s:109:"s:100:"s:92:"s:84:"s:76:"s:68:"a:2:{s:3:"key";s:25:"saswp_custom_schema_field";s:5:"value";s:0:"";}";";";";";";
    5: s:115:"s:106:"s:98:"s:90:"s:82:"s:74:"a:2:{s:3:"key";s:30:"saswp_modify_this_schema_21112";s:5:"value";s:1:"0";}";";";";";";
    6: s:127:"s:118:"s:109:"s:100:"s:92:"s:84:"a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}";";";";";";
    7: s:98:"s:90:"s:82:"s:74:"a:2:{s:3:"key";s:30:"saswp_modify_this_schema_21112";s:5:"value";s:1:"0";}";";";";
    8: s:109:"s:100:"s:92:"s:84:"a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}";";";";
    9: s:82:"s:74:"a:2:{s:3:"key";s:30:"saswp_modify_this_schema_21112";s:5:"value";s:1:"0";}";";
    10: s:92:"s:84:"a:2:{s:3:"key";s:40:"saswp_product_schema_enable_rating_21112";s:5:"value";s:1:"0";}";";
    12: a:2:{s:3:"key";s:25:"saswp_custom_schema_field";s:5:"value";s:0:"";}

    This is with the WP-Ecommerce plugin.

    Kind Regards,

    Andrew

    • This topic was modified 3 years, 1 month ago by Andrew1977.
    • This topic was modified 3 years, 1 month ago by Andrew1977.
    • This topic was modified 3 years, 1 month ago by Andrew1977.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Hi there!

    We do create some meta fields for the post and its necessary for working of this plugin.

    After debugging, I found some strange code inside WP eCommerce plugin. Why they are echoing meta fields name and its value here in frontend.

    Path \wp-e-commerce\wpsc-components\theme-engine-v1\templates\wpsc-single_product.php

    Line no. 62 to 71. You just comment this code and check.

    ?>
    <?php if (wpsc_have_custom_meta()) : ?>
    <div class=”custom_meta”>
    <?php while ( wpsc_have_custom_meta() ) : wpsc_the_custom_meta(); ?>
    <?php if (stripos(wpsc_custom_meta_name(),’g:’) !== FALSE) continue; ?>
    <?php echo wpsc_custom_meta_name(); ?>: <?php echo wpsc_custom_meta_value(); ?><br />
    <?php endwhile; ?>
    </div><!–close custom_meta–>
    <?php endif; ?>
    <?php`

    Thread Starter Andrew1977

    (@andrew1977)

    Hi Sanjeev,

    Firstly, a big thank you for taking the time to investigate this for us.

    We have commented out the code from lines 62 to 71, and this has stopped the custom fields from showing on the live product page (the page that customers see) but the custom fields are still getting created and showing on the admin side of the edit product page (screenshot attached below).

    https://paste.pics/93cba687cd5c88c2c76cffcddd0593fa

    Each time the product page is then further edited and saved again, more of these custom fields get added, and increase each time.

    Screenshot below showing more custom fields being added, after the product is edited and saved the second time.

    https://paste.pics/6e6da86f6715f3899f08cccccae115b0

    Would you have any ideas of what could be causing this?

    Kind Regards,

    Andrew

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Its obvious, If you modify schema output. Custom fields are where you enter manual data.

    Thread Starter Andrew1977

    (@andrew1977)

    Hi Sanjeev,

    Apologies, if we have missed something really obvious.

    We aren’t actually entering any manual data in the custom fields, so these shouldn’t be filling up all by themselves. The custom field boxes on our product pages are all empty, and the custom fields are getting added by themselves as soon as the update button is clicked on the product page, once there is any update done on a product page, e.g: a product price change. Also, if we just edit a product page and click update without making any changes, custom fields are getting added by themselves, with each time the update button being clicked around 4 more custom fields being added.

    A screenshot showing our current settings with your plugin for the products (no additional properties have been added, just the default settings:

    https://paste.pics/a90321ff1244d9d5c4d79cc3394b897a

    A screenshot showing what any one of our product pages currently shows once edited (as you can see no new custom fields have been added:

    https://paste.pics/7f9aa3ea6ce6084114222b983cb87577

    As soon as we click the update button on the top right of the page, 4 new custom fields get added automatically by themselves. (screenshot below showing this:

    https://paste.pics/b9c4f68c5f2284c6b5bcd1982a5c3b01

    Again, after another press on the update button, more custom fields get added by themselves (another screenshot below showing this):

    https://paste.pics/38fee16415da69db0d56faac6cfd647a

    Again, after another click of the update button, more get added still (screenshot below showing this):

    https://paste.pics/40ddaea10cac7a398043c068ac954810

    Just unsure as to why these additonal new custom fields are getting added by themselves, when we aren’t actually entering any manual custom fields ourselves?

    Again, apologies if we have missed something really obvious.

    Kind Regards,

    Andrew

    • This reply was modified 3 years, 1 month ago by Andrew1977.
    • This reply was modified 3 years, 1 month ago by Andrew1977.
    • This reply was modified 3 years, 1 month ago by Andrew1977.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Major Error With Plugin’ is closed to new replies.