sparkweb

FoxyShop: Show Computed Product Code on Product Page

Oct 24th, 2011
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3. function foxyshop_after_variation_modifiers(new_code,new_codeadd,new_price,new_price_original,new_ikey,current_product_id) {
  4.     if (jQuery("#codeview").length==0){
  5.         jQuery(".foxyshop_variations").append('<div id="codeview"></div>');
  6.     }
  7.     if(new_codeadd) {
  8.         jQuery("#codeview").html('Item # '+$("#fs_code_"+current_product_id).val()+new_codeadd);
  9.     } else if (new_code) {
  10.         jQuery("#codeview").html('Item # '+new_code);
  11.     } else {
  12.         jQuery("#codeview").html('Item # <?php echo $product['code']; ?>');
  13.     }
  14. }
  15. /*]]>*/
  16. </script>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×