Advertisement
sparkweb

FoxyShop: Show Computed Product Code on Product Page

Oct 24th, 2011
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.57 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement