{"id":641,"date":"2014-01-11T22:15:53","date_gmt":"2014-01-11T22:15:53","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=641"},"modified":"2014-01-13T17:27:12","modified_gmt":"2014-01-13T17:27:12","slug":"tomato-cart-second-variant-problem","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2014\/tomato-cart-second-variant-problem","title":{"rendered":"Tomato Cart Second Variant Problem"},"content":{"rendered":"<p>Tomato Cart has a second problem in the Variant area. (See the first problem <a href=\"http:\/\/www.advancedwebhelp.com\/blog\/2014\/tomato-cart-variant-js-correction\">here<\/a>.)  It is possible to accidentally delete your variant content for a product with variants.  <b>There is a fix<\/b>.   I will first describe the problem, then the fix.<\/p>\n<p><b>Normal\/expected scenario<\/b>:  In the administration area &#8230;   <\/p>\n<ol>\n<li>You create a variant (ex. states: Denver, California)<\/li>\n<li>You create a product with the variant states.<\/li>\n<li>You create variations for Denver and California, filling in the values for image, cost, SKU, etc.<\/li>\n<li>You go in to change a value for either variant of the product (perhaps the Denver variant).<\/li>\n<li>You press save and continue, and the following happens:\n<ol style=\"list-style-type: lower-alpha; \">\n<li>Waiting message comes up on screen<\/li>\n<li>Waiting message goes away indicating the save is complete, your information is displaying<\/li>\n<li>Moments later your variant information clears and<\/li>\n<li>The system reprints your updated data from the database, it looks as before the clearing of the variant data.<\/li>\n<\/ol>\n<\/ol>\n<p>That is the normal scenario.   Now imagine, you do step 5, pressing step and continue.   Your administration area reaches <b>step 5b<\/b>, the waiting message vanishes and you think everything is done.   You accidentally or intentionally hit save and continue again about 2 seconds after the waiting message vanished &#8230; before the variant information vanishes.  80-90% of the time, your variant data will be deleted.  (Note, the 2 second number can change as a result of your computer or internet activity.  Sometimes this can be 10 or more seconds.) You may have hit the save and continue for a number of reasons (1) You are not sure there was a save, (2) You think things are done saving, you change something and hit save, or (3) other reasons.  You may loose your data.<\/p>\n<p>If this problem happens to you, you can fix this problem.  Go to file \/admin\/includes\/extmodules\/products\/products_dialog.php &#8230; line 198.   Comment out the line as follows &#8230;<\/p>\n<div style=\"margin: 25px 20px  ; color: blue ;\">\/\/    this.pnlImages.grdImages.getStore().on(&#8216;load&#8217;, onDsImagesLoad, this);<\/div>\n<p>This should solve your problem in version 1.1.8.5 Tomato Cart.  Hopefully, this problem will be corrected in the next revision of Tomato Cart.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tomato Cart has a second problem in the Variant area. (See the first problem here.) It is possible to accidentally delete your variant content for a product with variants. There is a fix. I will first describe the problem, then the fix. Normal\/expected scenario: In the administration area &#8230; You create a variant (ex. states: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,25],"tags":[],"class_list":["post-641","post","type-post","status-publish","format-standard","hentry","category-javascript","category-tomato-cart"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":650,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/641\/revisions\/650"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}