PDA

View Full Version : Problem viewing products


nitebird
09-10-2007, 08:12 PM
I have been trying to set up a new shop. I have tried to create six sections with products. When attempting to view four of the six sections, instead of seeing the listing of all the products and options to edit product info, modify product design, move product, etc. I see code like in the quote box below. I have tried deleting the secitons and making new duplicate ones, but I still see code.


var colors_list = new Array(); function updatePrice(prod, num, price_add){ if(!document.getElementsByName('base'+num+'_'+prod)[0]){ return; } if(!price_add){ price_add = 0; } var commission = getCommission(num, prod); var low = commission + parseFloat(document.getElementsByName('base'+num+'_'+prod)[0].value); low = Math.round(low*100); low = low/100; var high = parseFloat(low) + parseFloat(price_add); high = Math.round(high*100); high = high/100; low = addZeros(low); high = addZeros(high); if(high == low){ document.getElementById('range'+num+'_'+prod).innerHTML = "$"+low; }else{ document.getElementById('range'+num+'_'+prod).innerHTML = "$"+low+" to $"+high; } } function getCommission(num, prod){ var commission = parseFloat(document.getElementsByName('price'+num+'_'+prod)[0].value); var test = commission + ""; if(test.substring(test.indexOf("."), test.length).length > 3){ // Too many decimals commission = Math.floor(commission*100); }else{ commission = Math.round(commission*100); } commission = commission/100; if(commission > 50){ document.getElementsByName('price'+num+'_'+prod)[0].value = 50; return 50; }else if (commission < 0){ document.getElementsByName('price'+num+'_'+prod)[0].value = 0; return 0; }else if (!commission){ return 0; }else{ return commission; } } function addZeros(price){ price += ""; var dec_index = price.indexOf("."); if(dec_index != "-1"){ var extra_zero = price.substring(dec_index+1, price.length); if(extra_zero.length == "1"){ price += "0"; }else if (!extra_zero.length){ price += "00"; } }else{ price += ".00"; } return price; } function editProduct(prod){ document.getElementsByName('product_order_'+prod)[0].style.display = 'none'; document.getElementsByName('product_order_'+prod+'_edit')[0].style.display = 'block'; document.getElementsByName('title_'+prod)[0].style.display = 'none'; document.getElementsByName('title_'+prod+'_edit')[0].style.display = 'block'; document.getElementsByName('desc_'+prod)[0].style.display = 'none'; document.getElementsByName('desc_'+prod+'_edit')[0].style.display = 'block'; document.getElementsByName('price_'+prod)[0].style.display = 'none'; document.getElementsByName('price_'+prod+'_edit')[0].style.display = 'block'; var price = document.getElementsByName('price_'+prod); var price_edit = document.getElementsByName('price_'+prod+'_edit'); for(i=0; i< colors_list[productid][groupid].length; x++){ var objColor = document.getElementsByName("colors["+productid+"]["+colors_list[productid][groupid][x]+"]")[0]; if(objColor){ objColor.checked=checked; } } } function selectColorGroupHeader(productid, groupid){ var all_selected = true; for(var x=0; x < colors_list[productid][groupid].length; x++){ var objColor = document.getElementsByName("colors["+productid+"]["+colors_list[productid][groupid][x]+"]")[0]; if(objColor && !objColor.checked){ all_selected = false; break; } } if(all_selected){ document.getElementsByName("colorGroup["+productid+"]["+groupid+"]")[0].checked=true; }else{ document.getElementsByName("colorGroup["+productid+"]["+groupid+"]")[0].checked=false; } } //function hideProducts(){ // document.getElementById('products_display').style.display="none"; // document.getElementById('products_hidden').style.display="block"; // xajax_products_hidden(1); //} //function showProducts(){ // document.getElementById('products_display').style.display="block"; // document.getElementById('products_hidden').style.display="none"; // xajax_products_hidden(0); //}

Acasa_Ltd
09-11-2007, 03:57 PM
I have not seen this before, but, I would ask which browser you are using?

If you are still having this problem, you might try using a different browser.

Best.

nitebird
09-11-2007, 11:13 PM
I've been using Firefox.

I just tried adding a new section with products using IE. As with Firefox, the products are added. If I go to my shop URL, the products are there. However, I don't see the code with IE that I see with Firefox when I try to view/edit the products. It's just blank. I see nothing but white space. I loaded up Firefox to see what I would or wouldn't see with then new section/products. I see code.

It's screwed up whether I use IE or Firefox. It's very frustrating.

Acasa_Ltd
09-12-2007, 06:41 AM
Gavin, Bradley, anyone!!:)

Need some help here!
(I here the music theme from "Mighty Mouse", so they will save you!)

PF_Gavin
09-12-2007, 07:05 AM
Can you post a screen shot or give us a link to your store. I've never seen anything like what you are describing.

nitebird
09-12-2007, 07:34 AM
http://i233.photobucket.com/albums/ee78/nitebird39/printfection.jpg

http://www.printfection.com/piratees

The first section is the one that's screwed up. The other two are fine. I've deleted the others I was having problems with. I tried making new sections of them, but I kept having the same problem.

PF_Gavin
09-12-2007, 07:56 AM
I can't replicate that error. It may have something to do with question marks and simlar punctuation - Shout out to Kevin

nitebird
09-12-2007, 09:10 AM
Punctuation meaning as in the question mark in the name of the section/products?

I just tried making another section. The section name and product name has no punctuation. Same problem happened.



edit: After posting this, I viewed the listing of similar threads at the bottom of the thread page. I found a thread where someone else had the exact same problem. http://forums.printfection.com/showthread.php?t=1437
I'm going to email support.

PF_Kevin
09-27-2007, 11:37 AM
This has been fixed. Thanks to nitebird for confirming the fix works.