Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

FoxyShop: Show Computed Product Code on Product Page

sparkweb Oct 24th, 2011 148 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top