
Originally Posted by
Calljj
then showing the JSON gives:
Code:
{"XML":"securityToken=468ca6253914efa9633b14fdd8368a21&id[1]=2&id[2]=97&id[32]=292&cart_quantity=1&products_id=8902&pspClass=productGeneral&stat=main&outputType=XML","JSON":{"securityToken":"468ca6253914efa9633b14fdd8368a21","id[1]":"2","id[2]":"97","id[32]":"292","cart_quantity":"1","products_id":"8902","pspClass":"productGeneral","stat":"main","outputType":"JSON"}}
Something doesn't look right about that returned "JSON", if the includes/classes/dynamic_price_updater.php file of the current version were in place then only either XML **OR** JSON would be returned not both.
Here is the JSON response I get when using firefox on ZC default demo product index.php?main_page=product_info&cPath=54_56&products_id=159:
Code:
{"responseType":"success","data":{"sideboxContent":"<span class=\"DPUSideBoxName\">Base price<\/span><span class=\"DPUSideboxQuantity\"> x 0<\/span> ($33.00)<br \/><span class=\"DPUSideBoxName\">Yellow<\/span><span class=\"DPUSideboxQuantity\"> x 1<\/span> ($0.00)<br \/><hr \/><span class=\"DPUSideboxTotalText\">Total: <\/span><span class=\"DPUSideboxTotalDisplay\">$33.00<\/span>","priceTotal":"Sale: $33.00","preDiscPriceTotalText":"Sale: ","midDiscPriceTotal":"$35.50","preDiscPriceTotal":"$35.50","stock_quantity":"10000","weight":"1"}}
Now there is a little extra data sent back as I am trying to work on the "middle" price display for a product that would display three different prices if has say a special and a sale.
Bookmarks