Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

inserting javascript into php pages


Recommended Posts


I've been wondering if it is possible to add mobile content to my oscommerce store, using an external javascript? so that the "add to cart" button would instead call a pop-up purchase screen? i use the sharewire.net platform for mobile content distribution, they suggest that the following line

<script language="JavaScript" src="http://www.sharewire.net/functions.js"></script>

is inserted on top of every page containing mobile content, and then pop-up payment screens are called with the following:

<a href="java script:doSharewire( PRODUCT_ID, 0, '', '', 1, 1, 292, 480);"></a>

so, the question is, is it possible to insert this script into my oscommerce php files?.. :blink: maybe i'm asking a dumb question, but i'm a beginner, so i would be really thankful for any help, and in case you give any advice, PLEASE mind i'm new to php :blush:

huge THANKYOU in advance!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...